msrachelroodes
Member
dpkg has 2 additional versions which are showing up on the command line yet i cant resolve the issue
Hey dude, sounds like you're having trouble with dpkg and some additional versions showing up on the command line. No worries, I can help you out with that!dpkg has 2 additional versions which are showing up on the command line yet i cant resolve the issue
sudo apt-get clean
sudo apt-get update
sudo apt-get purge dpkg
sudo apt-get install dpkg
Bummer, dude! Sorry to hear that the previous suggestions didn't work for you. No worries, let's keep troubleshooting.i tried all of that many times already but none work?
--force
flag with dpkg
. For example:sudo dpkg --force-all -i package.deb
dpkg -l | grep dpkg
sudo apt-get remove --purge <package-name>
<package-name>
with the specific package name you want to remove. Repeat this step for each unwanted package version.Alright, let's see what we can do here. It seems like there are some unmet dependencies and held packages that are causing issues with the installation of dpkg.root@mint:/home/admin# sudo apt-get clean
root@mint:/home/admin# sudo apt-get update
Hit:1 http://security.ubuntu.com/ubuntu focal-security InRelease
Hit:2 https://brave-browser-apt-release.s3.brave.com stable InRelease
Hit:3 https://deb.tmiland.com/debian ./ InRelease
Hit:4 http://archive.canonical.com/ubuntu focal InRelease
Ign:5 http://packages.linuxmint.com una InRelease
Hit:6 http://archive.ubuntu.com/ubuntu focal InRelease
Hit:7 http://packages.linuxmint.com una Release
Hit:8 http://archive.ubuntu.com/ubuntu focal-updates InRelease
Hit:9 http://archive.ubuntu.com/ubuntu focal-backports InRelease
Reading package lists... Done
root@mint:/home/admin# sudo apt-get purge dpkg
Reading package lists... Done
Building dependency tree
Reading state information... Done
Some packages could not be installed. This may mean that you have
requested an impossible situation or if you are using the unstable
distribution that some required packages have not yet been created
or been moved out of Incoming.
The following information may help to resolve the situation:
The following packages have unmet dependencies.
dictionaries-common : Depends: debconf (>= 1.5.5) but it is not going to be installed or
debconf-2.0
Depends: libtext-iconv-perl but it is not going to be installed
fontconfig : Depends: fontconfig-config but it is not going to be installed
libfontconfig1 : Depends: fontconfig-config (>= 2.13.1-2ubuntu3) but it is not going to be installed
libicu66 : Depends: tzdata (> 2019c-3ubuntu1~) but it is not going to be installed
libqt5network5 : Depends: libssl1.1 but it is not going to be installed
libqt5svg5 : Depends: libqt5widgets5 (>= 5.12.8+dfsg~) but it is not going to be installed
lsb-release : Depends: python3:any
Recommends: apt but it is not going to be installed
E: Error, pkgProblemResolver::Resolve generated breaks, this may be caused by held packages.
root@mint:/home/admin# sudo apt-get install dpkg
Reading package lists... Done
Building dependency tree
Reading state information... Done
Some packages could not be installed. This may mean that you have
requested an impossible situation or if you are using the unstable
distribution that some required packages have not yet been created
or been moved out of Incoming.
The following information may help to resolve the situation:
The following packages have unmet dependencies.
dpkg : PreDepends: libc6 (>= 2.34) but 2.31-0ubuntu9.12 is to be installed
PreDepends: libselinux1 (>= 3.1~) but 3.0-1build2 is to be installed
PreDepends: libzstd1 (>= 1.5.2) but 1.4.4+dfsg-3ubuntu0.1 is to be installed
E: Unable to correct problems, you have held broken packages.
root@mint:/home/admin# sudo apt update && sudo apt upgrade
Hit:1 http://archive.canonical.com/ubuntu focal InRelease
Hit:2 https://deb.tmiland.com/debian ./ InRelease
Hit:3 https://brave-browser-apt-release.s3.brave.com stable InRelease
Hit:4 http://archive.ubuntu.com/ubuntu focal InRelease
Get:5 http://archive.ubuntu.com/ubuntu focal-updates InRelease [114 kB]
Ign:6 http://packages.linuxmint.com una InRelease
Hit:7 http://security.ubuntu.com/ubuntu focal-security InRelease
Hit:8 http://archive.ubuntu.com/ubuntu focal-backports InRelease
Hit:9 http://packages.linuxmint.com una Release
Fetched 114 kB in 1s (87.7 kB/s)
Reading package lists... Done
Building dependency tree
Reading state information... Done
1 package can be upgraded. Run 'apt list --upgradable' to see it.
Reading package lists... Done
Building dependency tree
Reading state information... Done
Calculating upgrade... Done
The following packages were automatically installed and are no longer required:
libmalcontent-0-0 mint-backgrounds-uma
Use 'sudo apt autoremove' to remove them.
0 to upgrade, 0 to newly install, 0 to remove and 0 not to upgrade.
root@mint:/home/admin# sudo apt update
Hit:1 http://archive.canonical.com/ubuntu focal InRelease
Hit:2 https://deb.tmiland.com/debian ./ InRelease
Hit:3 https://brave-browser-apt-release.s3.brave.com stable InRelease
Hit:4 http://archive.ubuntu.com/ubuntu focal InRelease
Hit:5 http://security.ubuntu.com/ubuntu focal-security InRelease
Ign:6 http://packages.linuxmint.com una InRelease
Hit:7 http://archive.ubuntu.com/ubuntu focal-updates InRelease
Hit:8 http://packages.linuxmint.com una Release
Hit:9 http://archive.ubuntu.com/ubuntu focal-backports InRelease
Reading package lists... Done
Building dependency tree
Reading state information... Done
1 package can be upgraded. Run 'apt list --upgradable' to see it.
root@mint:/home/admin# apt upgrade
Reading package lists... Done
Building dependency tree
Reading state information... Done
Calculating upgrade... Done
The following packages were automatically installed and are no longer required:
libmalcontent-0-0 mint-backgrounds-uma
Use 'sudo apt autoremove' to remove them.
0 to upgrade, 0 to newly install, 0 to remove and 0 not to upgrade.
root@mint:/home/admin# apt autoremove
Reading package lists... Done
Building dependency tree
Reading state information... Done
The following packages will be REMOVED
libmalcontent-0-0 mint-backgrounds-uma
0 to upgrade, 0 to newly install, 2 to remove and 1 not to upgrade.
After this operation, 54.4 MB disk space will be freed.
Do you want to continue? [Y/n] Y
(Reading database ... 480782 files and directories currently installed.)
Removing libmalcontent-0-0:amd64 (0.10.0-2+elementary5~ubuntu6.1) ...
Removing mint-backgrounds-uma (1.2) ...
Processing triggers for libc-bin (2.31-0ubuntu9.12) ...
root@mint:/home/admin# apt update
Hit:1 https://deb.tmiland.com/debian ./ InRelease
Hit:2 https://brave-browser-apt-release.s3.brave.com stable InRelease
Hit:3 http://security.ubuntu.com/ubuntu focal-security InRelease
Hit:4 http://archive.ubuntu.com/ubuntu focal InRelease
Ign:5 http://packages.linuxmint.com una InRelease
Hit:6 http://archive.canonical.com/ubuntu focal InRelease
Hit:7 http://archive.ubuntu.com/ubuntu focal-updates InRelease
Hit:8 http://packages.linuxmint.com una Release
Hit:9 http://archive.ubuntu.com/ubuntu focal-backports InRelease
Reading package lists... Done
Building dependency tree
Reading state information... Done
1 package can be upgraded. Run 'apt list --upgradable' to see it.
root@mint:/home/admin#
sudo apt-get install -f
sudo apt-get install dpkg
sudo dpkg --configure -a
sudo apt-get install -f
sudo apt-get update
I apologize for the inconvenience, dude. It looks like you're still facing issues with the installation of dpkg and the unmet dependencies.This doesnt work either, please see below;
------------------------------
root@mint:/home/admin# apt-get install dpkg
Reading package lists... Done
Building dependency tree
Reading state information... Done
Some packages could not be installed. This may mean that you have
requested an impossible situation or if you are using the unstable
distribution that some required packages have not yet been created
or been moved out of Incoming.
The following information may help to resolve the situation:
The following packages have unmet dependencies.
dpkg : PreDepends: libc6 (>= 2.34) but 2.31-0ubuntu9.12 is to be installed
PreDepends: libselinux1 (>= 3.1~) but 3.0-1build2 is to be installed
PreDepends: libzstd1 (>= 1.5.2) but 1.4.4+dfsg-3ubuntu0.1 is to be installed
E: Unable to correct problems, you have held broken packages.
root@mint:/home/admin# apt-get install dpkg
Reading package lists... Done
Building dependency tree
Reading state information... Done
Some packages could not be installed. This may mean that you have
requested an impossible situation or if you are using the unstable
distribution that some required packages have not yet been created
or been moved out of Incoming.
The following information may help to resolve the situation:
The following packages have unmet dependencies.
dpkg : PreDepends: libc6 (>= 2.34) but 2.31-0ubuntu9.12 is to be installed
PreDepends: libselinux1 (>= 3.1~) but 3.0-1build2 is to be installed
PreDepends: libzstd1 (>= 1.5.2) but 1.4.4+dfsg-3ubuntu0.1 is to be installed
E: Unable to correct problems, you have held broken packages.
root@mint:/home/admin# dpkg --configure -a
root@mint:/home/admin# apt-get install -f
Reading package lists... Done
Building dependency tree
Reading state information... Done
0 to upgrade, 0 to newly install, 0 to remove and 1 not to upgrade.
root@mint:/home/admin# apt-get update
Hit:1 http://archive.canonical.com/ubuntu focal InRelease
Hit:2 https://deb.tmiland.com/debian ./ InRelease
Hit:3 https://brave-browser-apt-release.s3.brave.com stable InRelease
Hit:4 http://security.ubuntu.com/ubuntu focal-security InRelease
Ign:5 http://packages.linuxmint.com una InRelease
Hit:6 http://packages.linuxmint.com una Release
Hit:7 http://archive.ubuntu.com/ubuntu focal InRelease
Hit:8 http://archive.ubuntu.com/ubuntu focal-updates InRelease
Hit:9 http://archive.ubuntu.com/ubuntu focal-backports InRelease
Reading package lists... Done
root@mint:/home/admin# apt update
Hit:1 http://archive.ubuntu.com/ubuntu focal InRelease
Hit:2 http://archive.canonical.com/ubuntu focal InRelease
Hit:3 http://archive.ubuntu.com/ubuntu focal-updates InRelease
Hit:4 http://archive.ubuntu.com/ubuntu focal-backports InRelease
Hit:5 https://brave-browser-apt-release.s3.brave.com stable InRelease
Hit:6 https://deb.tmiland.com/debian ./ InRelease
Hit:7 http://security.ubuntu.com/ubuntu focal-security InRelease
Ign:8 http://packages.linuxmint.com una InRelease
Hit:9 http://packages.linuxmint.com una Release
Reading package lists... Done
Building dependency tree
Reading state information... Done
1 package can be upgraded. Run 'apt list --upgradable' to see it.
root@mint:/home/admin#
sudo apt-get install aptitude
sudo aptitude install dpkg