欢迎您访问程序员文章站本站旨在为大家提供分享程序员计算机编程知识!
您现在的位置是: 首页

ubuntu安装vsftpd报错Unable to locate package vsftpd

程序员文章站 2022-07-14 15:34:21
...

ubuntu安装vsftpd报错

第一次安装ftp服务,总是显示Unable to locate package vsftpd,在网上找到方法:
1.更新sources.list源

vi /etc/apt/sources.list 打开sources.list

把下面这段话复制,加在该文件最下面,保存

deb http://mirrors.163.com/debian lenny main non-free contrib
deb http://mirrors.163.com/debian lenny-proposed-updates main contrib non-free
deb http://mirrors.163.com/debian-security lenny/updates main contrib non-free
deb-src http://mirrors.163.com/debian lenny main non-free contrib
deb-src http://mirrors.163.com/debian lenny-proposed-updates main contrib non-free
deb-src http://mirrors.163.com/debian-security lenny/updates main contrib non-free

之后再输入

apt-get install vsftpd

若还不行,更新一下apt,

apt-get update