When updating packages in Linux Mint 21 or Ubuntu 22.04 LTS, at times, a message appears, as shown below, that states the following packages have been held back.$ sudo apt-get dist-upgrade <enter> Reading package lists… DoneBuilding dependency tree… DoneReading state information… DoneCalculating upgrade… DoneThe following packages have been kept back:cryptsetup cryptsetup-bin cryptsetup-initramfs libcryptsetup120 upgraded, 0 … Continue reading How to fix error the following packages have been held back in Linux Mint or Ubuntu Linux
Tag: apt-get
How to fix error of Warning: apt-key is deprecated. Manage keyring files in trusted.gpg.d instead in Ubuntu Linux 22.04 LTS or Linux Mint 21
In Ubuntu 22.04 LTS or Linux Mint 21, there has been a change in the way keys to repos are stored. When installing software like Spotify from the internet via instructions there, the commands used cause an error when running apt-get update. The following error appears: Warning: apt-key is deprecated. Manage keyring files in trusted.gpg.d … Continue reading How to fix error of Warning: apt-key is deprecated. Manage keyring files in trusted.gpg.d instead in Ubuntu Linux 22.04 LTS or Linux Mint 21
How to fix initramfs-tools error when updating it
Below error appears when updating the initramfs-tools: Processing triggers for initramfs-tools (0.130ubuntu3.8) …update-initramfs: Generating /boot/initrd.img-5.1.0-15-genericI: The initramfs will attempt to resume from /dev/dm-1I: (/dev/mapper/vg0-swap)I: Set the RESUME variable to override this. Before proceeding beyond this point, take a data backup. This error usually occurs if the computer had dual booting and a swap file that … Continue reading How to fix initramfs-tools error when updating it
How to fix error while updating repositories in Ubuntu or Linux Mint
On entering the apt-get update command, the following errors appeared. Reading package lists… DoneW: Failed to fetch http://dl.google.com/linux/chrome/deb/dists/stable/InRelease Cannot initiate the connection to dl.google.com:80 (2414:6221:4109:825::210a). - connect (101: Network is unreachable) Could not connect to dl.google.com:80 (2xx.5x.2xx.2xx), connection timed outW: Some index files failed to download. They have been ignored, or old ones used instead. … Continue reading How to fix error while updating repositories in Ubuntu or Linux Mint
Enable login sound in Linux Mint on the XFCE desktop environment
It is strange that Linux Mint has such great sound effects in Cinnamon and they can all be heard, but they do not work on the Linux Mint XFCE desktop. Fret not. The effects are there, but the sounds have to be enabled. This applies to the XFCE desktop in any Linux distribution. To enable … Continue reading Enable login sound in Linux Mint on the XFCE desktop environment
Find package in which a missing file is packed ubuntu
If you want to find out to which package a particular file belong, you can use apt-file. Open a terminal window and enter the following command: $ apt-file search <filename> <enter> Where <filename> is the name of the file to lookup. If you do not have apt-file installed, you can install it on your computer … Continue reading Find package in which a missing file is packed ubuntu
apt-get dist-upgrade freezes at reading package lists due to appstreamcli in Ubuntu
Today, when I attempted to update the Ubuntu system to install the latest patches, the system hanged infinitely at the sudo apt-get update command. This appears to be a bug, but nonetheless, system patching is our priority and this is the workaround, till it gets fixed. To type the commands below, open a linux terminal … Continue reading apt-get dist-upgrade freezes at reading package lists due to appstreamcli in Ubuntu
Add repository to sources.list file in Ubuntu
Here is an example of how to add a sources.list file to the Ubuntu packages repository. Open a terminal window and enter the commands below. $ sudo cp -p /etc/apt/sources.list /etc/apt/sources.list_backup <enter> $ sudo vi /etc/apt/sources.list <enter> Now add the line: deb http://ppa.launchpad.net/speed-dreams/ppa/ubuntu raring main <enter> :wq $ sudo apt-get update <enter> Now you can … Continue reading Add repository to sources.list file in Ubuntu
The following packages have been kept back: Message in Ubuntu when updating packages
If you used the instructions at this post to update your Ubuntu Linux packages, basically, apply patches, you get the following message at times: The following packages have been kept back: <list of packages> This basically prevents the packages listed from getting updated. To overcome this issue, there are two ways: 1. Run sudo apt-get … Continue reading The following packages have been kept back: Message in Ubuntu when updating packages
Remove or Purge package in Ubuntu
Ubuntu offers two options to remove packages. When you remove packages, you only remove the packages, but not their configuration files. Enter the following command to remove a package in a terminal window. $ sudo apt-get remove packagename <enter> When you purge packages, you remove the packages and their configuration files. Enter the command below … Continue reading Remove or Purge package in Ubuntu