小编jss*_*367的帖子

由于哈希总和不匹配,sudo apt-get 更新失败

当我运行时,sudo apt-get update我收到四个哈希和不匹配错误:

W: Failed to fetch http://au.archive.ubuntu.com/ubuntu/dists/trusty-updates/main/binary-amd64/Packages  Hash Sum mismatch    
W: Failed to fetch http://au.archive.ubuntu.com/ubuntu/dists/trusty-updates/universe/binary-amd64/Packages  Hash Sum mismatch    
W: Failed to fetch http://au.archive.ubuntu.com/ubuntu/dists/trusty-updates/main/binary-i386/Packages  Hash Sum mismatch    
W: Failed to fetch http://au.archive.ubuntu.com/ubuntu/dists/trusty-updates/universe/binary-i386/Packages  Hash Sum mismatch
Run Code Online (Sandbox Code Playgroud)

我试着用

sudo rm /var/lib/apt/lists/* -vf
sudo apt-get update 
Run Code Online (Sandbox Code Playgroud)

但这没有用,也没有用

sudo apt-get clean
sudo apt-get update
Run Code Online (Sandbox Code Playgroud)

或者

sudo apt-get dist-upgrade
sudo apt-get update
Run Code Online (Sandbox Code Playgroud)

我还有其他方法可以尝试解决这个问题吗?

updates apt

17
推荐指数
3
解决办法
5万
查看次数

升级或卸载 cuda 以允许 apt-get 工作

每当我尝试安装某些东西时,都会出现以下错误:

The following packages have unmet dependencies:

cuda-samples-8.0 : Depends: cuda-cufft-dev-8-0 but it is not going to be installed

cuda-toolkit-8.0 : Depends: cuda-cufft-dev-8-0 but it is not going to be installed

cuda-visual-tools-8.0 : Depends: cuda-cufft-dev-8-0 but it is not going to be installed
Run Code Online (Sandbox Code Playgroud)

我尝试sudo apt-get -f install,它说:

The following packages were automatically installed and are no longer required:
[lots of cuda 7.5 packages and some other linux ones like linux-image-4.2.0-27-generic]
The following extra packages will be installed:
cuda-cufft-dev-8-0 …
Run Code Online (Sandbox Code Playgroud)

uninstall apt nvidia cuda

5
推荐指数
2
解决办法
1万
查看次数

标签 统计

apt ×2

cuda ×1

nvidia ×1

uninstall ×1

updates ×1