如何修复“dpkg”配置文件中的“未知配置键`foreign-architecture’。”错误?

总是在我安装的时候,我多次出现以下错误:

在’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' ! 

我还没有问题,但是因为它说这个警告将在以后成为一个很难的错误我最好对此做些什么。 当我搜索’foreign-architecture’时,我找到一个空文件,不包含单个字节。 我莫名其妙地无法删除该文件。

请帮忙,这是一种狡猾的……

我使用的是Ubuntu 12.10版

更新了问题:

 cat /etc/dpkg/dpkg.cfg no-debsig log /var/log/dpkg.log ls /etc/dpkg/dpkg.cfg.d/ multiarch 

你在评论中说:

 $ ls /etc/dpkg/dpkg.cfg.d/ multiarch 

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

 sudo rm /etc/dpkg/dpkg.cfg.d/multiarch 

我的/etc/dpkg/dpkg.cfg.d/multiarch包含:

 foreign-architecture i386 

我删除了该文件。 然后我发出:

 dpkg --add-architecture foreign-architecture