博客
关于我
强烈建议你试试无所不能的chatGPT,快点击我
ubuntu 8.04 无法使用apt-get 安装常用软件的解决办法
阅读量:4620 次
发布时间:2019-06-09

本文共 3123 字,大约阅读时间需要 10 分钟。

依然是8.04,今天安装后突然发现一起常用的apt-get install g++都无法安装了。。。

 

以为是ubuntu服务器的问题,在10.04下一起正常,于是把10.4下的/etc/apt/sources.list,拷贝出来:

#deb cdrom:[Ubuntu 10.04 LTS _Lucid Lynx_ - Release i386 (20100429)]/ lucid main restricted# See http://help.ubuntu.com/community/UpgradeNotes for how to upgrade to# newer versions of the distribution.deb http://cn.archive.ubuntu.com/ubuntu/ lucid main restricteddeb-src http://cn.archive.ubuntu.com/ubuntu/ lucid main restricted## Major bug fix updates produced after the final release of the## distribution.deb http://cn.archive.ubuntu.com/ubuntu/ lucid-updates main restricteddeb-src http://cn.archive.ubuntu.com/ubuntu/ lucid-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://cn.archive.ubuntu.com/ubuntu/ lucid universedeb-src http://cn.archive.ubuntu.com/ubuntu/ lucid universedeb http://cn.archive.ubuntu.com/ubuntu/ lucid-updates universedeb-src http://cn.archive.ubuntu.com/ubuntu/ lucid-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://cn.archive.ubuntu.com/ubuntu/ lucid multiversedeb-src http://cn.archive.ubuntu.com/ubuntu/ lucid multiversedeb http://cn.archive.ubuntu.com/ubuntu/ lucid-updates multiversedeb-src http://cn.archive.ubuntu.com/ubuntu/ lucid-updates multiverse## Uncomment the following two lines to add software from the 'backports'## repository.## 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://cn.archive.ubuntu.com/ubuntu/ lucid-backports main restricted universe multiverse# deb-src http://cn.archive.ubuntu.com/ubuntu/ lucid-backports main restricted universe 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 lucid partner# deb-src http://archive.canonical.com/ubuntu lucid partnerdeb http://security.ubuntu.com/ubuntu lucid-security main restricteddeb-src http://security.ubuntu.com/ubuntu lucid-security main restricteddeb http://security.ubuntu.com/ubuntu lucid-security universedeb-src http://security.ubuntu.com/ubuntu lucid-security universedeb http://security.ubuntu.com/ubuntu lucid-security multiversedeb-src http://security.ubuntu.com/ubuntu lucid-security multiverse

  覆盖8.04里面的/etc/apt/sources.list

然后:apt-get update

搞定!

转载于:https://www.cnblogs.com/sankye/articles/3393628.html

你可能感兴趣的文章
生产环境下正则的应用实例(一)
查看>>
在CentOS7命令行模式下安装虚拟机
查看>>
Arduino可穿戴开发入门教程Arduino开发环境介绍
查看>>
Windows平台flex+gcc词法分析实验工具包
查看>>
3.Python基础 序列sequence
查看>>
Chapter 4 Syntax Analysis
查看>>
vi/vim使用
查看>>
讨论Spring整合Mybatis时一级缓存失效得问题
查看>>
Maven私服配置Setting和Pom文件
查看>>
Linux搭建Nexus3.X构建maven私服
查看>>
NPOI 操作Excel
查看>>
MySql【Error笔记】
查看>>
vue入门
查看>>
JS线程Web worker
查看>>
Flex的动画效果与变换!(三)(完)
查看>>
mysql常见错误码
查看>>
Openresty 与 Tengine
查看>>
使用XV-11激光雷达做hector_slam
查看>>
布局技巧4:使用ViewStub
查看>>
ddt Ui 案例2
查看>>