ubuntu20重装系统命令

张开发
2026/4/10 20:07:22 15 分钟阅读

分享文章

ubuntu20重装系统命令
lsb_release -asudo gedit /etc/apt/sources.list# 清华大学源deb http://mirrors.tuna.tsinghua.edu.cn/ubuntu/ focal main restricted universe multiversedeb http://mirrors.tuna.tsinghua.edu.cn/ubuntu/ focal-security main restricted universe multiversedeb http://mirrors.tuna.tsinghua.edu.cn/ubuntu/ focal-updates main restricted universe multiversedeb http://mirrors.tuna.tsinghua.edu.cn/ubuntu/ focal-backports main restricted universe multiverse##測試版源deb http://mirrors.tuna.tsinghua.edu.cn/ubuntu/ focal-proposed main restricted universe multiverse# 源碼deb-src http://mirrors.tuna.tsinghua.edu.cn/ubuntu/ focal main restricted universe multiversedeb-src http://mirrors.tuna.tsinghua.edu.cn/ubuntu/ focal-security main restricted universe multiversedeb-src http://mirrors.tuna.tsinghua.edu.cn/ubuntu/ focal-updates main restricted universe multiversedeb-src http://mirrors.tuna.tsinghua.edu.cn/ubuntu/ focal-backports main restricted universe multiverse##測試版源deb-src http://mirrors.tuna.tsinghua.edu.cn/ubuntu/ focal-proposed main restricted universe multiverseAMD driver:Install Radeon software for Linux with ROCm — Use ROCm on Radeon GPUssudo apt-get updatesoftware update软件更新 更新完成后重启sudo apt install build-essential安装显卡驱动安装google浏览器 登录谷歌账号安装搜狗输入法输入如下cmake、eigen、ceres所需要的环境指令sudo apt-get install libssl-dev libopenblas-dev libboost-all-dev libx11-dev libgl1-mesa-dev libglu1-mesa-dev freeglut3-dev doxygen libglew-dev libcxsparse3 liblapack-dev libsuitesparse-dev libgflags-dev libgoogle-glog-dev libgtest-devpip install torch torchvision -i https://mirrors.aliyun.com/pypi/simplepip install -i https://pypi.tuna.tsinghua.edu.cn/simple scipy后续按照常规流程来pip install -i https://mirrors.aliyun.com/pypi/simple torch torchvisionpip install -i https://pypi.tuna.tsinghua.edu.cn/simple scipypip config set global.index-url https://pypi.tuna.tsinghua.edu.cn/simple-------------------------------------sudo chattr i ~/.config/user-dirs.dirs

更多文章