Ubuntu的软件源更新常见问题及解决
来源:互联网 发布:临沂嘎嘎网络 编辑:程序博客网 时间:2024/05/22 01:56
最近家里的网可能被天朝了,一直很好用的更新设置,出现各种错误,但在公司可以,所以应该是网络的问题,所以把遇到的问题整理了一下:
问题一:
执行命令
sudo apt-get update
错误描述如下:
W: Failed to fetch http://mirrors.sohu.com/ubuntu/dists/precise/universe/i18n/Index No Hash entry in Release file /var/lib/apt/lists/partial/mirrors.sohu.com_ubuntu_dists_precise_universe_i18n_IndexW: Failed to fetch bzip2:/var/lib/apt/lists/partial/mirrors.sohu.com_ubuntu_dists_precise-updates_main_binary-i386_Packages Hash Sum mismatchW: Failed to fetch bzip2:/var/lib/apt/lists/partial/extras.ubuntu.com_ubuntu_dists_precise_main_binary-i386_Packages Hash Sum mismatchE: Some index files failed to download. They have been ignored, or old ones used instead.
解决方法:
将/var/lib/apt/lists/partial/下的所有文件删除,但是这可以解决大部分问题,个别源不能解决,如"/var/lib/apt/lists/partial/extras.ubuntu.com_ubuntu_dists_precise_main_binary-i386_Packages",无耐进入/var/lib/apt/lists/将对应的文件删除
注:经过长时间的实践,这个解决方法不是万能的,最终解决方法还是FQ吧。
问题二:
无法找到对应的KEY
W
:
GPG
error: http://mirrors.sohu.com precise Release: The following signatures couldn't be verified because the public key is
not
available:
NO_PUBKEY
40976EAF437D05B5
W
:
GPG
error: http://mirrors.sohu.com precise-updates Release: The following signatures couldn't be verified because the public key is
not
available:
NO_PUBKEY
40976EAF437D05B5
W
:
GPG
error: http://mirrors.sohu.com precise-proposed Release: The following signatures couldn't be verified because the public key is
not
available:
NO_PUBKEY
40976EAF437D05B5
W
:
GPG
error: http://archive.canonical.com precise Release: The following signatures couldn't be verified because the public key is
not
available:
NO_PUBKEY
40976EAF437D05B5
W
:
GPG
error: http://security.ubuntu.com precise-security Release: The following signatures couldn't be verified because the public key is
not
available:
NO_PUBKEY
40976EAF437D05B5
解决方法:
使用如下命令:
gpg --keyserver subkeys.pgp.net --recv-keys
40976EAF437D05B5
gpg -a --export
40976EAF437D05B5
| sudo apt-key add -
阅读全文
0 0
- Ubuntu的软件源更新常见问题及解决
- Ubuntu的软件源更新常见问题及解决
- Ubuntu的软件源更新常见问题及解决
- ubuntu常见问题及解决
- ubuntu常见问题及解决汇总
- Ubuntu常见问题及解决汇总
- 【linux】ubuntu下nginx的安装及常见问题解决
- Ubuntu Amarok 安装及几个常见问题解决
- Ubuntu设置、应用及常见问题解决(链接)
- Ubuntu Amarok 安装及几个常见问题解决
- ubuntu安装navicat及常见问题解决
- ubuntu安装minidwep-gtk及常见问题解决
- ubuntu安装navicat及常见问题解决
- ubuntu安装nginx及常见问题解决
- 更新Ubuntu软件源
- ubuntu软件源更新
- ubuntu 更新软件源
- ubuntu更新软件源
- C语言回溯法递归求解八皇后问题
- Tomcat源码学习--Session创建销毁
- 超越微软、Google、Facebook ! 旷视科技研究院包揽 COCO、Places 三项世界冠军
- 商汤科技43篇论文横扫2017ICCV 实习生摘得五项世界冠军
- JavaScript 对象拷贝与Object.assign
- Ubuntu的软件源更新常见问题及解决
- Win7 x64 Eclipse无法识别手机 / adb interface有黄色感叹号,无法识别
- Android,沉浸式模式
- Oracle(二)函数,与各种连接查询
- java Excel导出
- 网站无非复制右键禁止特效药
- The Haskell process `xx’ has died issue
- web项目中使用多线程的一些坑
- 5.Spring Boot部署