web-dev-qa-db-ja.com

アップデートのインストール中に、dpkgが「壊れたパイプ」エラーを出すのはなぜですか?

更新の実行中に表示されるエラーメッセージ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
2
Brian Turner
  1. メインサーバーを使用する

    Sudo sed -i 's/mirror.os6.org/archive.ubuntu.com/' /etc/apt/sources.list
    Sudo apt-get update
    
  2. vivid-proposedリポジトリを削除します。

    Sudo sed -i '/vivid-proposed/d' /etc/apt/sources.list
    Sudo apt-get update
    Sudo apt-get install -f
    
2
A.B.