Unable to fix broken packages on synaptic. troubleshoot procedure info

Asked by Remz

rem@rem-XPS-15-9560:~$ ubuntu-support-status || ubuntu-security-status
ubuntu-support-status: command not found
1956 packages installed, of which:
1319 receive package updates with LTS until 4/2025
   2 packages are from third parties
   2 packages are no longer available for download

Packages from third parties are not provided by the official Ubuntu
archive, for example packages from Personal Package Archives in
Launchpad.
For more information on the packages, run 'ubuntu-security-status
--thirdparty'.

Packages that are not available for download may be left over from a
previous release of Ubuntu, may have been installed directly from a
.deb file, or are from a source which has been disabled.
For more information on the packages, run 'ubuntu-security-status
--unavailable'.

This machine is not attached to an Ubuntu Advantage subscription.
See https://ubuntu.com/advantage
rem@rem-XPS-15-9560:~$ cat /etc/dpkg/dpkg.cfg.d/multiarch
cat: /etc/dpkg/dpkg.cfg.d/multiarch: No such file or directory
rem@rem-XPS-15-9560:~$ /etc/dpkg/dpkg.cfg.d/multiarch
bash: /etc/dpkg/dpkg.cfg.d/multiarch: No such file or directory
rem@rem-XPS-15-9560:~$ dpkg --print-foreign-architectures
i386
rem@rem-XPS-15-9560:~$ sudo grep -R roxy /etc/apt/*
[sudo] password for rem:
rem@rem-XPS-15-9560:~$ grep roxy /etc/environment
rem@rem-XPS-15-9560:~$ echo $http_proxy

rem@rem-XPS-15-9560:~$ echo $ftp_proxy

rem@rem-XPS-15-9560:~$ grep roxy /etc/bash.bashrc
rem@rem-XPS-15-9560:~$ grep roxy ~/.bashrc
rem@rem-XPS-15-9560:~$ cat /etc/apt/apt.conf
cat: /etc/apt/apt.conf: No such file or directory
rem@rem-XPS-15-9560:~$ sudo fuser -vvv /var/lib/dpkg/lock
rem@rem-XPS-15-9560:~$ sudo fuser -vvv /var/cache/apt/archives/lock
rem@rem-XPS-15-9560:~$ cat /etc/lsb-release
DISTRIB_ID=Ubuntu
DISTRIB_RELEASE=20.04
DISTRIB_CODENAME=focal
DISTRIB_DESCRIPTION="Ubuntu 20.04.3 LTS"
rem@rem-XPS-15-9560:~$ uname -a
Linux rem-XPS-15-9560 5.13.0-28-generic #31~20.04.1-Ubuntu SMP Wed Jan 19 14:08:10 UTC 2022 x86_64 x86_64 x86_64 GNU/Linux
rem@rem-XPS-15-9560:~$ sudo rm /var/lib/apt/lists/lock
rem@rem-XPS-15-9560:~$ sudo rm /var/cache/apt/archives/lock
rem@rem-XPS-15-9560:~$ sudo rm /var/lib/dpkg/lock
rem@rem-XPS-15-9560:~$ sudo cp -arf /var/lib/dpkg /var/lib/dpkg.backup
rem@rem-XPS-15-9560:~$ sudo mv /var/lib/dpkg/status /var/lib/dpkg/status-bad
rem@rem-XPS-15-9560:~$ sudo cp /var/lib/dpkg/status-old /var/lib/dpkg/status || sudo cp /var/backups/dpkg.status.0 /var/lib/dpkg/status
rem@rem-XPS-15-9560:~$ sudo mv /var/lib/dpkg/available /var/lib/dpkg/available-bad
rem@rem-XPS-15-9560:~$ sudo cp /var/lib/dpkg/available-old /var/lib/dpkg/available
cp: cannot stat '/var/lib/dpkg/available-old': No such file or directory
rem@rem-XPS-15-9560:~$ sudo rm -rf /var/lib/dpkg/updates/*
rem@rem-XPS-15-9560:~$ sudo rm -rf /var/lib/apt/lists
rem@rem-XPS-15-9560:~$ sudo rm /var/cache/apt/*.bin
rem@rem-XPS-15-9560:~$ sudo mkdir /var/lib/apt/lists
rem@rem-XPS-15-9560:~$ sudo mkdir /var/lib/apt/lists/partial
rem@rem-XPS-15-9560:~$ LANG=C;sudo apt-get clean
rem@rem-XPS-15-9560:~$ LANG=C;sudo apt-get autoclean
Reading package lists... Done
Building dependency tree
Reading state information... Done
rem@rem-XPS-15-9560:~$ sudo dpkg --configure -a
Processing triggers for libc-bin (2.31-0ubuntu9.2) ...
rem@rem-XPS-15-9560:~$ sudo dpkg --clear-avail
rem@rem-XPS-15-9560:~$ LANG=C;sudo apt-get -f install
Reading package lists... Done
Building dependency tree
Reading state information... Done
The following packages were automatically installed and are no longer required:
  libblkid1:i386 libbz2-1.0:i386 libcom-err2:i386 libdb5.3:i386 libgcrypt20:i386
  libgpg-error0:i386 libgpm2:i386 liblz4-1:i386 liblzma5:i386 libmount1:i386 libncurses6:i386
  libncursesw6:i386 libpcre2-8-0:i386 libpcre3:i386 libselinux1:i386 libsystemd0:i386
  libtinfo6:i386 libudev1:i386 libuuid1:i386 libzstd1:i386
Use 'sudo apt autoremove' to remove them.
0 upgraded, 0 newly installed, 0 to remove and 0 not upgraded.
rem@rem-XPS-15-9560:~$ LANG=C;sudo apt-get --fix-missing install
Reading package lists... Done
Building dependency tree
Reading state information... Done
The following packages were automatically installed and are no longer required:
  libblkid1:i386 libbz2-1.0:i386 libcom-err2:i386 libdb5.3:i386 libgcrypt20:i386
  libgpg-error0:i386 libgpm2:i386 liblz4-1:i386 liblzma5:i386 libmount1:i386 libncurses6:i386
  libncursesw6:i386 libpcre2-8-0:i386 libpcre3:i386 libselinux1:i386 libsystemd0:i386
  libtinfo6:i386 libudev1:i386 libuuid1:i386 libzstd1:i386
Use 'sudo apt autoremove' to remove them.
0 upgraded, 0 newly installed, 0 to remove and 0 not upgraded.
rem@rem-XPS-15-9560:~$ LANG=C;sudo apt-get --purge autoremove
Reading package lists... Done
Building dependency tree
Reading state information... Done
The following packages will be REMOVED:
  libblkid1:i386* libbz2-1.0:i386* libcom-err2:i386* libdb5.3:i386* libgcrypt20:i386*
  libgpg-error0:i386* libgpm2:i386* liblz4-1:i386* liblzma5:i386* libmount1:i386*
  libncurses6:i386* libncursesw6:i386* libpcre2-8-0:i386* libpcre3:i386* libselinux1:i386*
  libsystemd0:i386* libtinfo6:i386* libudev1:i386* libuuid1:i386* libzstd1:i386*
0 upgraded, 0 newly installed, 20 to remove and 0 not upgraded.
After this operation, 10.0 MB disk space will be freed.
Do you want to continue? [Y/n] y
(Reading database ... 219811 files and directories currently installed.)
Removing libmount1:i386 (2.34-0.1ubuntu9.1) ...
Removing libblkid1:i386 (2.34-0.1ubuntu9.1) ...
Removing libbz2-1.0:i386 (1.0.8-2) ...
Removing libcom-err2:i386 (1.45.5-2ubuntu1) ...
Removing libdb5.3:i386 (5.3.28+dfsg1-0.6ubuntu2) ...
Removing libsystemd0:i386 (245.4-4ubuntu3.15) ...
Removing libgcrypt20:i386 (1.8.5-5ubuntu1.1) ...
Removing libgpg-error0:i386 (1.37-1) ...
Removing libgpm2:i386 (1.20.7-5) ...
Removing liblz4-1:i386 (1.9.2-2ubuntu0.20.04.1) ...
Removing liblzma5:i386 (5.2.4-1ubuntu1) ...
Removing libncurses6:i386 (6.2-0ubuntu2) ...
Removing libncursesw6:i386 (6.2-0ubuntu2) ...
Removing libselinux1:i386 (3.0-1build2) ...
Removing libpcre2-8-0:i386 (10.34-7) ...
Removing libpcre3:i386 (2:8.39-12build1) ...
Removing libtinfo6:i386 (6.2-0ubuntu2) ...
Removing libudev1:i386 (245.4-4ubuntu3.15) ...
Removing libuuid1:i386 (2.34-0.1ubuntu9.1) ...
Removing libzstd1:i386 (1.4.4+dfsg-3ubuntu0.1) ...
Processing triggers for libc-bin (2.31-0ubuntu9.2) ...
rem@rem-XPS-15-9560:~$ LANG=C;sudo apt-get --fix-missing update -o APT::Cache-Limit=100000000
Get:1 http://packages.microsoft.com/repos/code stable InRelease [10.4 kB]
Get:2 http://archive.canonical.com/ubuntu focal InRelease [12.1 kB]
Get:3 http://packages.microsoft.com/repos/code stable/main arm64 Packages [69.3 kB]
Get:4 http://packages.microsoft.com/repos/code stable/main amd64 Packages [68.2 kB]
Get:5 http://packages.microsoft.com/repos/code stable/main armhf Packages [69.0 kB]
Get:6 http://archive.canonical.com/ubuntu focal/partner Sources [716 B]
Get:7 http://archive.canonical.com/ubuntu focal/partner amd64 Packages [856 B]
Get:8 http://archive.canonical.com/ubuntu focal/partner Translation-en [384 B]
Get:9 http://archive.ubuntu.com/ubuntu focal InRelease [265 kB]
Get:10 https://dl.winehq.org/wine-builds/ubuntu focal InRelease [8041 B]
Get:11 https://dl.winehq.org/wine-builds/ubuntu impish InRelease [8043 B]
Get:12 http://archive.ubuntu.com/ubuntu focal-updates InRelease [114 kB]
Get:13 http://archive.ubuntu.com/ubuntu focal-backports InRelease [108 kB]
Get:14 https://dl.winehq.org/wine-builds/ubuntu groovy InRelease [6259 B]
Get:15 http://archive.ubuntu.com/ubuntu focal-security InRelease [114 kB]
Get:16 http://security.ubuntu.com/ubuntu focal-security InRelease [114 kB]
Get:17 https://dl.winehq.org/wine-builds/ubuntu focal/main Sources [52.6 kB]
Get:18 https://dl.winehq.org/wine-builds/ubuntu focal/main i386 Packages [305 kB]
Get:19 https://dl.winehq.org/wine-builds/ubuntu focal/main amd64 Packages [303 kB]
Get:20 https://dl.winehq.org/wine-builds/ubuntu focal/main all Packages [896 B]
Get:21 https://dl.google.com/linux/chrome/deb stable InRelease [1811 B]
Get:22 http://archive.ubuntu.com/ubuntu focal/multiverse Sources [174 kB]
Get:23 http://archive.ubuntu.com/ubuntu focal/universe Sources [9707 kB]
Get:24 https://dl.winehq.org/wine-builds/ubuntu impish/main Sources [13.9 kB]
Get:25 https://dl.winehq.org/wine-builds/ubuntu impish/main i386 Packages [50.6 kB]
Get:26 https://dl.winehq.org/wine-builds/ubuntu impish/main all Packages [896 B]
Get:27 https://dl.winehq.org/wine-builds/ubuntu impish/main amd64 Packages [50.6 kB]
Get:28 https://dl.winehq.org/wine-builds/ubuntu groovy/main amd64 Packages [132 kB]
Get:29 http://archive.ubuntu.com/ubuntu focal/main Sources [847 kB]
Get:30 http://archive.ubuntu.com/ubuntu focal/restricted Sources [6472 B]
Get:31 http://archive.ubuntu.com/ubuntu focal/main amd64 Packages [970 kB]
Get:32 https://dl.winehq.org/wine-builds/ubuntu groovy/main i386 Packages [133 kB]
Get:33 http://archive.ubuntu.com/ubuntu focal/main i386 Packages [718 kB]
Get:34 http://archive.ubuntu.com/ubuntu focal/main Translation-en [506 kB]
Get:35 http://archive.ubuntu.com/ubuntu focal/main amd64 DEP-11 Metadata [494 kB]
Get:36 http://archive.ubuntu.com/ubuntu focal/main DEP-11 48x48 Icons [98.4 kB]
Get:37 http://archive.ubuntu.com/ubuntu focal/main DEP-11 64x64 Icons [163 kB]
Get:38 http://archive.ubuntu.com/ubuntu focal/main DEP-11 64x64@2 Icons [15.8 kB]
Get:39 http://archive.ubuntu.com/ubuntu focal/main DEP-11 128x128 Icons [367 kB]
Get:40 http://archive.ubuntu.com/ubuntu focal/main amd64 c-n-f Metadata [29.5 kB]
Get:41 http://archive.ubuntu.com/ubuntu focal/restricted amd64 Packages [22.0 kB]
Get:42 http://archive.ubuntu.com/ubuntu focal/restricted i386 Packages [8112 B]
Get:43 http://archive.ubuntu.com/ubuntu focal/restricted Translation-en [6212 B]
Get:44 http://archive.ubuntu.com/ubuntu focal/restricted amd64 c-n-f Metadata [392 B]
Get:45 http://archive.ubuntu.com/ubuntu focal/universe i386 Packages [4642 kB]
Get:46 https://dl.google.com/linux/chrome/deb stable/main amd64 Packages [1092 B]
Get:47 http://archive.ubuntu.com/ubuntu focal/universe amd64 Packages [8628 kB]
Get:48 http://security.ubuntu.com/ubuntu focal-security/main i386 Packages [367 kB]
Get:49 http://archive.ubuntu.com/ubuntu focal/universe Translation-en [5124 kB]
Get:50 http://security.ubuntu.com/ubuntu focal-security/main amd64 Packages [1210 kB]
Get:51 http://archive.ubuntu.com/ubuntu focal/universe amd64 DEP-11 Metadata [3603 kB]
Get:52 http://archive.ubuntu.com/ubuntu focal/universe DEP-11 48x48 Icons [3016 kB]
Get:53 http://security.ubuntu.com/ubuntu focal-security/main Translation-en [213 kB]
Get:54 http://archive.ubuntu.com/ubuntu focal/universe DEP-11 64x64 Icons [7794 kB]
Get:55 http://security.ubuntu.com/ubuntu focal-security/main amd64 DEP-11 Metadata [40.6 kB]
Get:56 http://security.ubuntu.com/ubuntu focal-security/main DEP-11 48x48 Icons [18.3 kB]
Get:57 http://security.ubuntu.com/ubuntu focal-security/main DEP-11 64x64 Icons [35.5 kB]
Get:58 http://security.ubuntu.com/ubuntu focal-security/main DEP-11 64x64@2 Icons [29 B]
Get:59 http://security.ubuntu.com/ubuntu focal-security/main DEP-11 128x128 Icons [71.2 kB]
Get:60 http://security.ubuntu.com/ubuntu focal-security/main amd64 c-n-f Metadata [9136 B]
Get:61 http://security.ubuntu.com/ubuntu focal-security/restricted i386 Packages [20.5 kB]
Get:62 http://security.ubuntu.com/ubuntu focal-security/restricted amd64 Packages [718 kB]
Get:63 http://security.ubuntu.com/ubuntu focal-security/restricted Translation-en [103 kB]
Get:64 http://security.ubuntu.com/ubuntu focal-security/restricted amd64 c-n-f Metadata [536 B]
Get:65 http://security.ubuntu.com/ubuntu focal-security/universe i386 Packages [532 kB]
Get:66 http://security.ubuntu.com/ubuntu focal-security/universe amd64 Packages [676 kB]
Get:67 http://security.ubuntu.com/ubuntu focal-security/universe Translation-en [115 kB]
Get:68 http://security.ubuntu.com/ubuntu focal-security/universe amd64 DEP-11 Metadata [66.6 kB]
Get:69 http://security.ubuntu.com/ubuntu focal-security/universe DEP-11 48x48 Icons [33.1 kB]
Get:70 http://security.ubuntu.com/ubuntu focal-security/universe DEP-11 64x64 Icons [71.6 kB]
Get:71 http://security.ubuntu.com/ubuntu focal-security/universe DEP-11 64x64@2 Icons [29 B]
Get:72 http://security.ubuntu.com/ubuntu focal-security/universe DEP-11 128x128 Icons [121 kB]
Get:73 http://security.ubuntu.com/ubuntu focal-security/universe amd64 c-n-f Metadata [13.0 kB]
Get:74 http://security.ubuntu.com/ubuntu focal-security/multiverse i386 Packages [7176 B]
Get:75 http://security.ubuntu.com/ubuntu focal-security/multiverse amd64 Packages [21.8 kB]
Get:76 http://security.ubuntu.com/ubuntu focal-security/multiverse Translation-en [4948 B]
Get:77 http://security.ubuntu.com/ubuntu focal-security/multiverse amd64 DEP-11 Metadata [2464 B]
Get:78 http://security.ubuntu.com/ubuntu focal-security/multiverse DEP-11 48x48 Icons [29 B]
Get:79 http://archive.ubuntu.com/ubuntu focal/universe DEP-11 64x64@2 Icons [44.3 kB]
Get:80 http://archive.ubuntu.com/ubuntu focal/universe DEP-11 128x128 Icons [14.3 MB]
Get:81 http://security.ubuntu.com/ubuntu focal-security/multiverse DEP-11 64x64 Icons [2638 B]
Get:82 http://security.ubuntu.com/ubuntu focal-security/multiverse DEP-11 64x64@2 Icons [29 B]
Get:83 http://security.ubuntu.com/ubuntu focal-security/multiverse DEP-11 128x128 Icons [29 B]
Get:84 http://security.ubuntu.com/ubuntu focal-security/multiverse amd64 c-n-f Metadata [536 B]
Get:85 http://archive.ubuntu.com/ubuntu focal/universe amd64 c-n-f Metadata [265 kB]
Get:86 http://archive.ubuntu.com/ubuntu focal/multiverse i386 Packages [74.7 kB]
Get:87 http://archive.ubuntu.com/ubuntu focal/multiverse amd64 Packages [144 kB]
Get:88 http://archive.ubuntu.com/ubuntu focal/multiverse Translation-en [104 kB]
Get:89 http://archive.ubuntu.com/ubuntu focal/multiverse amd64 DEP-11 Metadata [48.4 kB]
Get:90 http://archive.ubuntu.com/ubuntu focal/multiverse DEP-11 48x48 Icons [23.1 kB]
Get:91 http://archive.ubuntu.com/ubuntu focal/multiverse DEP-11 64x64 Icons [192 kB]
Get:92 http://archive.ubuntu.com/ubuntu focal/multiverse DEP-11 64x64@2 Icons [214 B]
Get:93 http://archive.ubuntu.com/ubuntu focal/multiverse DEP-11 128x128 Icons [326 kB]
Get:94 http://archive.ubuntu.com/ubuntu focal/multiverse amd64 c-n-f Metadata [9136 B]
Get:95 http://archive.ubuntu.com/ubuntu focal-updates/restricted Sources [31.9 kB]
Get:96 http://archive.ubuntu.com/ubuntu focal-updates/universe Sources [220 kB]
Get:97 http://archive.ubuntu.com/ubuntu focal-updates/multiverse Sources [19.0 kB]
Get:98 http://archive.ubuntu.com/ubuntu focal-updates/main Sources [460 kB]
Get:99 http://archive.ubuntu.com/ubuntu focal-updates/main amd64 Packages [1550 kB]
Get:100 http://archive.ubuntu.com/ubuntu focal-updates/main i386 Packages [597 kB]
Get:101 http://archive.ubuntu.com/ubuntu focal-updates/main Translation-en [300 kB]
Get:102 http://archive.ubuntu.com/ubuntu focal-updates/main amd64 DEP-11 Metadata [282 kB]
Get:103 http://archive.ubuntu.com/ubuntu focal-updates/main DEP-11 48x48 Icons [60.8 kB]
Get:104 http://archive.ubuntu.com/ubuntu focal-updates/main DEP-11 64x64 Icons [98.3 kB]
Get:105 http://archive.ubuntu.com/ubuntu focal-updates/main DEP-11 64x64@2 Icons [29 B]
Get:106 http://archive.ubuntu.com/ubuntu focal-updates/main DEP-11 128x128 Icons [202 kB]
Get:107 http://archive.ubuntu.com/ubuntu focal-updates/main amd64 c-n-f Metadata [14.7 kB]
Get:108 http://archive.ubuntu.com/ubuntu focal-updates/restricted i386 Packages [21.8 kB]
Get:109 http://archive.ubuntu.com/ubuntu focal-updates/restricted amd64 Packages [775 kB]
Get:110 http://archive.ubuntu.com/ubuntu focal-updates/restricted Translation-en [111 kB]
Get:111 http://archive.ubuntu.com/ubuntu focal-updates/restricted amd64 c-n-f Metadata [532 B]
Get:112 http://archive.ubuntu.com/ubuntu focal-updates/universe i386 Packages [665 kB]
Get:113 http://archive.ubuntu.com/ubuntu focal-updates/universe amd64 Packages [896 kB]
Get:114 http://archive.ubuntu.com/ubuntu focal-updates/universe Translation-en [197 kB]
Get:115 http://archive.ubuntu.com/ubuntu focal-updates/universe amd64 DEP-11 Metadata [364 kB]
Get:116 http://archive.ubuntu.com/ubuntu focal-updates/universe DEP-11 48x48 Icons [221 kB]
Get:117 http://archive.ubuntu.com/ubuntu focal-updates/universe DEP-11 64x64 Icons [395 kB]
Get:118 http://archive.ubuntu.com/ubuntu focal-updates/universe DEP-11 64x64@2 Icons [29 B]
Get:119 http://archive.ubuntu.com/ubuntu focal-updates/universe DEP-11 128x128 Icons [911 kB]
Get:120 http://archive.ubuntu.com/ubuntu focal-updates/universe amd64 c-n-f Metadata [20.0 kB]
Get:121 http://archive.ubuntu.com/ubuntu focal-updates/multiverse i386 Packages [8432 B]
Get:122 http://archive.ubuntu.com/ubuntu focal-updates/multiverse amd64 Packages [24.8 kB]
Get:123 http://archive.ubuntu.com/ubuntu focal-updates/multiverse Translation-en [6928 B]
Get:124 http://archive.ubuntu.com/ubuntu focal-updates/multiverse amd64 DEP-11 Metadata [940 B]
Get:125 http://archive.ubuntu.com/ubuntu focal-updates/multiverse DEP-11 48x48 Icons [1865 B]
Get:126 http://archive.ubuntu.com/ubuntu focal-updates/multiverse DEP-11 64x64 Icons [2498 B]
Get:127 http://archive.ubuntu.com/ubuntu focal-updates/multiverse DEP-11 64x64@2 Icons [29 B]
Get:128 http://archive.ubuntu.com/ubuntu focal-updates/multiverse DEP-11 128x128 Icons [29 B]
Get:129 http://archive.ubuntu.com/ubuntu focal-updates/multiverse amd64 c-n-f Metadata [620 B]
Get:130 http://archive.ubuntu.com/ubuntu focal-backports/main Sources [6584 B]
Get:131 http://archive.ubuntu.com/ubuntu focal-backports/universe Sources [7400 B]
Get:132 http://archive.ubuntu.com/ubuntu focal-backports/main i386 Packages [34.5 kB]
Get:133 http://archive.ubuntu.com/ubuntu focal-backports/main amd64 Packages [42.0 kB]
Get:134 http://archive.ubuntu.com/ubuntu focal-backports/main Translation-en [10.0 kB]
Get:135 http://archive.ubuntu.com/ubuntu focal-backports/main amd64 DEP-11 Metadata [8000 B]
Get:136 http://archive.ubuntu.com/ubuntu focal-backports/main DEP-11 48x48 Icons [6977 B]
Get:137 http://archive.ubuntu.com/ubuntu focal-backports/main DEP-11 64x64 Icons [10.5 kB]
Get:138 http://archive.ubuntu.com/ubuntu focal-backports/main DEP-11 64x64@2 Icons [29 B]
Get:139 http://archive.ubuntu.com/ubuntu focal-backports/main DEP-11 128x128 Icons [23.9 kB]
Get:140 http://archive.ubuntu.com/ubuntu focal-backports/main amd64 c-n-f Metadata [864 B]
Get:141 http://archive.ubuntu.com/ubuntu focal-backports/restricted amd64 c-n-f Metadata [116 B]
Get:142 http://archive.ubuntu.com/ubuntu focal-backports/universe amd64 Packages [20.8 kB]
Get:143 http://archive.ubuntu.com/ubuntu focal-backports/universe i386 Packages [11.4 kB]
Get:144 http://archive.ubuntu.com/ubuntu focal-backports/universe Translation-en [14.3 kB]
Get:145 http://archive.ubuntu.com/ubuntu focal-backports/universe amd64 DEP-11 Metadata [12.0 kB]
Get:146 http://archive.ubuntu.com/ubuntu focal-backports/universe DEP-11 48x48 Icons [7491 B]
Get:147 http://archive.ubuntu.com/ubuntu focal-backports/universe DEP-11 64x64 Icons [13.2 kB]
Get:148 http://archive.ubuntu.com/ubuntu focal-backports/universe DEP-11 64x64@2 Icons [29 B]
Get:149 http://archive.ubuntu.com/ubuntu focal-backports/universe DEP-11 128x128 Icons [21.8 kB]
Get:150 http://archive.ubuntu.com/ubuntu focal-backports/universe amd64 c-n-f Metadata [692 B]
Get:151 http://archive.ubuntu.com/ubuntu focal-backports/multiverse amd64 c-n-f Metadata [116 B]
Get:152 http://archive.ubuntu.com/ubuntu focal-security/main Sources [198 kB]
Get:153 http://archive.ubuntu.com/ubuntu focal-security/restricted Sources [31.9 kB]
Get:154 http://archive.ubuntu.com/ubuntu focal-security/multiverse Sources [7812 B]
Get:155 http://archive.ubuntu.com/ubuntu focal-security/universe Sources [83.7 kB]
Fetched 77.9 MB in 12s (6338 kB/s)
Reading package lists... Done
rem@rem-XPS-15-9560:~$ LANG=C;sudo apt-get update -o APT::Cache-Limit=100000000 && sudo apt-get dist-upgrade
Hit:1 http://archive.canonical.com/ubuntu focal InRelease
Hit:2 http://archive.ubuntu.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 http://archive.ubuntu.com/ubuntu focal-security InRelease
Hit:6 https://dl.winehq.org/wine-builds/ubuntu focal InRelease
Hit:7 https://dl.winehq.org/wine-builds/ubuntu impish InRelease
Hit:8 https://dl.winehq.org/wine-builds/ubuntu groovy InRelease
Hit:9 http://packages.microsoft.com/repos/code stable InRelease
Hit:10 https://dl.google.com/linux/chrome/deb stable InRelease
Hit:11 http://security.ubuntu.com/ubuntu focal-security InRelease
Reading package lists... Done
Reading package lists... Done
Building dependency tree
Reading state information... Done
Calculating upgrade... Done
0 upgraded, 0 newly installed, 0 to remove and 0 not upgraded.
rem@rem-XPS-15-9560:~$ find /etc/apt -name '*.list' -exec bash -c 'echo -e "\n$1\n"; cat -n "$1"' _ '{}' \;

/etc/apt/sources.list

     1 # deb cdrom:[Kubuntu 20.04.3 LTS _Focal Fossa_ - Release amd64 (20210819.1)]/ focal universe restricted multiverse main
     2
     3
     4 # See http://help.ubuntu.com/community/UpgradeNotes for how to upgrade to
     5 # newer versions of the distribution.
     6 deb http://archive.ubuntu.com/ubuntu focal main restricted
     7 deb-src http://archive.ubuntu.com/ubuntu focal restricted main
     8
     9 ## Major bug fix updates produced after the final release of the
    10 ## distribution.
    11 deb http://archive.ubuntu.com/ubuntu focal-updates main restricted
    12 deb-src http://archive.ubuntu.com/ubuntu focal-updates restricted main
    13
    14 ## N.B. software from this repository is ENTIRELY UNSUPPORTED by the Ubuntu
    15 ## team. Also, please note that software in universe WILL NOT receive any
    16 ## review or updates from the Ubuntu security team.
    17 deb http://archive.ubuntu.com/ubuntu focal universe
    18 deb-src http://archive.ubuntu.com/ubuntu focal universe
    19 deb http://archive.ubuntu.com/ubuntu focal-updates universe
    20 deb-src http://archive.ubuntu.com/ubuntu focal-updates universe
    21
    22 ## N.B. software from this repository is ENTIRELY UNSUPPORTED by the Ubuntu
    23 ## team, and may not be under a free licence. Please satisfy yourself as to
    24 ## your rights to use the software. Also, please note that software in
    25 ## multiverse WILL NOT receive any review or updates from the Ubuntu
    26 ## security team.
    27 deb http://archive.ubuntu.com/ubuntu focal multiverse
    28 deb-src http://archive.ubuntu.com/ubuntu focal multiverse
    29 deb http://archive.ubuntu.com/ubuntu focal-updates multiverse
    30 deb-src http://archive.ubuntu.com/ubuntu focal-updates multiverse
    31
    32 ## N.B. software from this repository may not have been tested as
    33 ## extensively as that contained in the main release, although it includes
    34 ## newer versions of some applications which may provide useful features.
    35 ## Also, please note that software in backports WILL NOT receive any review
    36 ## or updates from the Ubuntu security team.
    37 deb http://archive.ubuntu.com/ubuntu focal-backports main restricted universe multiverse
    38 deb-src http://archive.ubuntu.com/ubuntu focal-backports multiverse universe restricted main
    39
    40 ## Uncomment the following two lines to add software from Canonical's
    41 ## 'partner' repository.
    42 ## This software is not part of Ubuntu, but is offered by Canonical and the
    43 ## respective vendors as a service to Ubuntu users.
    44 deb http://archive.canonical.com/ubuntu/ focal partner
    45 deb-src http://archive.canonical.com/ubuntu/ focal partner
    46
    47 deb http://security.ubuntu.com/ubuntu/ focal-security main restricted
    48 deb-src http://archive.ubuntu.com/ubuntu focal-security restricted main
    49 deb http://security.ubuntu.com/ubuntu/ focal-security universe
    50 deb-src http://archive.ubuntu.com/ubuntu focal-security universe
    51 deb http://security.ubuntu.com/ubuntu/ focal-security multiverse
    52 deb-src http://archive.ubuntu.com/ubuntu focal-security multiverse
    53
    54 # This system was installed using small removable media
    55 # (e.g. netinst, live or single CD). The matching "deb cdrom"
    56 # entries were disabled at the end of the installation process.
    57 # For information about how to configure apt package sources,
    58 # see the sources.list(5) manual.
    59 deb https://dl.winehq.org/wine-builds/ubuntu/ focal main
    60 deb-src https://dl.winehq.org/wine-builds/ubuntu/ focal main
    61 deb https://dl.winehq.org/wine-builds/ubuntu/ impish main
    62 deb-src https://dl.winehq.org/wine-builds/ubuntu/ impish main
    63
    64
    65 deb https://dl.winehq.org/wine-builds/ubuntu/ groovy main
    66 # deb-src https://dl.winehq.org/wine-builds/ubuntu/ groovy main
    67 # deb-src https://dl.winehq.org/wine-builds/ubuntu/ focal main

/etc/apt/sources.list.d/git-core-ubuntu-ppa-focal.list

     1 # deb http://ppa.launchpad.net/git-core/ppa/ubuntu/ focal main
     2 # deb-src http://ppa.launchpad.net/git-core/ppa/ubuntu/ focal main
     3
     4

/etc/apt/sources.list.d/vscode.list

     1 ###
     2 ###
     3 ### THIS FILE IS AUTOMATICALLY CONFIGURED ###
     4 # You may comment out this entry, but any other modifications may be lost.
     5 deb [arch=amd64,arm64,armhf] http://packages.microsoft.com/repos/code/ stable main
     6
     7

/etc/apt/sources.list.d/google-chrome.list

     1 ###
     2 ###
     3 ### THIS FILE IS AUTOMATICALLY CONFIGURED ###
     4 # You may comment out this entry, but any other modifications may be lost.
     5 deb [arch=amd64] https://dl.google.com/linux/chrome/deb/ stable main
     6
     7
rem@rem-XPS-15-9560:~$ sudo dpkg --audit
rem@rem-XPS-15-9560:~$

Question information

Language:
English Edit question
Status:
Solved
For:
Ubuntu apt Edit question
Assignee:
No assignee Edit question
Solved by:
actionparsnip
Solved:
Last query:
Last reply:
Revision history for this message
Manfred Hampl (m-hampl) said :
#1

Your output does not show any problem any more (after running the troubleshooting procedure).

If you still encounter broken packages, then please provide more details (e.g. the package names mentioned in the error message).

Revision history for this message
Remz (melly23) said :
#2

I'm trying to install wine from synaptic. the error message i get is : 'could not apply changes fi broken packages first',
unfortunately, it doesn't list what packages need fixing. I then go to edit > fix broken packages and then get the error of:

'E: Unable to correct problems, you have held broken packages.
E: Error, pkgProblemResolver::Resolve generated breaks, this may be caused by held packages.
E: Unable to correct dependencies
E: Error, pkgProblemResolver::Resolve generated breaks, this may be caused by held packages.
E: Unable to correct dependencies'

i have tried to install through terminal and get the error of:

rem@rem-XPS-15-9560:~$ sudo apt install --install-recommends winehq-stable
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.
 winehq-stable : Depends: wine-stable (= 7.0.0.0~impish-1)
E: Unable to correct problems, you have held broken packages.

Revision history for this message
actionparsnip (andrew-woodhead666) said :
#3

What is the output of

apt-cache policy winehq-stable

Thanks

Revision history for this message
Remz (melly23) said :
#4

rem@rem-XPS-15-9560:~$ sudo apt-cache policy winehq-stable
winehq-stable:
  Installed: (none)
  Candidate: 7.0.0.0~impish-1
  Version table:
     7.0.0.0~impish-1 500
        500 https://dl.winehq.org/wine-builds/ubuntu impish/main amd64 Packages
     7.0.0.0~focal-1 500
        500 https://dl.winehq.org/wine-builds/ubuntu focal/main amd64 Packages
     6.0.2~impish-1 500
        500 https://dl.winehq.org/wine-builds/ubuntu impish/main amd64 Packages
     6.0.2~focal-1 500
        500 https://dl.winehq.org/wine-builds/ubuntu focal/main amd64 Packages
     6.0.1~groovy-1 500
        500 https://dl.winehq.org/wine-builds/ubuntu groovy/main amd64 Packages
     6.0.1~focal-1 500
        500 https://dl.winehq.org/wine-builds/ubuntu focal/main amd64 Packages
     6.0.0~groovy-1 500
        500 https://dl.winehq.org/wine-builds/ubuntu groovy/main amd64 Packages
     6.0.0~focal-1 500
        500 https://dl.winehq.org/wine-builds/ubuntu focal/main amd64 Packages
     5.0.4~groovy-1 500
        500 https://dl.winehq.org/wine-builds/ubuntu groovy/main amd64 Packages
     5.0.4~focal-1 500
        500 https://dl.winehq.org/wine-builds/ubuntu focal/main amd64 Packages
     5.0.3~groovy 500
        500 https://dl.winehq.org/wine-builds/ubuntu groovy/main amd64 Packages
     5.0.3~focal 500
        500 https://dl.winehq.org/wine-builds/ubuntu focal/main amd64 Packages
     5.0.2~focal 500
        500 https://dl.winehq.org/wine-builds/ubuntu focal/main amd64 Packages
     5.0.1~focal 500
        500 https://dl.winehq.org/wine-builds/ubuntu focal/main amd64 Packages
     4.0.4~focal 500
        500 https://dl.winehq.org/wine-builds/ubuntu focal/main amd64 Packages

Revision history for this message
Best actionparsnip (andrew-woodhead666) said :
#5

OK... Remove the wine PPA. Does wine install OK then?

Revision history for this message
Remz (melly23) said :
#6

Thanks actionparsnip, that solved my question.

Revision history for this message
Remz (melly23) said :
#7

thank you so much ive been trying to sort this for hours i really appreciate your help