apt-get install Unable to locate package
Posted 软件工程小施同学
tags:
篇首语:本文由小常识网(cha138.com)小编为大家整理,主要介绍了apt-get install Unable to locate package相关的知识,希望对你有一定的参考价值。
Unable to locate package ***
遇到这个问题直接尝试sudo apt-get update 和 sudo apt-get upgrade 一般可以解决,
但是执行之后出现源的问题,访问ubuntu 官方源link time out.
Cannot initiate the connection to cn.archive.ubuntu.com:80 (2001:67c:1562::18)
1、划重点: 直接换源
注释掉Ubuntu 官方deb 链接,添加国内源链接
sudo vim /etc/apt/source.list
添加国内原链接:阿里源或者其他国内源
阿里源:
deb http://mirrors.aliyun.com/ubuntu/ bionic main restricted universe multiverse
deb http://mirrors.aliyun.com/ubuntu/ bionic-security main restricted universe multiverse
deb http://mirrors.aliyun.com/ubuntu/ bionic-updates main restricted universe multiverse
deb http://mirrors.aliyun.com/ubuntu/ bionic-proposed main restricted universe multiverse
deb http://mirrors.aliyun.com/ubuntu/ bionic-backports main restricted universe multiverse
deb-src http://mirrors.aliyun.com/ubuntu/ bionic main restricted universe multiverse
deb-src http://mirrors.aliyun.com/ubuntu/ bionic-security main restricted universe multiverse
deb-src http://mirrors.aliyun.com/ubuntu/ bionic-updates main restricted universe multiverse
deb-src http://mirrors.aliyun.com/ubuntu/ bionic-proposed main restricted universe multiverse
deb-src http://mirrors.aliyun.com/ubuntu/ bionic-backports main restricted universe multiverse
2、重新update 和 upgrade,且重新安装
sudo apt-get update
sudo apt-get upgrade
https://blog.csdn.net/xue1065540183/article/details/108312293
以上是关于apt-get install Unable to locate package的主要内容,如果未能解决你的问题,请参考以下文章
sudo apt-get install,出现了下面的Unable to locate package错误:
ubuntu使用命令apt-get install出现的问题
ubuntu apt-get出现unable to locate package解决方案
ubuntu16.04 apt-get 报错:E: Unable to locate package update(E: Unable to locate package upgrade)(没解决)(
Unable to fetch some archives ,maybe run apt-get update or try with --fix-missing?
“Unable to locate package” while trying to install packages with APT