ubuntu17.4更新软件源下载软件仓库信息失败检查您的网络连接

一、修改/etc/apt/sources.list

终端输入sudo gedit /etc/apt/sources.list

打开sources.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

二、更新:sudo apt-get update 即可成功

 

 

linux下的gedit

这是 Linux 下的一个纯文本编辑器

启动方式:

1、从菜单启动:应用程序——>附件——>文本编辑器

2、从命令行执行以下命令: gedit

一些linux没有开放root账户,可以在终端下操作使它打开和修改需要取得root权限的文件

输入 sudo gedit (想要打开的文件的位置和文件名)在回车就可以打开并修改它了

例如:sudo gedit /etc/apt/sources.list

你可能感兴趣的:(linux)