0
0

Delete article

Deleted articles cannot be recovered.

Draft of this article would be also deleted.

Are you sure you want to delete this article?

dpkg-deb: error: paste subprocess was killed by signal (Broken pipe)の対処法

Posted at

はじめに

cudnnとかcuda周りのパッケージをインストールするときにタイトル通りのエラーが出たので対処法を書いておきます。
何か間違いやアドバイスがあったらコメントをお願いします。

筆者の環境

Windows11
WSL2
Ubuntu20.04

対処法

dpkg: error processing archive /var/cache/apt/hoge.deb (--unpack):
 trying to overwrite '/lib/udev/rules.d/hoge', which is also in package hoge
dpkg-deb: error: paste subprocess was killed by signal (Broken pipe)
Errors were encountered while processing:
 /var/cache/apt/archives/hoge.deb

とエラーの最後のほうに出ると思います。これの Errors were encountered while processingの後の
/var/cache/apt/archives/hoge.deb
をインストールしてあげます

sudo dpkg -i /var/cache/apt/archives/hoge.deb

このコマンドの後

sudo apt -f install

をするとうまくいくと思います。

0
0
0

Register as a new user and use Qiita more conveniently

  1. You get articles that match your needs
  2. You can efficiently read back useful information
  3. You can use dark theme
What you can do with signing up
0
0

Delete article

Deleted articles cannot be recovered.

Draft of this article would be also deleted.

Are you sure you want to delete this article?