# LinuxMint20.x系统升级源自动变更问题解决 **Repository Path**: javychen-cn/Source-Change ## Basic Information - **Project Name**: LinuxMint20.x系统升级源自动变更问题解决 - **Description**: 主要解决mint20.x 系统升级失败问题 - **Primary Language**: Unknown - **License**: Not specified - **Default Branch**: master - **Homepage**: None - **GVP Project**: No ## Statistics - **Stars**: 0 - **Forks**: 0 - **Created**: 2022-08-21 - **Last Updated**: 2022-08-22 ## Categories & Tags **Categories**: Uncategorized **Tags**: None ## README # LinuxMint20.x系统升级源自动变更问题解决 ## 以下以linuxmint20.2至升级20.3una为例子(其它linuxmint20.x系统也以此方式升级) ### linuxmint在新版本系统发布后,系统会提示升级,但是使用系统自带的软件GUI工具升级经常失败,所以我们需要掌握手动升级的办法。 ### 自带的GUI工具升级时,系统软件源会自动切换到默认的国外源(美国)上,众所周知,默认的美国源基本没流量,连不上是常态, ### 所以我们需要手动将其切换至国内源,以便升级使用。 # Mint20.x手动升级教程 ## 1.手动更改源(不要用系统自带的“软件源”工具) ## $ sudo vim /etc/apt/sources.list.d/official-package-repositories.list ## 2.将打开的文件的内容全部删除,将以下内容粘帖进去,然后保存退出(先按Esc,再:wq!) ## deb http://mirrors.tuna.tsinghua.edu.cn/linuxmint/ una main upstream import backport ## deb https://mirrors.tuna.tsinghua.edu.cn/ubuntu/ focal main restricted universe multiverse ## deb https://mirrors.tuna.tsinghua.edu.cn/ubuntu/ focal-updates main restricted universe multiverse ## deb https://mirrors.tuna.tsinghua.edu.cn/ubuntu/ focal-backports main restricted universe multiverse ## deb https://mirrors.tuna.tsinghua.edu.cn/ubuntu/ focal-security main restricted universe multiverse ## 3.更新系统 ## $ sudo apt update ## $ sudo apt upgrade ## 4.装载更新 ## $ sudo apt-get update ## $ sudo apt-get dist-upgrade ## 5.重启系统 ## $ sudo reboot ## 6.检查升级情况 ## $ lsb_release -a ### Distributor ID: Linuxmint ### Description: Linux Mint 20.3 ### Release: 20.3 ### Codename: una ## 升级成功!