芽萌丸プログラミング部@programming
投稿日 2024/7/4

Ubuntu: apt install で dpkg-deb: error: paste subprocess was killed by signal (Broken pipe) なエラーの対処方法

問題

Ubuntu で apt install 中に以下のようなdpkg: error processing archive /var/cache/apt/archives/linux-tools-common_5.15.0-113.123_all.deb (--unpack)エラーが発生する:

sudo apt install linux-cloud-tools-5.15.0-113-generic

Reading package lists... Done
Building dependency tree... Done
Reading state information... Done
Correcting dependencies... Done
The following additional packages will be installed:
  linux-tools-common
The following NEW packages will be installed
  linux-tools-common
0 to upgrade, 1 to newly install, 0 to remove and 1 not to upgrade.
2 not fully installed or removed.
Need to get 0 B/312 kB of archives.
After this operation, 1,028 kB of additional disk space will be used.
Do you want to continue? [Y/n] y
(Reading database ... 623640 files and directories currently installed.)
Preparing to unpack .../linux-tools-common_5.15.0-113.123_all.deb ...
Unpacking linux-tools-common (5.15.0-113.123) ...
dpkg: error processing archive /var/cache/apt/archives/linux-tools-common_5.15.0-113.123_all.deb (--unpack):
 trying to overwrite '/usr/bin/acpidbg', which is also in package linux-intel-iotg-tools-common 5.15.0-1059.65
dpkg-deb: error: paste subprocess was killed by signal (Broken pipe)
Errors were encountered while processing:
 /var/cache/apt/archives/linux-tools-common_5.15.0-113.123_all.deb
E: Sub-process /usr/bin/dpkg returned an error code (1)

上記エラーメッセージの/var/cache/apt/archives/linux-tools-common_5.15.0-113.123_all.debの部分が重要。

解決方法

以下を実行することで解決できる:

sudo dpkg -i --force-overwrite /var/cache/apt/archives/linux-tools-common_5.15.0-113.123_all.deb
sudo apt -f install

参考:[SOLVED] Linux Tools : dpkg-deb: error: paste subprocess was killed by signal (Broken pipe)


芽萌丸プログラミング部
芽萌丸プログラミング部@programming
プログラミング関連アカウント。Web標準技術を中心に書いていきます。フロントエンドからサーバサイドまで JavaScript だけで済ませたい人たちの集いです。記事は主に @TanakaSoftwareLab が担当。