Ubuntu11.04 sudo apt-get install flex无法更新的问题解决方法

今天Ubuntu11.04安装SimpleScalar时,使用sudo apt-get install flex-old bison gedit更新一些软件时,发现不能更新了(错误关键词为404 not found和“无法下载”之类的一大堆)。直入主题,解决方法就是为其添加修改更新源的网址。

输入以下命令:

sudo gedit /etc/apt/sources.list

就能在gedit中打开sources.list。

将以下的修改更新源的网址复制粘贴在sources.list中并按保存。如果sources.list为只读权限,那么首先更改它的权限(代码为:sudo chomd 777 /etc/apt/sources.list)然后再打开sources.list进行相应的复制粘贴保存。

在别人博客中找到了一些修改更新源的文档和源的网址

Ubuntu 10.04 台湾更新源:

deb http://tw.archive.ubuntu.com/ubuntu/ lucid main universe restricted multiverse
deb http://tw.archive.ubuntu.com/ubuntu/ lucid-updates universe main multiverse restricted
deb http://tw.archive.ubuntu.com/ubuntu/ lucid-proposed universe main multiverse restricted
deb http://tw.archive.ubuntu.com/ubuntu/ lucid-security universe main multiverse restricted
deb http://tw.archive.ubuntu.com/ubuntu/ lucid-backports main multiverse restricted universe
deb-src http://tw.archive.ubuntu.com/ubuntu/ lucid main universe restricted multiverse
deb-src http://tw.archive.ubuntu.com/ubuntu/ lucid-security universe main multiverse restricted
deb-src http://tw.archive.ubuntu.com/ubuntu/ lucid-updates universe main multiverse restricted
deb-src http://tw.archive.ubuntu.com/ubuntu/ lucid-proposed universe main multiverse restricted
deb-src http://tw.archive.ubuntu.com/ubuntu/ lucid-backports universe main multiverse restricted


Ubuntu 10.04更新源 -Lucid Lynx-中国源,提供 ArchLinux,Everest,FreeBSD,Fedora,LFS,Magiclinux,Mandriva,OpenOffice,openSUSE,Puppy,Red Hat,Slitaz,Turbolinux,Ubuntu

deb http://mirror.lupaworld.com/Ubuntu/ lucid main universe restricted multiverse
deb-src http://mirror.lupaworld.com/Ubuntu/ lucid main universe restricted multiverse
deb http://mirror.lupaworld.com/Ubuntu/ lucid-security universe main multiverse restricted
deb-src http://mirror.lupaworld.com/Ubuntu/ lucid-security universe main multiverse restricted
deb http://mirror.lupaworld.com/Ubuntu/ lucid-updates universe main multiverse restricted
deb http://mirror.lupaworld.com/Ubuntu/ lucid-proposed universe main multiverse restricted
deb-src http://mirror.lupaworld.com/Ubuntu/ lucid-proposed universe main multiverse restricted
deb http://mirror.lupaworld.com/Ubuntu/ lucid-backports universe main multiverse restricted
deb-src http://mirror.lupaworld.com/Ubuntu/ lucid-backports universe main multiverse restricted
deb-src http://mirror.lupaworld.com/Ubuntu/ lucid-updates universe main multiverse restricted


rootguide源,Ubuntu官方上海源,提供 Kernel,Hiweed,ubuntu

deb http://mirror.rootguide.org/Ubuntu/ lucid main universe restricted multiverse
deb-src http://mirror.rootguide.org/Ubuntu/ lucid main universe restricted multiverse
deb http://mirror.rootguide.org/Ubuntu/ lucid-security universe main multiverse restricted
deb-src http://mirror.rootguide.org/Ubuntu/ lucid-security universe main multiverse restricted
deb http://mirror.rootguide.org/Ubuntu/ lucid-updates universe main multiverse restricted
deb http://mirror.rootguide.org/Ubuntu/ lucid-proposed universe main multiverse restricted
deb-src http://mirror.rootguide.org/Ubuntu/ lucid-proposed universe main multiverse restricted
deb http://mirror.rootguide.org/Ubuntu/ lucid-backports universe main multiverse restricted
deb-src http://mirror.rootguide.org/Ubuntu/ lucid-backports universe main multiverse restricted
deb-src http://mirror.rootguide.org/Ubuntu/ lucid-updates universe main multiverse restricted


网易开源镜像站,提供 FreeBSD,OpenBSD,archlinux,centos,cygwin,debian,Fedora,gentoo,kernel,openSUSE,slackware,Ubuntu

deb http://mirrors.163.com/Ubuntu/ lucid main universe restricted multiverse
deb-src http://mirrors.163.com/Ubuntu/ lucid main universe restricted multiverse
deb http://mirrors.163.com/Ubuntu/ lucid-security universe main multiverse restricted
deb-src http://mirrors.163.com/Ubuntu/ lucid-security universe main multiverse restricted
deb http://mirrors.163.com/Ubuntu/ lucid-updates universe main multiverse restricted
deb http://mirrors.163.com/Ubuntu/ lucid-proposed universe main multiverse restricted
deb-src http://mirrors.163.com/Ubuntu/ lucid-proposed universe main multiverse restricted
deb http://mirrors.163.com/Ubuntu/ lucid-backports universe main multiverse restricted
deb-src http://mirrors.163.com/Ubuntu/ lucid-backports universe main multiverse restricted
deb-src http://mirrors.163.com/Ubuntu/ lucid-updates universe main multiverse restricted


搜狐开源镜像站,提供 CPAN,FreeBSD,NetBSD,OpenBSD,apache,archlinux,centos,cygwin,dag,debian,Fedora,gentoo,kernel,lfs,mysql,nginx,openSUSE,php,rpmfusion,slackware,Ubuntu

deb http://mirrors.shlug.org/Ubuntu/ lucid main universe restricted multiverse
deb-src http://mirrors.shlug.org/Ubuntu/ lucid main universe restricted multiverse
deb http://mirrors.shlug.org/Ubuntu/ lucid-security universe main multiverse restricted
deb-src http://mirrors.shlug.org/Ubuntu/ lucid-security universe main multiverse restricted
deb http://mirrors.shlug.org/Ubuntu/ lucid-updates universe main multiverse restricted
deb http://mirrors.shlug.org/Ubuntu/ lucid-proposed universe main multiverse restricted
deb-src http://mirrors.shlug.org/Ubuntu/ lucid-proposed universe main multiverse restricted
deb http://mirrors.shlug.org/Ubuntu/ lucid-backports universe main multiverse restricted
deb-src http://mirrors.shlug.org/Ubuntu/ lucid-backports universe main multiverse restricted
deb-src http://mirrors.shlug.org/Ubuntu/ lucid-updates universe main multiverse restricted


搜狐开源镜像站,提供 CPAN,FreeBSD,NetBSD,OpenBSD,apache,archlinux,centos,cygwin,dag,debian,Fedora,gentoo,kernel,lfs,mysql,nginx,openSUSE,php,rpmfusion,slackware,Ubuntu

deb http://mirrors.sohu.com/Ubuntu/ lucid main universe restricted multiverse
deb-src http://mirrors.sohu.com/Ubuntu/ lucid main universe restricted multiverse
deb http://mirrors.sohu.com/Ubuntu/ lucid-security universe main multiverse restricted
deb-src http://mirrors.sohu.com/Ubuntu/ lucid-security universe main multiverse restricted
deb http://mirrors.sohu.com/Ubuntu/ lucid-updates universe main multiverse restricted
deb http://mirrors.sohu.com/Ubuntu/ lucid-proposed universe main multiverse restricted
deb-src http://mirrors.sohu.com/Ubuntu/ lucid-proposed universe main multiverse restricted
deb http://mirrors.sohu.com/Ubuntu/ lucid-backports universe main multiverse restricted
deb-src http://mirrors.sohu.com/Ubuntu/ lucid-backports universe main multiverse restricted
deb-src http://mirrors.sohu.com/Ubuntu/ lucid-updates universe main multiverse restricted


网易开源镜像站, 提供 FreeBSD,OpenBSD,archlinux,centos,cygwin,debian,Fedora,gentoo,kernel,openSUSE,slackware,Ubuntu

deb http://Ubuntu.cn99.com/ubuntu/ lucid main universe restricted multiverse
deb-src http://Ubuntu.cn99.com/ubuntu/ lucid main universe restricted multiverse
deb http://Ubuntu.cn99.com/ubuntu/ lucid-security universe main multiverse restricted
deb-src http://Ubuntu.cn99.com/ubuntu/ lucid-security universe main multiverse restricted
deb http://Ubuntu.cn99.com/ubuntu/ lucid-updates universe main multiverse restricted
deb http://Ubuntu.cn99.com/ubuntu/ lucid-proposed universe main multiverse restricted
deb-src http://Ubuntu.cn99.com/ubuntu/ lucid-proposed universe main multiverse restricted
deb http://Ubuntu.cn99.com/ubuntu/ lucid-backports universe main multiverse restricted
deb-src http://Ubuntu.cn99.com/ubuntu/ lucid-backports universe main multiverse restricted
deb-src http://Ubuntu.cn99.com/ubuntu/ lucid-updates universe main multiverse restricted


骨头源(骨头源是bones7456架设的一个Ubuntu源),提供 Ubuntu,deepin

deb http://Ubuntu.srt.cn/ubuntu/ lucid main universe restricted multiverse
deb-src http://Ubuntu.srt.cn/ubuntu/ lucid main universe restricted multiverse
deb http://Ubuntu.srt.cn/ubuntu/ lucid-security universe main multiverse restricted
deb-src http://Ubuntu.srt.cn/ubuntu/ lucid-security universe main multiverse restricted
deb http://Ubuntu.srt.cn/ubuntu/ lucid-updates universe main multiverse restricted
deb http://Ubuntu.srt.cn/ubuntu/ lucid-proposed universe main multiverse restricted
deb-src http://Ubuntu.srt.cn/ubuntu/ lucid-proposed universe main multiverse restricted
deb http://Ubuntu.srt.cn/ubuntu/ lucid-backports universe main multiverse restricted
deb-src http://Ubuntu.srt.cn/ubuntu/ lucid-backports universe main multiverse restricted
deb-src http://Ubuntu.srt.cn/ubuntu/ lucid-updates universe main multiverse restricted

之前的问题得以解决。


  • 1
    点赞
  • 0
    收藏
    觉得还不错? 一键收藏
  • 0
    评论

“相关推荐”对你有帮助么?

  • 非常没帮助
  • 没帮助
  • 一般
  • 有帮助
  • 非常有帮助
提交
评论
添加红包

请填写红包祝福语或标题

红包个数最小为10个

红包金额最低5元

当前余额3.43前往充值 >
需支付:10.00
成就一亿技术人!
领取后你会自动成为博主和红包主的粉丝 规则
hope_wisdom
发出的红包
实付
使用余额支付
点击重新获取
扫码支付
钱包余额 0

抵扣说明:

1.余额是钱包充值的虚拟货币,按照1:1的比例进行支付金额的抵扣。
2.余额无法直接购买下载,可以购买VIP、付费专栏及课程。

余额充值