dpkg-deb: error: paste subprocess was killed by signal (Broken pipe)

1.问题描述

打算在Ubuntu18.04上安装cuda10.2,出现以下错误

dpkg-deb: error: paste subprocess was killed by signal (Broken pipe)
Errors were encountered while processing:
 /var/cache/apt/archives/nvidia-cuda-dev_9.1.85-3ubuntu1_amd64.deb
E: Sub-process /usr/bin/dpkg returned an error code (1)

2.问题解决

  • 1.打开终端 输入sudo dpkg -i --force-overwrite xxx(有问题的地方)
 sudo dpkg -i --force-overwrite /var/cache/apt/archives/nvidia-cuda-dev_9.1.85-3ubuntu1_amd64.deb
  • 2.修复损坏的包
sudo apt-get -f install

3.完结撒花

你可能感兴趣的:(Ubuntu系统跳坑指南,ubuntu,linux,运维)