我在用着Ubuntu 14.04 LTS和amd64位处理器
无论我给出什么命令(除了sudo apt-get autoclean
),我都会得到以下响应:-
dpkg: error processing package libuuid1:amd64 (--configure):
package libuuid1:amd64 2.20.1-5.1ubuntu20.6 cannot be configured because libuuid1:i386 is at a different version (2.20.1-5.1ubuntu20.4)
E: Sub-process /usr/bin/dpkg returned an error code (1)
给出此命令后,sudo dpkg --configure -a
我收到以下错误:-
dpkg: error processing package libuuid1:amd64 (--configure):
package libuuid1:amd64 2.20.1-5.1ubuntu20.6 cannot be configured because libuuid1:i386 is at a different version (2.20.1-5.1ubuntu20.4)
dpkg: error processing package libuuid1:i386 (--configure):
package libuuid1:i386 2.20.1-5.1ubuntu20.4 cannot be configured because libuuid1:amd64 is at a different version (2.20.1-5.1ubuntu20.6)
Errors were encountered while processing:
libuuid1:amd64
libuuid1:i386
注意:我不记得到目前为止我已经从系统中卸载了什么,所以我不知道发生了什么。
请帮助我,提前致谢
答案1
dpkg 希望两个软件包具有相同的版本。原则上它们是相同的软件包,但一个适用于 i386(32 位),而另一个适用于 amd64(64 位)。因此您有两个选择:
sudo apt-get install libuuid1:i386
,希望这将安装版本 2.20.1-5.1ubuntu20.6 并解决冲突。sudo apt-get remove libuuid1:i386
,完全删除该软件包,只留下 libuuid1:amd64。这也可能会删除其他可能需要或不需要的软件包,但根据您提供的信息,我无法判断。
答案2
那么,如果你运行实例,ls
就会出现此错误?看起来很奇怪?
apt 的日志位于,您可以使用或/var/log/apt/
读取 .gz 日志。zcat
zmore
我于 8 月 5 日收到此更新
Preparing to unpack .../libuuid1_2.20.1-5.1ubuntu20.6_amd64.deb ...
De-configuring libuuid1:i386 (2.20.1-5.1ubuntu20.4) ...
Unpacking libuuid1:amd64 (2.20.1-5.1ubuntu20.6) over (2.20.1-5.1ubuntu20.4) ...
Preparing to unpack .../libuuid1_2.20.1-5.1ubuntu20.6_i386.deb ...
Unpacking libuuid1:i386 (2.20.1-5.1ubuntu20.6) over (2.20.1-5.1ubuntu20.4) ...
Setting up libuuid1:amd64 (2.20.1-5.1ubuntu20.6) ...
Setting up libuuid1:i386 (2.20.1-5.1ubuntu20.6) ...
我在二月份获得了 20.4 版本:
De-configuring libuuid1:i386 (2.20.1-5.1ubuntu20.3) ...
Unpacking libuuid1:amd64 (2.20.1-5.1ubuntu20.4) over (2.20.1-5.1ubuntu20.3) ...
Preparing to unpack .../libuuid1_2.20.1-5.1ubuntu20.4_i386.deb ...
Unpacking libuuid1:i386 (2.20.1-5.1ubuntu20.4) over (2.20.1-5.1ubuntu20.3) ...
Preparing to unpack .../libblkid1_2.20.1-5.1ubuntu20.4_amd64.deb ...
Unpacking libblkid1:amd64 (2.20.1-5.1ubuntu20.4) over (2.20.1-5.1ubuntu20.3) ...
Setting up libuuid1:amd64 (2.20.1-5.1ubuntu20.4) ...
Setting up libuuid1:i386 (2.20.1-5.1ubuntu20.4) ..
例如,您是否在任何地方禁用/阻止了 i386 更新?
你们当中有人有arch=
定义? 例子:
deb [arch=amd64,i386] http://uk.archive.ubuntu.com/ubuntu/ quantal main universe
deb [arch=armel,armhf] http://ports.ubuntu.com/ubuntu-ports quantal main universe
(请与此命令 grep -h ^deb /etc/apt/sources.list /etc/apt/sources.list.d/*.list
)
也许将 64 位版本恢复为以前的版本然后再次尝试您需要做的任何事情?
也许你得固定先前版本以防止再次发生同样的错误。