ubuntu使用apt-get问题

Posted

tags:

篇首语:本文由小常识网(cha138.com)小编为大家整理,主要介绍了ubuntu使用apt-get问题相关的知识,希望对你有一定的参考价值。

经常出现这样的情况:
会反复下载同一个包几十次甚至上百次
从1%到100%不停反复,怎么回事?

源列表可能出现错误,或下载的文件出现错误。

建议你使用CN99的源,默认源非常慢。
用gedit打开/etc/apt/sources.list
在此文件的最上方添加以下内容:
deb http://ubuntu.cn99.com/ubuntu/ hardy main restricted universe multiverse
deb http://ubuntu.cn99.com/ubuntu/ hardy-security main restricted universe multiverse
deb http://ubuntu.cn99.com/ubuntu/ hardy-updates main restricted universe multiverse
deb http://ubuntu.cn99.com/ubuntu/ hardy-proposed main restricted universe multiverse
deb http://ubuntu.cn99.com/ubuntu/ hardy-backports main restricted universe multiverse
deb-src http://ubuntu.cn99.com/ubuntu/ hardy main restricted universe multiverse
deb-src http://ubuntu.cn99.com/ubuntu/ hardy-security main restricted universe multiverse
deb-src http://ubuntu.cn99.com/ubuntu/ hardy-updates main restricted universe multiverse
deb-src http://ubuntu.cn99.com/ubuntu/ hardy-proposed main restricted universe multiverse
deb-src http://ubuntu.cn99.com/ubuntu/ hardy-backports main restricted universe multiverse

然后启动终端,输入 sudo apt-get update && sudo apt-get install 软件包名
参考技术A 源的digest有错误 换个源 重新 apt-get update 后再 apt-get install本回答被提问者采纳

以上是关于ubuntu使用apt-get问题的主要内容,如果未能解决你的问题,请参考以下文章

ubuntu 使用apt/apt-get安装deb包

azure上ubuntu使用apt-get

azure上ubuntu 使用apt-get

在Ubuntu上使用apt-get安装MySQL+安全优化

一般都是源的问题ubuntu使用apt-get update更新失败

ubuntu使用命令apt-get install出现的问题