修改源
sudo vi /etc/apt/sources.list
将文件内容替换成想要的源,
常见的源
中科大源
deb http://mirrors.ustc.edu.cn/ubuntu/ xenial main restricted universe multiverse
deb http://mirrors.ustc.edu.cn/ubuntu/ xenial-security main restricted universe multiverse
deb http://mirrors.ustc.edu.cn/ubuntu/ xenial-updates main restricted universe multiverse
deb http://mirrors.ustc.edu.cn/ubuntu/ xenial-proposed main restricted universe multiverse
deb http://mirrors.ustc.edu.cn/ubuntu/ xenial-backports main restricted universe multiverse
deb-src http://mirrors.ustc.edu.cn/ubuntu/ xenial main restricted universe multiverse
deb-src http://mirrors.ustc.edu.cn/ubuntu/ xenial-security main restricted universe multiverse
deb-src http://mirrors.ustc.edu.cn/ubuntu/ xenial-updates main restricted universe multiverse
deb-src http://mirrors.ustc.edu.cn/ubuntu/ xenial-proposed main restricted universe multiverse
deb-src http://mirrors.ustc.edu.cn/ubuntu/ xenial-backports main restricted universe multiverse
清华源
deb http://mirrors.tuna.tsinghua.edu.cn/ubuntu/ xenial main multiverse restricted universe
deb http://mirrors.tuna.tsinghua.edu.cn/ubuntu/ xenial-backports main multiverse restricted universe
deb http://mirrors.tuna.tsinghua.edu.cn/ubuntu/ xenial-proposed main multiverse restricted universe
deb http://mirrors.tuna.tsinghua.edu.cn/ubuntu/ xenial-security main multiverse restricted universe
deb http://mirrors.tuna.tsinghua.edu.cn/ubuntu/ xenial-updates main multiverse restricted universe
deb-src http://mirrors.tuna.tsinghua.edu.cn/ubuntu/ xenial main multiverse restricted universe
deb-src http://mirrors.tuna.tsinghua.edu.cn/ubuntu/ xenial-backports main multiverse restricted universe
deb-src http://mirrors.tuna.tsinghua.edu.cn/ubuntu/ xenial-proposed main multiverse restricted universe
deb-src http://mirrors.tuna.tsinghua.edu.cn/ubuntu/ xenial-security main multiverse restricted universe
deb-src http://mirrors.tuna.tsinghua.edu.cn/ubuntu/ xenial-updates main multiverse restricted universe
阿里源
deb http://mirrors.aliyun.com/ubuntu/ xenial main restricted universe multiverse
deb http://mirrors.aliyun.com/ubuntu/ xenial-security main restricted universe multiverse
deb http://mirrors.aliyun.com/ubuntu/ xenial-updates main restricted universe multiverse
deb http://mirrors.aliyun.com/ubuntu/ xenial-proposed main restricted universe multiverse
deb http://mirrors.aliyun.com/ubuntu/ xenial-backports main restricted universe multiverse
deb-src http://mirrors.aliyun.com/ubuntu/ xenial main restricted universe multiverse
deb-src http://mirrors.aliyun.com/ubuntu/ xenial-security main restricted universe multiverse
deb-src http://mirrors.aliyun.com/ubuntu/ xenial-updates main restricted universe multiverse
deb-src http://mirrors.aliyun.com/ubuntu/ xenial-proposed main restricted universe multiverse
deb-src http://mirrors.aliyun.com/ubuntu/ xenial-backports main restricted universe multiverse
腾讯源
deb http://mirrors.tencentyun.com/ubuntu/ bionic main restricted universe multiverse
deb http://mirrors.tencentyun.com/ubuntu/ bionic-security main restricted universe multiverse
deb http://mirrors.tencentyun.com/ubuntu/ bionic-updates main restricted universe multiverse
#deb http://mirrors.tencentyun.com/ubuntu/ bionic-proposed main restricted universe multiverse
#deb http://mirrors.tencentyun.com/ubuntu/ bionic-backports main restricted universe multiverse
deb-src http://mirrors.tencentyun.com/ubuntu/ bionic main restricted universe multiverse
deb-src http://mirrors.tencentyun.com/ubuntu/ bionic-security main restricted universe multiverse
deb-src http://mirrors.tencentyun.com/ubuntu/ bionic-updates main restricted universe multiverse
#deb-src http://mirrors.tencentyun.com/ubuntu/ bionic-proposed main restricted universe multiverse
#deb-src http://mirrors.tencentyun.com/ubuntu/ bionic-backports main restricted universe multiverse
改完后
sudo apt-get update
然后出现了以下错误
参考网上的解决方法,依次添加缺少的公钥
sudo apt-key adv --keyserver hkp://keyserver.ubuntu.com:80 --recv 缺少的公钥
修改pip源头
https://blog.csdn.net/chenghuikai/article/details/55258957
彻底卸载某个软件
- 删除软件及其配置文件
sudo apt-get purge 软件名称
- 删除没用的依赖包
apt-get autoremove
- 此时dpkg的列表中有“rc”状态的软件包,可以执行如下命令做最后清理
软件名
- 更新本地缓存
sudo apt-get update
sudo apt命令安装软件的默认位置
下载的软件的存放位置:/var/cache/apt/archives
安装后软件的默认位置:/usr/share
可执行文件位置:/usr/bin
配置文件位置:/etc
lib文件位置:/usr/lib
error
libpng12-0 error
https://zh.codepre.com/how-to-8413.html
software database is broken解决办法
sudo apt-get install language-pack-zh-han*
安装Vscode
https://developer.aliyun.com/article/759454
安装Webstorm
https://blog.csdn.net/zhang___gang/article/details/81489740
安装谷歌浏览器
wget https://dl.google.com/linux/direct/google-chrome-stable_current_amd64.deb
sudo apt install ./google-chrome-stable_current_amd64.deb
https://wswhr.blog.csdn.net/article/details/51307988
https://www.cnblogs.com/livelab/p/12801344.html
安装IDEA
https://blog.csdn.net/YF_Li123/article/details/79951048
https://www.cnblogs.com/kendoziyu/p/11141348.html
安装Java
https://www.cnblogs.com/zzy1024/p/11406269.html
安装golang
https://www.jianshu.com/p/6c4073033b25
配置
https://developer.aliyun.com/article/40410
安装Docker
https://www.runoob.com/docker/ubuntu-docker-install.html
修改镜像源
https://www.jianshu.com/p/3b062c177508
安装npm
npm
sudo apt install npm
cnpm
sudo npm install -g cnpm --registry=https://registry.npm.taobao.org
vue
sudo cnpm install -g vue
vue-cli
sudo cnpm install -g @vue/cli
参考:
1.https://blog.csdn.net/wssywh/article/details/79216437
2.https://blog.csdn.net/X_SANSHAO/article/details/89042144
安装qq
https://im.qq.com/linuxqq/download.html
安装wine
https://github.com/wszqkzqk/deepin-wine-ubuntu
https://blog.csdn.net/buildcourage/article/details/80871141
网络
查看所有网络信息
ifconfig
停止某个网络
ifconfig 网络名称 down
OpenSSL
生成ssl证书
https://www.cnblogs.com/fangpengchengbupter/p/7999704.html
安装tomcat
https://www.jianshu.com/p/dfddbd8da05d
安装maven
https://cloud.tencent.com/developer/article/1649751
安装MySQL
https://yq.aliyun.com/articles/758177
https://blog.csdn.net/skh2015java/article/details/80156278
安装nginx
https://blog.csdn.net/qq_23832313/article/details/83578836
安装neo4j
https://blog.csdn.net/u013946356/article/details/81736232
安装pm2
https://www.cnblogs.com/bjgua/p/7656833.html
安装DDE
https://www.sysgeek.cn/ubuntu-use-deepin-desktop/
安装KDE
sudo apt install kde-plasma-desktop
修改权限
https://blog.csdn.net/hudashi/article/details/7797393
安装eclipse
连接wifi
查看网络设备列表
sudo nmcli dev
开启WiFi
sudo nmcli r wifi on
扫描附近的 WiFi 热点
sudo nmcli dev wifi
连接到指定的 WiFi 热点
sudo nmcli dev wifi connect "SSID" password "PASSWORD" ifname wlan0
安装企业微信
https://segmentfault.com/a/1190000039269586
KDE桌面没有wifi图标
sudo apt-get install plasma-nm
reboot