Ubuntu 20.04 LTS just got a new point release with hardware enablement stacks for use on newer hardware.
The new Ubuntu 20.04.5 features Kernel 5.15 backported from Ubuntu 22.04 LTS, which enables newer hardware support.
It also updates the NVIDIA 390, 470, 510 driver series, as well adds initial support of NVIDIA 515 driver. For HP machines, it adds mic mute key support for HP Elite x360 series, and adds more hp dmi to unblock intel-hid event. Also, add HP EliteBook 630/830 13 inch dmi string to intel-hid allowlist.
The system hangs and display mode switching issues when external HDMI is plugged have been fixed. Firefox should be possible to open downloads folder when AppArmor enabled. And, many OEM meta packages have been added for Lenovo Thinkpad laptops.
For more changes about Ubuntu 20.04.5, see the change summary in this page.
How to Get Ubuntu 20.04.5:
If you’re already running Ubuntu 20.04 in your machine, just check out the “About” page in System Settings, as you should have the new point release.
Or, run the single command in terminal to verify:
To download Ubuntu 20.04.5 (though 22.04.1 is recommended now), go to:
Ubuntu is always not ready for use out-of-the-box, because every user has his/her own preferences. And, here’s a list of things I did after installing Ubuntu 22.04 LTS.
1. Install Media Codec:
To speed up the installing process, I never enable the network connection in Ubuntu’s installer wizard. So, the media codecs is not installed and audio/video player does not work out-of-the-box.
Press Ctrl+Alt+T on keyboard to open terminal. And, refresh the package cache if you’ve not done that.
sudo apt update
Then, install the codecs for audio, video playback, Microsoft fonts, rar support, and so forth via this command:
sudo apt install ubuntu-restricted-extras
Thanks to @Stephen, the command will output a TTF EULA message asks you to click ‘OK’ to confirm. In case you don’t know how to continue, press Tab to highlight the button and hit Enter.
2. Remove Firefox and install the Deb version:
I use Firefox to install Gnome Extensions regularly. But the pre-installed Firefox is a Snap package that does not support the feature.
It’s easy to remove the Firefox Snap by running command (back your data first!) in terminal:
sudo snap remove --purge firefox
However, Firefox Deb package in 22.04 repository is just a wrapper that links to Snap. Except the official Linux Tarball, there are only third-party repositories (though really trustworthy): Ubuntuzilla and “Mozilla Team” team PPA.
I personally prefer the “Mozilla Team” team PPA. And, simply run the commands below one by one will install Firefox Deb package from that repository:
After installation, you need to set higher PPA priority to prevent Ubuntu from installing the Snap back. See here for details.
3. Select your favorite accent color
Ubuntu 22.04 introduced 10 accent colors in “Appearance” settings page. It allows you change the color of slider bar, on/off switch, check-box, highlight text background, input box border, and even folder icon.
Choose favorite accent color
4. Tweak Ubuntu Dock (the left panel)
Click to minimize, minimize the app window when click on its icon on the dock by running command:
gsettings set org.gnome.shell.extensions.dash-to-dock click-action minimize
Shorten the left panel and move it to the bottom using system settings under “Appearance” page:
And, remove mounted and network volumes from the dock via “Configure dock behavior” setting options.
Before getting started, there are some things need to do first! They are important to prevent upgrade failure.
1.) Backup! Backup! Backup! The upgrade process may fail due to different reasons. So, it’s important to back your data, bookmarks, etc.
2.) Disable third-party PPAs. This can be done by launching ‘Software & Updates’ utility and navigate to ‘Other Software’ tab.
If possible, I’d recommend to purge PPAs which also downgrade these third-party software packages. Especially for ffmpeg, mesa, etc.
Disable or remove 3 party PPAs
3.) Also in ‘Software & Updates’ tool, navigate to ‘Updates’ tab. There choose ‘Notify me of a new Ubuntu version: For long term support versions‘.
4.) Remove proprietary drivers from ‘Additional Drivers’ tab, and use an open-source driver instead. You may skip this step if your PC does not have a dedicated GPU.
5.) Remove other Desktop Environments! If you have other desktops (e.g., KDE, XFCE, Cinnamon), it’s better to remove them, so to speed up the upgrade process.
6.) Disable User Extensions. Disable user installed Gnome Extensions via Gnome Tweaks tool!
Upgrade to Ubuntu 22.04:
NOTE: The upgrade process may fail! If you can’t afford to have a broken system, please do a clean install instead of upgrading it!
1.) Firstly, press Ctrl+Alt+T on keyboard to open terminal. When it opens, run the command below to install all available system updates:
sudo apt update && sudo apt full-upgrade
install all available system updates
And, restart your computer if you have not run system updates for a long time.
2.) Next, in terminal run the command below to run update manager to check distribution update:
update-manager -d -c
If there are still available updates or removals, click on ‘Install Now’ and re-run the command.
3.) Once you see the prompt for Ubuntu 22.04. Click on “Upgrade” button, and confirm in the next ‘Release Notes’ dialog.
4.) It will pop-up another dialog asks to confirm via ‘Start Upgrade’ button. Once you click on it, the ‘Distribution Upgrade’ wizard will pop-up indicates the upgrading process.
5.) Don’t go far away from your computer!! There will be a few more confirm dialogs, so you have to keep an eye on the screen.
If everything goes well, there will be a dialog asks to “Restart” to complete the upgrade.
Sadly, I went out when it was ‘Getting new packages‘. And the upgrade process failed at blank screen when I was back! So there’s no screenshot for this step.
There may be various reasons that the upgrade failed. Here are the issues in my case.
As mentioned, the upgrade failed in my case and the laptop run into blank screen. And, I did following steps that successfully finish the upgrade.
1.) Force reboot and login. Press Ctrl+Alt+F2 (F3 ~ F6) and type username, then password to log into tty console if GDM (login screen) does not start. Or, select boot “Advanced -> recover mode -> drop root shell prompt” from boot-loader if Ubuntu refused to boot!
2.) Once logged in, try running command to configure unfinished packages:
sudo dpkg --configure -a
3.) And, try to fix broken dependencies via command:
sudo apt -f install
In my case, some third-party packages (e.g., libfilezilla12 from xtradeb PPA, and libreoffice-common from LibreOffice Fresh PPA) break the dependencies! And, the command failed with something look like:
trying to overwrite ‘…’, which is also in package libfilezilla12 0.27.1~extradeb1 Errors were encountered while processing: … E: Sub-process /usr/bin/dpkg returned an error code(1)
To fix the issue, just remove the package via command (replace package name ‘libfilezilla12’ accordingly):
sudo dpkg -P libfilezilla12
Then re-run the sudo apt -f install until it’s done successfully without error!
4.) Install all available system updates via command:
sudo apt full-upgrade
If everything goes well, clean up via command:
sudo apt remove --autoremove
And finally restart computer via reboot command.
5.) Some packages are however missing in my case after restart. They were fixed by manually installing the packages via the commands below.
No login screen or non-gnome login screen, run command and then reboot:
Now you have the gcc 4.8 with c++11 complete feature in your system. Check out by:
gcc (Ubuntu 4.8.1-2ubuntu1~13.04) 4.8.1 Copyright (C) 2013 Free Software Foundation, Inc. This is free software; see the source for copying conditions. There is NO warranty; not even for MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.
If you have problem installing R statistical package via the official document. Here’s easy guide with pictures shows you how to install R package in Ubuntu 13.04, Ubuntu 12.04, Ubuntu 12.10, Ubuntu 10.04.
R Package is available in Ubuntu Software Center by default, but it’s old. This tutorial will install the latest verson – so far it is 3.0.1 – in Ubuntu via the via official repository.
Add R Statistical Package Repository:
Search for and open Software & Updates from unity dash home.
Navigate to Other Software tab, click Add and paste below line in pop-up window.
For Ubuntu 12.04: deb http://cran.stat.ucla.edu/bin/linux/ubuntu precise/
For Ubuntu 13.04: deb http://cran.stat.ucla.edu/bin/linux/ubuntu raring/
For Ubuntu 12.10: deb http://cran.stat.ucla.edu/bin/linux/ubuntu quantal/
For Ubuntu 10.04: deb http://cran.stat.ucla.edu/bin/linux/ubuntu lucid/