Linux18.04换源等等等配置

root用户

  sudo passwd root

安装Tools

  文件→其他位置→Vmware Tools→打开终端。

  管理员权限→copy→tar -zxvf 文件名解压→打开vmware-tools-distrib文件夹→运行vmware-install.pl安装。

  

  后面的东西,有Yes或者No的敲y,其余的敲换行,然后弹出VMware Tools再重启就行了。

换源

备份源列表

  sudo cp /etc/apt/sources.list /etc/apt/sources.list.bak

修改sources.list文件

  sudo gedit /etc/apt/sources.list

编辑 /etc/apt/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
  sudo apt-get upgrade

别的想起来再加....

报错与修改方法

  1、sudo apt-get update出错:N: 无法安全地用该源进行更新,所以默认禁用该源。 N: 参见 apt-secure(8) 手册以了解仓库创建和用户配置方面的细节。

  解决方法:1397BC53640DB551换成报错的NO_PUBKEY 1397BC53640DB551

  sudo apt-key adv --keyserver keyserver.ubuntu.com --recv-keys 1397BC53640DB551

  2、E: 仓库 “http://ppa.launchpad.net/xqms/opencv-nonfree/ubuntu bionic Release” 没有 Release 文件。 N: 无法安全地用该源进行更新,所以默认禁用该源。

  解决方法:

  cd /etc/apt/sources.list.d
  mv xqms-ubuntu-opencv-nonfree-bionic.list xqms-ubuntu-opencv-nonfree-bionic.list.bak

 

  

 

参考链接:

https://www.jianshu.com/p/edd9517a145b

https://blog.csdn.net/M82_A1/article/details/90728974

posted @ 2019-12-04 21:11  cruelty_angel  阅读(931)  评论(0编辑  收藏  举报