I tried to upgrade my system from ubuntu 18.04.6LTS (bionic) to 20.04 LTS (focal).
But I ran some commands related to upgrading to Ubuntu 21.04, which were completely irrelevant to my goal. The commands I ran are as follow:
sudo sed -i 's/bionic/**hirsute**/g' /etc/apt/sources.list
sudo sed -i 's/bionic/**hirsute**/g' /etc/apt/sources.list.d/*.list
sudo apt update
After those, By running sudo apt-get update
I get this:
Get:1 http://security.ubuntu.com/ubuntu hirsute-security InRelease [110 kB]
Hit:2 http://us.archive.ubuntu.com/ubuntu hirsute InRelease
Hit:3 http://dl.google.com/linux/chrome/deb stable InRelease
Get:4 http://us.archive.ubuntu.com/ubuntu hirsute-updates InRelease [115 kB]
Ign:5 https://esm.ubuntu.com/infra/ubuntu hirsute-infra-security InRelease
Ign:6 https://esm.ubuntu.com/infra/ubuntu hirsute-infra-updates InRelease
Err:7 https://esm.ubuntu.com/infra/ubuntu hirsute-infra-security Release
404 Not Found [IP: 91.189.88.182 443]
Err:8 https://esm.ubuntu.com/infra/ubuntu hirsute-infra-updates Release
404 Not Found [IP: 91.189.88.182 443]
Get:9 http://us.archive.ubuntu.com/ubuntu hirsute-backports InRelease [101 kB]
Reading package lists... Done
E: The repository 'https://esm.ubuntu.com/infra/ubuntu hirsute-infra-security Release' does not have a Release file.
N: Updating from such a repository can't be done securely, and is therefore disabled by default.
N: See apt-secure(8) manpage for repository creation and user configuration details.
E: The repository 'https://esm.ubuntu.com/infra/ubuntu hirsute-infra-updates Release' does not have a Release file.
N: Updating from such a repository can't be done securely, and is therefore disabled by default.
N: See apt-secure(8) manpage for repository creation and user configuration details.
Now by running 'lsb_release -a', I get
No LSB modules are available.
Distributor ID: Ubuntu
Description: Ubuntu 18.04.6 LTS
Release: 18.04
Codename: bionic
By running 'apt-cache policy update-manager-core'
, I get
update-manager-core:
Installed: 1:21.04.10
Candidate: 1:21.04.10
Version table:
*** 1:21.04.10 500
500 http://us.archive.ubuntu.com/ubuntu hirsute-updates/main amd64 Packages
500 http://us.archive.ubuntu.com/ubuntu hirsute-updates/main i386 Packages
100 /var/lib/dpkg/status
1:21.04.8 500
500 http://us.archive.ubuntu.com/ubuntu hirsute/main amd64 Packages
500 http://us.archive.ubuntu.com/ubuntu hirsute/main i386 Packages
Seemingly some of the packages are upgraded to '21'. How can I fix this mess? My goal is to have an LTS release.
By running dpkg -l > /tmp/somefile
output of /tmp/somefile
is as follow, I pasted some part of it. It doesn't allow me to paste it all.
Desired=Unknown/Install/Remove/Purge/Hold
| Status=Not/Inst/Conf-files/Unpacked/halF-conf/Half-inst/trig-aWait/Trig-pend
|/ Err?=(none)/Reinst-required (Status,Err: uppercase=bad)
||/ Name Version Architecture Description
+++-===========================================================-===================================================-============-===============================================================================
ii a11y-profile-manager-indicator 0.1.11-0ubuntu4 amd64 Accessibility Profile Manager - Unity desktop indicator
ii account-plugin-facebook 0.12+16.04.20160126-0ubuntu1 all GNOME Control Center account plugin for single signon - facebook
ii account-plugin-flickr 0.12+16.04.20160126-0ubuntu1 all GNOME Control Center account plugin for single signon - flickr
ii account-plugin-google 0.12+16.04.20160126-0ubuntu1 all GNOME Control Center account plugin for single signon
ii accountsservice 0.6.45-1ubuntu1.3 amd64 query and manipulate user account information
ii acl 2.2.52-3build1 amd64 Access control list utilities
ii acpi-support 0.142 amd64 scripts for handling many ACPI events
ii acpid 1:2.0.28-1ubuntu1 amd64 Advanced Configuration and Power Interface event daemon
ii activity-log-manager 0.9.7-0ubuntu26 amd64 blacklist configuration user interface for Zeitgeist
ii adduser 3.118ubuntu5 all add and remove users and groups
ii adium-theme-ubuntu 0.3.4-0ubuntu4 all Adium message style for Ubuntu
ii adwaita-icon-theme 3.28.0-1ubuntu1 all default icon theme of GNOME (small subset)
ii aglfn 1.7-3 all Adobe Glyph List For New Fonts
ii aisleriot 1:3.22.5-1 amd64 GNOME solitaire card game collection
ii alsa-base 1.0.25+dfsg-0ubuntu5 all ALSA driver configuration files
ii alsa-utils 1.1.3-1ubuntu1 amd64 Utilities for configuring and using ALSA
ii amd64-microcode 3.20191021.1+really3.20181128.1~ubuntu0.18.04.1 amd64 Processor microcode firmware for AMD CPUs
ii anacron 2.3-24 amd64 cron-like program that doesn't go by time
ii apache2-bin 2.4.29-1ubuntu4.19 amd64 Apache HTTP Server (modules and other binary files)
ii apg 2.2.3.dfsg.1-5 amd64 Automated Password Generator - Standalone version
ii app-install-data 15.10 all Ubuntu applications (data files)
ii app-install-data-partner 16.04 all Application Installer (data files for partner applications/repositories)
ii apparmor 2.12-4ubuntu5.1 amd64 user-space parser utility for AppArmor
ii appmenu-qt:amd64 0.2.7+14.04.20140305-0ubuntu2 amd64 application menu for Qt
rc appmenu-qt5 0.3.0+16.04.20170216-0ubuntu1 amd64 application menu for Qt5
ii apport 2.20.9-0ubuntu7.27 all automatically generate crash reports for debugging
ii apport-gtk 2.20.9-0ubuntu7.27 all GTK+ frontend for the apport crash report system
ii apport-symptoms 0.20 all symptom scripts for apport
ii appstream 0.12.0-3ubuntu1 amd64 Software component metadata management
ii apt 1.6.14 amd64 commandline package manager
ii apt-config-icons 0.12.0-3ubuntu1 all APT configuration snippet to enable icon downloads
rc apt-show-versions 0.22.7ubuntu1 all lists available package versions with distribution
ii apt-transport-https 1.6.14 all transitional package for https support
ii apt-utils 1.6.14 amd64 package management related utility programs
ii aptdaemon 1.1.1+bzr982-0ubuntu19.5 all transaction based package management service
ii aptdaemon-data 1.1.1+bzr982-0ubuntu19.5 all data files for clients
ii aptitude 0.8.10-6ubuntu1 amd64 terminal-based package manager
ii aptitude-common 0.8.10-6ubuntu1 all architecture independent files for the aptitude package manager
ii apturl 0.5.2ubuntu14.2 amd64 install packages using the apt protocol - GTK+ frontend
ii apturl-common 0.5.2ubuntu14.2 amd64 install packages using the apt protocol - common data
ii aspell 0.60.7~20110707-4ubuntu0.2 amd64 GNU Aspell spell-checker
ii aspell-en 2017.08.24-0-0.1 all English dictionary for GNU Aspell
ii at-spi2-core 2.28.0-1 amd64 Assistive Technology Service Provider Interface (dbus core)
ii atril 1.20.1-2ubuntu2 amd64 MATE document viewer
ii atril-common 1.20.1-2ubuntu2 all MATE document viewer (common files)
ii autoconf 2.69-11 all automatic configure script builder
ii automake 1:1.15.1-3ubuntu2 all Tool for generating GNU Standards-compliant Makefiles
ii autotools-dev 20180224.1 all Update infrastructure for config.{guess,sub} files
ii avahi-autoipd 0.7-3.1ubuntu1.3 amd64 Avahi IPv4LL network address configuration daemon
ii avahi-daemon 0.7-3.1ubuntu1.3 amd64 Avahi mDNS/DNS-SD daemon
ii avahi-utils 0.7-3.1ubuntu1.3 amd64 Avahi browsing, publishing and discovery utilities
ii bamfdaemon 0.5.3+18.04.20180207.2-0ubuntu1 amd64 Window matching library - daemon
ii baobab 3.28.0-1 amd64 GNOME disk usage analyzer
ii base-files 10.1ubuntu2.11 amd64 Debian base system miscellaneous files
ii base-passwd 3.5.44 amd64 Debian base system master password and group files
ii bash 4.4.18-2ubuntu1.2 amd64 GNU Bourne Again SHell
ii bash-completion 1:2.8-1ubuntu1 all programmable completion for the bash shell
ii bc 1.07.1-2 amd64 GNU bc arbitrary precision calculator language
ii bind9-host 1:9.11.3+dfsg-1ubuntu1.16 amd64 DNS lookup utility (deprecated)
ii binutils 2.36.1-6ubuntu1 amd64 GNU assembler, linker and binary utilities
ii binutils-common:amd64 2.36.1-6ubuntu1 amd64 Common files for the GNU assembler, linker and binary utilities
ii binutils-x86-64-linux-gnu 2.36.1-6ubuntu1 amd64 GNU binary utilities, for x86-64-linux-gnu target
ii blt 2.5.3+dfsg-4 amd64 graphics extension library for Tcl/Tk - run-time
ii bluez 5.48-0ubuntu3.6 amd64 Bluetooth tools and daemons
ii bluez-cups 5.48-0ubuntu3.6 amd64 Bluetooth printer driver for CUPS
ii bluez-obexd 5.48-0ubuntu3.6 amd64 bluez obex daemon
ii bolt 0.5-0ubuntu0.18.04.1 amd64 system daemon to manage thunderbolt 3 devices
ii branding-ubuntu 0.10 all Replacement artwork with Ubuntu branding
ii brltty 5.5-4ubuntu2.0.1 amd64 Access software for a blind person using a braille display
ii bsdmainutils 11.1.2ubuntu1 amd64 collection of more utilities from FreeBSD
ii bsdutils 1:2.31.1-0.4ubuntu3.7 amd64 basic utilities from 4.4BSD-Lite
ii bubblewrap 0.2.1-1ubuntu0.1 amd64 setuid wrapper for unprivileged chroot and namespace manipulation
ii build-essential 12.4ubuntu1 amd64 Informational list of build-essential packages
ii busybox-initramfs 1:1.30.1-6ubuntu2 amd64 Standalone shell setup for initramfs
ii busybox-static 1:1.27.2-2ubuntu3.3 amd64 Standalone rescue shell with tons of builtin utilities
ii bzip2 1.0.8-4ubuntu3 amd64 high-quality block-sorting file compressor - utilities
ii bzip2-doc 1.0.6-8.1ubuntu0.2 all high-quality block-sorting file compressor - documentation
ii ca-certificates 20210119ubuntu0.21.04.1 all Common CA certificates
ii ca-certificates-java 20180516ubuntu1~18.04.1 all Common CA certificates (JKS keystore)
ii caja 1.20.2-4ubuntu1 amd64 file manager for the MATE desktop
ii caja-common 1.20.2-4ubuntu1 all file manager for the MATE desktop (common files)
ii checkinstall 1.6.2-4ubuntu2 amd64 installation tracker
ii cheese 3.28.0-1ubuntu1 amd64 tool to take pictures and videos from your webcam
ii cheese-common 3.28.0-1ubuntu1 all Common files for the Cheese tool to take pictures and videos
ii cmake 3.10.2-1ubuntu2.18.04.2 amd64 cross-platform, open-source make system
ii cmake-data 3.10.2-1ubuntu2.18.04.2 all CMake data files (modules, templates and documentation)
ii cockpit 215-1~ubuntu18.04.1 all Web Console for Linux servers
ii cockpit-bridge 215-1~ubuntu18.04.1 amd64 Cockpit bridge server-side component
ii cockpit-dashboard 215-1~ubuntu18.04.1 all Cockpit remote servers and dashboard
ii cockpit-networkmanager 215-1~ubuntu18.04.1 all Cockpit user interface for networking
ii cockpit-packagekit 215-1~ubuntu18.04.1 all Cockpit user interface for packages
ii cockpit-storaged 215-1~ubuntu18.04.1 all Cockpit user interface for storage
ii cockpit-system 215-1~ubuntu18.04.1 all Cockpit admin interface for a system
ii cockpit-ws 215-1~ubuntu18.04.1 amd64 Cockpit Web Service
ii colord 1.3.3-2build1 amd64 system service to manage device colour profiles -- system daemon
ii colord-data 1.3.3-2build1 all system service to manage device colour profiles -- data files
ii command-not-found 18.04.5 all Suggest installation of packages in interactive bash sessions
ii command-not-found-data 18.04.5 amd64 Set of data files for command-not-found.
ii compiz 1:0.9.13.1+18.04.20180302-0ubuntu1 all OpenGL window and compositing manager
ii compiz-core 1:0.9.13.1+18.04.20180302-0ubuntu1 amd64 OpenGL window and compositing manager
ii compiz-gnome 1:0.9.13.1+18.04.20180302-0ubuntu1 amd64 OpenGL window and compositing manager - GNOME window decorator
ii compiz-plugins-default:amd64 1:0.9.13.1+18.04.20180302-0ubuntu1 amd64 OpenGL window and compositing manager - default plugins
ii console-setup 1.201ubuntu2 all console font and keymap setup program
ii console-setup-linux 1.201ubuntu2 all Linux specific part of console-setup
ii coreutils 8.28-1ubuntu1 amd64 GNU core utilities
ii cpio 2.12+dfsg-6ubuntu0.18.04.4 amd64 GNU cpio -- a program to manage archives of files
ii cpp 4:7.4.0-1ubuntu2.3 amd64 GNU C preprocessor (cpp)
ii cpp-4.8 4.8.5-4ubuntu8 amd64 GNU C preprocessor
ii cpp-4.9 4.9.4-2ubuntu1~16.04 amd64 GNU C preprocessor
ii cpp-5 5.5.0-12ubuntu1 amd64 GNU C preprocessor
ii cpp-6 6.5.0-2ubuntu1~18.04 amd64 GNU C preprocessor
ii cpp-7 7.5.0-6ubuntu4 amd64 GNU C preprocessor
ii cpufrequtils 008-1build1 amd64 utilities to deal with the cpufreq Linux kernel feature
ii cracklib-runtime 2.9.2-5build1 amd64 runtime support for password checker library cracklib2
ii crda 3.18-1build1 amd64 wireless Central Regulatory Domain Agent
ii cron 3.0pl1-128.1ubuntu1 amd64 process scheduling daemon
rc cuda-command-line-tools-9-0 9.0.176-1 amd64 CUDA command-line tools
rc cuda-core-9-0 9.0.176-1 amd64 CUDA core tools
I ask my question in another topic. But I couldn't specify my problem clearly there. I create another one for more suggestions.
And If reinstallation is the only solution, could you help me with how to do it while I just can access the system remotely.
Some part of output of apt list --installed | awk '{print $1}' | egrep -v bionic
a11y-profile-manager-indicator/hirsute,now
account-plugin-facebook/now
account-plugin-flickr/now
account-plugin-google/now
accountsservice/now
acl/now
acpi-support/now
acpid/now
activity-log-manager/now
adduser/hirsute,hirsute,now
adium-theme-ubuntu/hirsute,hirsute,now
adwaita-icon-theme/now
aglfn/now
aisleriot/now
alsa-base/now
alsa-utils/now
amd64-microcode/now
anacron/now
apache2-bin/now
apg/hirsute,now
app-install-data/hirsute,hirsute,now
app-install-data-partner/now
apparmor/now
appmenu-qt/now
apport/now
apport-gtk/now
apport-symptoms/now
appstream/now
apt/now
apt-config-icons/now
apt-transport-https/now
apt-utils/now
aptdaemon/now
aptdaemon-data/now
aptitude/now
aptitude-common/now
apturl/now
apturl-common/now
aspell/now
aspell-en/now
at-spi2-core/now
atril/now
atril-common/now
autoconf/now
automake/now
autotools-dev/now
avahi-autoipd/now
avahi-daemon/now
avahi-utils/now
bamfdaemon/now
baobab/now
base-files/now
base-passwd/now
bash/now
bash-completion/now
bc/now
bind9-host/now
binutils/hirsute,now
binutils-common/hirsute,now
binutils-x86-64-linux-gnu/hirsute,now
blt/now
bluez/now
bluez-cups/now
bluez-obexd/now
bolt/now
branding-ubuntu/hirsute,hirsute,now
brltty/now
bsdmainutils/now
bsdutils/now
bubblewrap/now
build-essential/now
busybox-initramfs/hirsute,now
busybox-static/now
bzip2/hirsute,now
bzip2-doc/now
ca-certificates/hirsute-updates,hirsute-updates,hirsute-security,hirsute-security,now
ca-certificates-java/now
caja/now
caja-common/now
checkinstall/now
cheese/now
cheese-common/now
cmake/now
cmake-data/now
cockpit/now
cockpit-bridge/now
cockpit-dashboard/now
.
.
.
.
xserver-xorg-video-qxl/now
xserver-xorg-video-radeon/now
xserver-xorg-video-radeon-hwe-16.04/now
xserver-xorg-video-vesa/now
xserver-xorg-video-vmware/now
xserver-xorg-video-vmware-hwe-16.04/now
xterm/now
xtrans-dev/now
xubuntu-icon-theme/now
xul-ext-ubufox/hirsute,hirsute,now
xwayland/now
xxd/now
xz-utils/now
yelp/now
yelp-xsl/now
zeitgeist-core/now
zeitgeist-datahub/now
zenity/now
zenity-common/now
zip/now
zlib1g/hirsute,now
zlib1g-dev/hirsute,now
I would be very thankful for any help.