关于老版本的ubuntu更新源问题
2013-05-14 21:08
330 查看
首先声明,本博客非原创,参考了相关博客的,地址为:http://blog.chinaunix.net/uid-25873032-id-3615694.html
前几天开始涉及《linux设备驱动程序》第三版,也就是传说中的ldd3。里面的开始写程序前要求搭建2.6.X的内核树,书中并未提及相关方法,于是就到谷歌搜索百度,然后再百度下再搜.........问题一开始就卡住了,现在的linux系统使用内核都是3.X了,能用2.6的吗?我拿不准。再参考了一些资料,确定似乎不行,必须使用内带kernel版本为2.6.X的linux系统。于是再搜索....得到ubuntu
7.10和ubuntu 10.10都是使用的2.6.X的内核。
接下来就是本博客的中心了,老的版本的apt-get 更新源没法使用(有的没可用公钥,有的无法链接),导致无法安装相关工具,比如配置内核时候需要的一些界面支持等等。于是又百度谷歌了很多,直到找到上述的博客,于是乎一切都光明起来了,似乎。
废话不说了,上述的经历,只是想让看到这篇博客的读者感叹一下,“我考!跟我一样的经历。”
注意,作者尝试过ubuntu10.10和7.10,都能使用,其余版本不清楚但是理论上行,嘿嘿。
相关步骤如下:
sudo
cp /etc/apt/sources.list etc/apt/sources.list .backup
(备份更新源文件,以防不测)
sudo
gedit /etc/apt/sources.list (反正是修改这个文件,其他的方式也行,删除其中内容,改为下列的内容)
sudo apt-get update
#修改后的文件内容
## distribution.
deb http://old-releases.ubuntu.com/ubuntu/ maverick main restricted
deb-src http://old-releases.ubuntu.com/ubuntu/ maverick main restricted
deb http://old-releases.ubuntu.com/ubuntu/ maverick-updates main restricted
deb-src http://old-releases.ubuntu.com/ubuntu/ maverick-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://old-releases.ubuntu.com/ubuntu/ maverick universe
deb-src http://old-releases.ubuntu.com/ubuntu/ maverick universe
deb http://old-releases.ubuntu.com/ubuntu/ maverick-updates universe
deb-src http://old-releases.ubuntu.com/ubuntu/ maverick-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://old-releases.ubuntu.com/ubuntu/ maverick multiverse
deb-src http://old-releases.ubuntu.com/ubuntu/ maverick multiverse
deb http://old-releases.ubuntu.com/ubuntu/ maverick-updates multiverse
deb-src http://old-releases.ubuntu.com/ubuntu/ maverick-updates multiverse
前几天开始涉及《linux设备驱动程序》第三版,也就是传说中的ldd3。里面的开始写程序前要求搭建2.6.X的内核树,书中并未提及相关方法,于是就到谷歌搜索百度,然后再百度下再搜.........问题一开始就卡住了,现在的linux系统使用内核都是3.X了,能用2.6的吗?我拿不准。再参考了一些资料,确定似乎不行,必须使用内带kernel版本为2.6.X的linux系统。于是再搜索....得到ubuntu
7.10和ubuntu 10.10都是使用的2.6.X的内核。
接下来就是本博客的中心了,老的版本的apt-get 更新源没法使用(有的没可用公钥,有的无法链接),导致无法安装相关工具,比如配置内核时候需要的一些界面支持等等。于是又百度谷歌了很多,直到找到上述的博客,于是乎一切都光明起来了,似乎。
废话不说了,上述的经历,只是想让看到这篇博客的读者感叹一下,“我考!跟我一样的经历。”
注意,作者尝试过ubuntu10.10和7.10,都能使用,其余版本不清楚但是理论上行,嘿嘿。
相关步骤如下:
sudo
cp /etc/apt/sources.list etc/apt/sources.list .backup
(备份更新源文件,以防不测)
sudo
gedit /etc/apt/sources.list (反正是修改这个文件,其他的方式也行,删除其中内容,改为下列的内容)
sudo apt-get update
#修改后的文件内容
## distribution.
deb http://old-releases.ubuntu.com/ubuntu/ maverick main restricted
deb-src http://old-releases.ubuntu.com/ubuntu/ maverick main restricted
deb http://old-releases.ubuntu.com/ubuntu/ maverick-updates main restricted
deb-src http://old-releases.ubuntu.com/ubuntu/ maverick-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://old-releases.ubuntu.com/ubuntu/ maverick universe
deb-src http://old-releases.ubuntu.com/ubuntu/ maverick universe
deb http://old-releases.ubuntu.com/ubuntu/ maverick-updates universe
deb-src http://old-releases.ubuntu.com/ubuntu/ maverick-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://old-releases.ubuntu.com/ubuntu/ maverick multiverse
deb-src http://old-releases.ubuntu.com/ubuntu/ maverick multiverse
deb http://old-releases.ubuntu.com/ubuntu/ maverick-updates multiverse
deb-src http://old-releases.ubuntu.com/ubuntu/ maverick-updates multiverse
相关文章推荐
- 关于Ubuntu的Unable to locate package无法更新源问题解决方案
- 关于ubuntu更新sudo apt-get update和sudo apt-get upgrade下载缓慢的问题
- Ubuntu关于更新源的问题
- 关于Ubuntu使用apt-get更新失败问题。
- 关于Ubuntu的Unable to locate package无法更新源问题解决方案
- 关于老版ubuntu更新源问题
- 关于ubuntu更新源W:GPG错误的问题
- 关于ubuntu更新文件配置多次的问题
- 关于myeclipse 8.5下android开发R.java文件不生成或不更新问题的解决
- 关于ubuntu更新完compiz出现没有标题栏的解决方法
- 关于ubuntu内核升级的问题
- Ubuntu更新过程被中断后的问题
- 关于Android开发环境更新后出现的小问题,如Android studio和Eclipse中的ADT
- 关于ubuntu10.04升级grub2的问题
- 关于linux ubuntu的不常用命令(不定时更新)
- 关于使用featurecursor.updatefeature批量更新要素时遇到的问题
- 关于TDBNavigator->VisibleButtons及TDBGrid->Options属性更新的问题
- 关于mybaties中的一些小问题(不定时更新)
- 关于更新Xcode7后网络请求数据问题?