Linux sudo-apt-get-install-libao-common

Linux sudo-apt-get-install-libao-common,linux,raspberry-pi,Linux,Raspberry Pi,为什么冲突的软件包不安装libao公共 它在一个覆盆子皮上 apt get-f安装不起作用 Reading package lists... Done Building dependency tree Reading state information... Done The following NEW packages will be installed: libao-common 0 upgraded, 1 newly installed, 0 to remove and

为什么冲突的软件包不安装
libao公共

它在一个覆盆子皮上

apt get-f安装不起作用

Reading package lists... Done
Building dependency tree       
Reading state information... Done
The following NEW packages will be installed:
  libao-common
0 upgraded, 1 newly installed, 0 to remove and 52 not upgraded.
4 not fully installed or removed.
Need to get 0 B/11.3 kB of archives.
After this operation, 49.2 kB of additional disk space will be used.
dpkg: regarding .../libao-common_1.1.0-2_armhf.deb containing libao-common:
 libao-common conflicts with libao2
  libao2 (version 0.8.4-1) is present and unpacked but not configured.

dpkg: error processing /var/cache/apt/archives/libao-common_1.1.0-2_armhf.deb (--unpack):
 conflicting packages - not installing libao-common
Errors were encountered while processing:
 /var/cache/apt/archives/libao-common_1.1.0-2_armhf.deb
E: Sub-process /usr/bin/dpkg returned an error code (1)
请注意这条消息:

4未完全安装或拆除

可能您安装其他软件包失败。然后apt工具尝试再次安装它们

所以,首先卸载这些错误包

root@raspberrypi:~# apt-get -f install
Reading package lists... Done
Building dependency tree       
Reading state information... Done
Correcting dependencies... Done
The following extra packages will be installed:
  libao-common
The following NEW packages will be installed:
  libao-common
0 upgraded, 1 newly installed, 0 to remove and 52 not upgraded.
4 not fully installed or removed.
Need to get 11.3 kB of archives.
After this operation, 49.2 kB of additional disk space will be used.
Do you want to continue [Y/n]? y
Get:1 http://mirrordirector.raspbian.org/raspbian/ wheezy/main libao-common armhf 1.1.0-2 [11.3 kB]
Fetched 11.3 kB in 2s (4,117 B/s) 
dpkg: regarding .../libao-common_1.1.0-2_armhf.deb containing libao-common:
 libao-common conflicts with libao2
  libao2 (version 0.8.4-1) is present and unpacked but not configured.

dpkg: error processing /var/cache/apt/archives/libao-common_1.1.0-2_armhf.deb (--unpack):
 conflicting packages - not installing libao-common
Errors were encountered while processing:
 /var/cache/apt/archives/libao-common_1.1.0-2_armhf.deb
E: Sub-process /usr/bin/dpkg returned an error code (1)
您需要先卸下4个未完全安装或卸下的软件包

root@raspberrypi:~# apt-get -f install
Reading package lists... Done
Building dependency tree       
Reading state information... Done
Correcting dependencies... Done
The following extra packages will be installed:
  libao-common
The following NEW packages will be installed:
  libao-common
0 upgraded, 1 newly installed, 0 to remove and 52 not upgraded.
4 not fully installed or removed.
Need to get 11.3 kB of archives.
After this operation, 49.2 kB of additional disk space will be used.
Do you want to continue [Y/n]? y
Get:1 http://mirrordirector.raspbian.org/raspbian/ wheezy/main libao-common armhf 1.1.0-2 [11.3 kB]
Fetched 11.3 kB in 2s (4,117 B/s) 
dpkg: regarding .../libao-common_1.1.0-2_armhf.deb containing libao-common:
 libao-common conflicts with libao2
  libao2 (version 0.8.4-1) is present and unpacked but not configured.

dpkg: error processing /var/cache/apt/archives/libao-common_1.1.0-2_armhf.deb (--unpack):
 conflicting packages - not installing libao-common
Errors were encountered while processing:
 /var/cache/apt/archives/libao-common_1.1.0-2_armhf.deb
E: Sub-process /usr/bin/dpkg returned an error code (1)
然后


现在,再次尝试安装新软件包。

。但这不是一个编码问题。属于服务器故障或超级用户。请再次尝试配置liba02包。它在那里,但没有配置。您可以再次安装liba02(作为快捷方式而不是配置),然后再次尝试安装liba0通用软件包。希望这有帮助。
sudo易于清理和&sudo易于自动删除
并重试。@Sam它不起作用!dpkg:关于…/libao-common_1.1.0-2_armhf.deb,包含libao common:libao common与libao2 libao2(版本0.8.4-1)冲突,已存在并已解包但未配置。dpkg:错误处理/var/cache/apt/archives/libao-common_1.1.0-2_armhf.deb(--解包):包冲突-未安装libao处理时遇到常见错误:/var/cache/apt/archives/libao-common_1.1.0-2_armhf.deb E:子进程/usr/bin/dpkg返回错误代码(1)也许你已经安装了另一个版本的libao?
sudo apt autoremove