当我安装 cuda 工具包 Ubuntu 14.04 时出现dpkg
错误。
这是我做的:
sudo apt-get install build-essential
sudo dpkg -i cuda-repo-ubuntu1404-7-0-local_7.0-28_amd64.deb
但是我收到此错误dpkg
:
dpkg-deb: error: cuda-repo-ubuntu1404-7-0-local_7.0-28_amd64.deb is not a debian format archive
dpkg: error processing archive cuda-repo-ubuntu1404-7-0-local_7.0-28_amd64.deb (--install):
subprocess dpkg-deb --control returned error exit status 2
dpkg-split: error: error reading .: Is a directory
dpkg: error processing archive . (--install):
subprocess dpkg-split returned error exit status 2
Errors were encountered while processing:
cuda-repo-ubuntu1404-7-0-local_7.0-28_amd64.deb
答案1
确保您与 .deb 文件位于同一目录中,并且您使用的 dpkg 命令的文件名正确。