Problems that may occur when upgrading ubuntu 16.04 to ubuntu 18.04!

888u

Last update at :2024-06-02,Edit by888u

When I upgraded the independent server system ubuntu16.04 to 18.04, I found that the operation was invalid and the upgrade did not work. Later, when I used pacificrack's VPS, I found that there was no new version. I tried it and found such a problem. Now I roughly record it. Let’s talk about how to upgrade ubuntu 16.04 to 18.04.

(1) Updates, major version upgrades, and automatic removal of useless ones:

apt update && apt dist-upgrade && apt autoremove

(2) Install update-manager-core

apt-get install update-manager-core

(3) Open the update-manager configuration file and ensure that the prompt line is set to lts

nano /etc/update-manager/release-upgrades

Prompt=lts

(4) Upgrade

do-release-upgrade -d

Explanation: There will generally be no problems with the first two steps. Step 3 can be omitted in most cases (if your system itself is LTS). If no upgrade is performed after entering step 4, please Change the command to do-release-upgrade.

There may be apt problems when Ubuntu is updated. Generally, you can delete these lock files and then reconfigure them. rm /var/lib/dpkg/lock rm /var/lib/dpkg/lock-frontend rm /var/lib/apt/lists/lock rm /var/cache/apt/archives/lock Then reconfigure:

dpkg –configure -a

Recommended site search: IP proxy server, free virtual space, cloud server rental, website server rental, server hosting price, space service provider, cloud server rental, anti-complaint vps host, how to register company domain name, foreign host,

p>

Problems that may occur when upgrading ubuntu 16.04 to ubuntu 18.04!

All copyrights belong to 888u unless special state
取消
微信二维码
微信二维码
支付宝二维码