1.问题描述
最近想着要编译linux 2.6.39版本的kernel玩一玩,于是就想着安装一个远古版本的Ubuntu去搭建编译环境,我这里采用的是Ubuntu11.04版本,当我正准备运行sudo apt-get update
准备去安装一些必备的工具时,报出了如下错误
其实大概的意思就是你的系统太old了,现在的软件源已经不支持你的系统了…
2.解决方案
- 备份原有的软件源
sudo cp /etc/apt/sources.list /etc/apt/sources.list.backup
- 更换软件源
sudo nano /etc/apt/sources.list
- 删除所有内容,然后写入如下内容
deb http://old-releases.ubuntu.com/ubuntu/ natty main restricted universe multiverse
deb http://old-releases.ubuntu.com/ubuntu/ natty-updates main restricted universe multiverse
deb http://old-releases.ubuntu.com/ubuntu/ natty-security main restricted universe multiverse
deb http://old-releases.ubuntu.com/ubuntu/ natty-backports main restricted universe multiverse
- 使用不带签名验证的软件更新
sudo apt-get update --allow-unauthenticated
- 更新完成
最后这个报错不要担心,只是提醒你某些软件不支持而已,毕竟老古董,有的用就不错了
- 安装软件测试
sudo apt-get install curl --allow-unauthenticated