Linux老版本不能使用apt-get的解决方案
来源:互联网 发布:python能爬取收费视频 编辑:程序博客网 时间:2024/05/17 07:36
有些同学在学习Linux的时候,使用的还是旧版本的Ubuntu,如11版本,但是可能支持这个版本的服务器已经不再工作,或是资源已经不再提供了,所以在执行
apt-get update
apt-get install ***
的时候会出现无法下载的情况。
如果遇到这种情况,可以将本系统的列表文件换成高版本的列表(附于文后),实测可用。
具体步骤如下:
1.sudo gedit /etc/apt/source.lest
2.将下文内容剪切替换,保存;
3.可以进行下载,更新工作了。
文件如下:
#deb cdrom:[Ubuntu-Kylin 14.04 LTS _Trusty Tahr_ - Release amd64 (20140417.1)]/ trusty main multiverse restricted universe
# See http://help.ubuntu.com/community/UpgradeNotes for how to upgrade to
# newer versions of the distribution.
deb http://us.archive.ubuntu.com/ubuntu/ trusty main restricted
deb-src http://us.archive.ubuntu.com/ubuntu/ trusty main restricted
## Major bug fix updates produced after the final release of the
## distribution.
deb http://us.archive.ubuntu.com/ubuntu/ trusty-updates main restricted
deb-src http://us.archive.ubuntu.com/ubuntu/ trusty-updates main restricted
## N.B. software from this repository is ENTIRELY UNSUPPORTED by the Ubuntu
## team. Also, please note that software in universe WILL NOT receive any
## review or updates from the Ubuntu security team.
deb http://us.archive.ubuntu.com/ubuntu/ trusty universe
deb-src http://us.archive.ubuntu.com/ubuntu/ trusty universe
deb http://us.archive.ubuntu.com/ubuntu/ trusty-updates universe
deb-src http://us.archive.ubuntu.com/ubuntu/ trusty-updates universe
## N.B. software from this repository is ENTIRELY UNSUPPORTED by the Ubuntu
## team, and may not be under a free licence. Please satisfy yourself as to
## your rights to use the software. Also, please note that software in
## multiverse WILL NOT receive any review or updates from the Ubuntu
## security team.
deb http://us.archive.ubuntu.com/ubuntu/ trusty multiverse
deb-src http://us.archive.ubuntu.com/ubuntu/ trusty multiverse
deb http://us.archive.ubuntu.com/ubuntu/ trusty-updates multiverse
deb-src http://us.archive.ubuntu.com/ubuntu/ trusty-updates multiverse
## N.B. software from this repository may not have been tested as
## extensively as that contained in the main release, although it includes
## newer versions of some applications which may provide useful features.
## Also, please note that software in backports WILL NOT receive any review
## or updates from the Ubuntu security team.
deb http://us.archive.ubuntu.com/ubuntu/ trusty-backports main restricted universe multiverse
deb-src http://us.archive.ubuntu.com/ubuntu/ trusty-backports main restricted universe multiverse
deb http://security.ubuntu.com/ubuntu trusty-security main restricted
deb-src http://security.ubuntu.com/ubuntu trusty-security main restricted
deb http://security.ubuntu.com/ubuntu trusty-security universe
deb-src http://security.ubuntu.com/ubuntu trusty-security universe
deb http://security.ubuntu.com/ubuntu trusty-security multiverse
deb-src http://security.ubuntu.com/ubuntu trusty-security multiverse
## Uncomment the following two lines to add software from Canonical's
## 'partner' repository.
## This software is not part of Ubuntu, but is offered by Canonical and the
## respective vendors as a service to Ubuntu users.
# deb http://archive.canonical.com/ubuntu trusty partner
# deb-src http://archive.canonical.com/ubuntu trusty partner
## Uncomment the following two lines to add software from Ubuntu's
## 'extras' repository.
## This software is not part of Ubuntu, but is offered by third-party
## developers who want to ship their latest software.
# deb http://extras.ubuntu.com/ubuntu trusty main
# deb-src http://extras.ubuntu.com/ubuntu trusty main
- Linux老版本不能使用apt-get的解决方案
- 老版本Ubuntu使用apt-get不能安装软件问题
- ubuntu11.04 更新版本(其他的老版本都是相似的)(不能使用apt-get update)
- linux使用apt-get install 就出现jdk7 install的错误的解决方案
- 老版本ubuntu 修改源,才能使用 apt-get install 命令
- xcode4以上不能调试iPod iTouch老版本的解决方案
- apt-get 版本不一致安装错误解决方案
- 关于BT5不能使用apt-get命令的解决方法
- Ubuntu使用apt-get安装Apache2报错时的解决方案
- apt-get 的使用
- Ubuntu 使用apt-get install安装制定版本的mysql
- linux -centos 使用apt-get
- ubuntu使用apt-get 出现错误解决方案
- Ubuntu apt-get 出现文件锁定,不能访问的情况解决方案
- ubuntu apt-get 出现NO_PUBKEY的解决方案
- Linux使用apt-get安装软件时出现的问题
- linux系统下apt-get指令的使用
- Linux Shell 命令学习二-----------apt-get指令的使用
- WifiP2pManager讲解
- linux下Samba服务器的配置
- H2数据库攻略
- c# 多显示器设置主屏幕(Set primary screen for multiple monitors)
- iOS开发--根据文字动态调整按钮(UIButton)宽度
- Linux老版本不能使用apt-get的解决方案
- javacc ()? ()* ()+
- Insert Interval--LeetCode
- C++指针数组、数组指针、数组名及二维数组技巧汇总
- 强制使用https访问
- P51:第七题
- 作业p51-7
- 翻译==Android 进程和线程
- 华为机试题目