![为什么 dpkg 在安装更新时会出现“管道损坏”错误?](https://linux22.com/image/984724/%E4%B8%BA%E4%BB%80%E4%B9%88%20dpkg%20%E5%9C%A8%E5%AE%89%E8%A3%85%E6%9B%B4%E6%96%B0%E6%97%B6%E4%BC%9A%E5%87%BA%E7%8E%B0%E2%80%9C%E7%AE%A1%E9%81%93%E6%8D%9F%E5%9D%8F%E2%80%9D%E9%94%99%E8%AF%AF%EF%BC%9F.png)
dpkg
以下是运行更新时出现的错误消息:
sudo apt-get upgrade
dpkg: error processing archive /var/cache/apt/archives/linux-firmware_1.143.4_all.deb (--unpack):
unable to create `/lib/firmware/brcm/bcm4329-fullmac-4.bin.dpkg-new' (while processing `./lib/firmware/brcm/bcm4329-fullmac-4.bin'): Permission denied
dpkg-deb: error: subprocess paste was killed by signal (Broken pipe)
Errors were encountered while processing:
/var/cache/apt/archives/linux-firmware_1.143.4_all.deb
E: Sub-process /usr/bin/dpkg returned an error code (1)
File: ‘/lib/firmware/brcm’
Size: 4096 Blocks: 8 IO Block: 4096 directory
Device: 807h/2055d Inode: 1310841 Links: 2
Access: (0755/drwxr-xr-x) Uid: ( 0/ root) Gid: ( 0/ root)
Access: 2015-04-22 05:06:10.000000000 -0700
Modify: 2015-10-08 22:21:45.910890160 -0700
Change: 2015-10-09 18:04:40.694151822 -0700
Birth: -
*
[sudo] password for brian:
Reading package lists...
Done Building dependency tree
Reading state information...
Done Calculating upgrade...
Done The following packages will be upgraded:
linux-firmware
1 upgraded, 0 newly installed, 0 to remove and 0 not upgraded.
Need to get 0 B/24.7 MB of archives.
After this operation, 6,144 B disk space will be freed. Do you want to continue? [Y/n] y
(Reading database ... 230067 files and directories currently installed.)
Preparing to unpack .../linux-firmware_1.143.4_all.deb ...
Unpacking linux-firmware (1.143.4) over (1.143.3) ...
dpkg: error processing archive /var/cache/apt/archives/linux-firmware_1.143.4_all.deb (--unpack):
unable to create `/lib/firmware/brcm/bcm4329-fullmac-4.bin.dpkg-new' (while processing `./lib/firmware/brcm/bcm4329-fullmac-4.bin'):
Permission denied
dpkg-deb: error: subprocess paste was killed by signal (Broken pipe)
Errors were encountered while processing:
/var/cache/apt/archives/linux-firmware_1.143.4_all.deb
E: Sub-process /usr/bin/dpkg returned an error code (1)
*linux-firmware:
Installed: 1.143.3
Candidate: 1.143.4
Version table:
1.143.4 0
500 http://mirror.os6.org/ubuntu/ vivid-proposed/main amd64 Packages
*** 1.143.3 0
500 http://mirror.os6.org/ubuntu/ vivid-updates/main amd64 Packages
500 http://mirror.os6.org/ubuntu/ vivid-security/main amd64 Packages
100 /var/lib/dpkg/status
1.143 0
500 http://mirror.os6.org/ubuntu/ vivid/main amd64 Packages
答案1
使用主服务器
sudo sed -i 's/mirror.os6.org/archive.ubuntu.com/' /etc/apt/sources.list sudo apt-get update
删除
vivid-proposed
存储库:sudo sed -i '/vivid-proposed/d' /etc/apt/sources.list sudo apt-get update sudo apt-get install -f