更换源
cd /etc/apt/
sudo cp -v ./sources.list ./sources.list.bak
vi sources.list
deb https://mirrors.ustc.edu.cn/ubuntu/ bionic main restricted universe multiverse
deb-src https://mirrors.ustc.edu.cn/ubuntu/ bionic main restricted universe multiverse
deb https://mirrors.ustc.edu.cn/ubuntu/ bionic-updates main restricted universe multiverse
deb-src https://mirrors.ustc.edu.cn/ubuntu/ bionic-updates main restricted universe multiverse
deb https://mirrors.ustc.edu.cn/ubuntu/ bionic-backports main restricted universe multiverse
deb-src https://mirrors.ustc.edu.cn/ubuntu/ bionic-backports main restricted universe multiverse
deb https://mirrors.ustc.edu.cn/ubuntu/ bionic-security main restricted universe multiverse
deb-src https://mirrors.ustc.edu.cn/ubuntu/ bionic-security main restricted universe multiverse
deb https://mirrors.ustc.edu.cn/ubuntu/ bionic-proposed main restricted universe multiverse
deb-src https://mirrors.ustc.edu.cn/ubuntu/ bionic-proposed main restricted universe multiverse
sudo apt-get update
报错
W: GPG 错误:https://mirrors.ustc.edu.cn/ros/ubuntu xenial InRelease: 由于没有公钥,无法验证下列签名: NO_PUBKEY F42ED6FBAB17C654
W: 仓库 “https://mirrors.ustc.edu.cn/ros/ubuntu xenial InRelease” 没有数字签名。
N: 无法认证来自该源的数据,所以使用它会带来潜在风险。
N: 参见 apt-secure(8) 手册以了解仓库创建和用户配置方面的细节。
s@s:~$ sudo apt-key adv --keyserver keyserver.ubuntu.com --recv-keys F42ED6FBAB17C654 ##(此处换成错误的签名)
sudo apt-get upgrade
安装vim
apt-get install vim -y
安装谷歌浏览器
下载
https://www.google.cn/chrome/thank-you.html?statcb=0&installdataindex=empty&defaultbrowser=0
ctrl + alt + t
cd ~/下载
sudo dpkg -i <下载的文件>
右键添加到收藏夹
安装docker
sudo apt update
sudo apt-get install ca-certificates curl gnupg lsb-release -y
sudo curl -fsSL http://mirrors.aliyun.com/docker-ce/linux/ubuntu/gpg | sudo apt-key add -
sudo add-apt-repository "deb [arch=amd64] http://mirrors.aliyun.com/docker-ce/linux/ubuntu $(lsb_release -cs) stable"
sudo apt-get install docker-ce docker-ce-cli containerd.io -y
sudo gpasswd -a $USER docker
systemctl start docker
apt-get -y install apt-transport-https ca-certificates curl software-properties-common -y
service docker restart
systemctl disable docker.service
安装docker-compose
sudo curl -L "https://github.com/docker/compose/releases/download/1.26.0/docker-compose-$(uname -s)-$(uname -m)" -o /usr/local/bin/docker-compose
sudo chmod +x /usr/local/bin/docker-compose
docker-compose version
PIP安装
sudo apt install python3-pip -y
pip -V
换源
sudo mkdir ~/.pip
cd ~/.pip
vim pip.conf
下面内容粘贴
[global]
index-url = https://pypi.tuna.tsinghua.edu.cn/simple
[install]
trusted-host=pypi.tuna.tsinghua.edu.cn
命令
pip3 install --upgrade pip
安装PYTHON虚拟环境
pip3 install virtualenv
pip3 install virtualenvwrapper
vim ~/.bashrc
export WORKON_HOME=~/.virtualenv
export VIRTUALENVWRAPPER_PYTHON=/usr/bin/python3
source ~/.local/bin/virtualenvwrapper.sh
sudo cp ~/.local/bin/virtualenv /usr/local/bin/
安装Pycharm
用刚才的谷歌浏览器搜索 官网即可
cd ~/下载
tar -zxvf <刚才下载的文件>
mv <解压出来的文件> ~/ && cd ~
cd <解压出来的文件> /bin
./pycharm.sh
安装goland
去官网搜索 注意下载这几个参数 如果你是 x86架构的话
下载完成之后的命令![在这里插入图片描述](https://img-blog.csdnimg.cn/e399f32970fc49dc9439be2080a7aa5f.png)
cd ~/下载
sudo mv go1.20.2.linux-amd64.tar.gz /usr/local/
cd /user/local && sudo tar -zxvf go1.20.2.linux-amd64.tar.gz