如何修复“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
- 强制安装32位deb失败后,如何安装64位版本?
- 包装破损,但无法清洗或重新安装!
- 如何获取我尚未安装的软件包的文件列表?
- dpkg:error handlingopenoffice4.0-debian-menus_4.0-9714_all.deb
- 无法安装任何东西,dpkg错误
- “/etc/grub.d/README:6:语法错误:”(升级grub包时出现“意外”)
- 如何克服因删除/ usr / share / doc-base中的文件而导致的dpkg错误?
- “试图覆盖’/usr/share/man/man1/node.1.gz’,这也是包nodejs-legacy 0.10.25~dfsg2-2ubuntu1”
- 如何通过dpkg找到已安装软件包的版本号?