ubuntu 无法更新问题
来源:互联网 发布:杨辉三角c语言程序详细 编辑:程序博客网 时间:2024/06/06 08:43
在学习 linux 多线程 是想要查找 pthread_rwlock_init() 函数时 : man pthread_rwlock_init
问题:No manual entry for pthread_rwlock_init
于是找了方法:
sudo apt-get install manpages-posix-dev 来自博客:http://blog.csdn.net/flyqwang/article/details/7855695
但是问题: { apt-get install manpages-posix-devReading package lists... DoneBuilding dependency tree Reading state information... DoneThe following packages were automatically installed and are no longer required: debugedit librpmbuild3 librpmsign1Use 'apt-get autoremove' to remove them.The following extra packages will be installed: manpages-posixThe following NEW packages will be installed: manpages-posix manpages-posix-dev0 upgraded, 2 newly installed, 0 to remove and 723 not upgraded.Need to get 2,291 kB of archives.After this operation, 6,459 kB of additional disk space will be used.Do you want to continue? [Y/n] yErr http://cn.archive.ubuntu.com/ubuntu/ trusty/multiverse manpages-posix all 2.16-1 Could not resolve 'cn.archive.ubuntu.com'Err http://cn.archive.ubuntu.com/ubuntu/ trusty/multiverse manpages-posix-dev all 2.16-1 Could not resolve 'cn.archive.ubuntu.com'E: Failed to fetch http://cn.archive.ubuntu.com/ubuntu/pool/multiverse/m/manpages-posix/manpages-posix_2.16-1_all.deb Could not resolve 'cn.archive.ubuntu.com'E: Failed to fetch http://cn.archive.ubuntu.com/ubuntu/pool/multiverse/m/manpages-posix/manpages-posix-dev_2.16-1_all.deb Could not resolve 'cn.archive.ubuntu.com'E: Unable to fetch some archives, maybe run apt-get update or try with --fix-missing?
}
解决:Ubuntu 解决:当执行`sudo apt-get update`命令时 出现的 “apt-get 404 Not Found Package Repository Errors” 问题
1. 首先,我们将现在出问题的 /etc/apt/sources.list
文件备份一份。( 保存于代码片 方便以后)2. 接着,我们重新编写一个 /etc/apt/sources.list
文件:- 1
将下面的模板内容,复制粘贴到 /etc/apt/sources.list
文件里面后,保存就可以了:(我们使用的Ubuntu 是14.04)
3. 出现这个问题的原因是: 之前 /etc/apt/sources.list
路径里面的软件源更新网站有的已经过时了,需要更新新的网站。
- 1
如果你出现这样的错误,说明你的网断了,查看网络连接情况。
4. 其他版本ubuntu 看 http://blog.csdn.net/github_35160620/article/details/52115542
改了值后还是无效。。。。。。。。。。。。。
于是 改dns 查看是否是网络原因:参考博客 http://blog.csdn.net/sunnyfg/article/details/51444404
1.修改ubuntu的网络配置:
将 自己 对应的 DNS 写入 保存 既可以下载 更新
0 0
- ubuntu 无法更新问题
- Ubuntu无法更新的问题
- 解决 Ubuntu 无法更新软件问题
- ubuntu下无法更新android sdk问题 adt更新问题
- Ubuntu 8.10内核无法更新问题,无法关机的解决
- Ubuntu无法更新
- [Ubuntu]无法更新软件
- Ubuntu下软件更新无法安装的问题
- Ubuntu下软件更新无法安装的问题
- Ubuntu更新管理器无法初始化软件包信息的问题
- AndroidSDKManager无法更新问题
- FragmentStatePagerAdapter 无法更新问题
- Ubuntu更新后无法显示图形界面和无法登录的问题
- ubuntu更新问题
- ubuntu更新问题
- Ubuntu安装更新问题
- Ubuntu 9.04更新后桌面无法显示问题的解决(输入密码后死机)
- virtualbox更新完无法启动的问题(不能为虚拟电脑 Ubuntu 打开一个新任务)
- 剑指offer——面试题12:打印1到最大的n位数
- Android--Error:Jack is required to support java 8 language features. Either enable Jack or remove so
- Spring多数据源的配置和使用
- 《机器学习》第二章学习总结
- 重新认识java(一) ---- 万物皆对象
- ubuntu 无法更新问题
- 关系型数据库与SQL
- iOS 修改状态栏的颜色的时候,始终无法高亮的解决办法之二
- 浏览器对象模型BOM之history对象
- PCA原理总结
- 13章 练习
- 13章 项目
- 随机蕨分类器
- HTML 后台管理页面布局