如何修复“在您的 `dpkg' 配置文件中找到的未知配置密钥 `foreign-architecture'。” 错误?

spe*_*CHO 10 command-line dpkg multiarch

总是当我安装某些东西时,我多次收到以下错误:

在您的“dpkg”配置文件中发现了未知的配置密钥“foreign-architecture”。此警告将在以后成为一个硬错误,因此请删除有问题的配置选项,并在命令行中将其替换为“dpkg --add-architecture”调用。

当我尝试时,dpkg --add-architecture我得到:

Unknown configuration key `foreign-architecture' found in your `dpkg'
configuration files.  This warning will become a hard error at a later
date, so please remove the offending configuration options and replace
them with `dpkg --add-architecture' invocations at the command line.

dpkg: error: --add-architecture takes one argument

Type dpkg --help for help about installing and deinstalling packages [*];
Use `dselect' or `aptitude' for user-friendly package management;
Type dpkg -Dhelp for a list of dpkg debug flag values;
Type dpkg --force-help for a list of forcing options;
Type dpkg-deb --help for help about manipulating *.deb files;

Options marked [*] produce a lot of output - pipe it through `less' or `more' !
Run Code Online (Sandbox Code Playgroud)

我还没有问题,但是因为它说这个警告在以后会变成一个硬错误,我最好对此做点什么。当我搜索“foreign-architecture”时,我找到了一个空文件,其中没有一个字节。我以某种方式无法删除该文件。

请帮忙,这是一种令人毛骨悚然的...

我使用 Ubuntu 12.10 版

更新了问题:

cat /etc/dpkg/dpkg.cfg 
no-debsig 
log /var/log/dpkg.log

ls /etc/dpkg/dpkg.cfg.d/
multiarch 
Run Code Online (Sandbox Code Playgroud)

tum*_*eed 7

你在评论中说你看到:

$ ls /etc/dpkg/dpkg.cfg.d/
multiarch
Run Code Online (Sandbox Code Playgroud)

据推测,该文件/etc/dpkg/dpkg.cfg.d/multiarch包含一个foreign-architecture密钥。所以我建议只删除文件:

sudo rm /etc/dpkg/dpkg.cfg.d/multiarch
Run Code Online (Sandbox Code Playgroud)