Unable to locate package
在进行ftp和web服务器安装时采用apt-get方式安装一些软件,却总是报出这个错误:Unable to locate package,试了许多办法,改了许多配置文件就是没用,最后才知道是要更新update和upgrade。
1.sudo apt-get install update
sudo apt-get install upgrade
2.但是upgrade时又报错了,就是现实不能安装。
3.上网查了,是要换成阿里云镜像。
4.阿里云镜像如下:
# deb cdrom:[Ubuntu 16.04 LTS _Xenial Xerus_ - Release amd64 (20160420.1)]/ xenial main restricted deb-src http://archive.ubuntu.com/ubuntu xenial main restricted #Added by software-properties deb http://mirrors.aliyun.com/ubuntu/ xenial main restricted deb-src http://mirrors.aliyun.com/ubuntu/ xenial main restricted multiverse universe #Added by software-properties deb http://mirrors.aliyun.com/ubuntu/ xenial-updates main restricted deb-src http://mirrors.aliyun.com/ubuntu/ xenial-updates main restricted multiverse universe #Added by software-properties deb http://mirrors.aliyun.com/ubuntu/ xenial universe deb
Unable to locate package
最新推荐文章于 2025-04-21 15:44:47 发布