Can't upgrade packages at all

SYSTEM INFORMATION
OS type and version Debian Linux 10
Webmin version 1.999
Virtualmin version 7.1-1

Hello !
I’m running into a problem … the system is throwing a lot of errors when using the Software Package Updates page .

The system is listing 119 packages to update, and when I select to update/install these updates , I get the following errors which makes the whole process fail … :slight_smile: If anyone has a clue ?

Thanks

Reading package lists...
Building dependency tree...
Reading state information...
The following packages were automatically installed and are no longer required:
  linux-image-4.19.0-13-amd64 linux-image-4.19.0-14-amd64
  linux-image-4.19.0-17-amd64
Use 'apt autoremove' to remove them.
The following additional packages will be installed:
  linux-image-4.19.0-22-amd64
Suggested packages:
  bind9-doc dnsutils resolvconf bzip2-doc libclamunrar daemon
  default-dbus-session-bus | dbus-session-bus dovecot-gssapi dovecot-ldap
  dovecot-lmtpd dovecot-lucene dovecot-managesieved dovecot-mysql
  dovecot-pgsql dovecot-sieve dovecot-solr dovecot-sqlite dovecot-submissiond
  ntp multiboot-doc grub-emu mtools xorriso desktop-base avahi-autoipd
  isc-dhcp-client-ddns glibc-doc libclamunrar9 gnutls-bin krb5-doc krb5-user
  linux-doc-4.19 debian-kernel-handbook php-user-cache mailx mariadb-test
  netcat-openbsd tinyca nginx-doc postfix-mysql postfix-pgsql postfix-ldap
  postfix-lmdb postfix-sqlite postfix-cdb mail-reader postfix-doc
  python3.7-venv python3.7-doc binfmt-support ctags vim-doc vim-scripts indent
The following NEW packages will be installed:
  linux-image-4.19.0-22-amd64
The following packages will be upgraded:
  base-files bind9 bind9-host bind9utils bzip2 clamav clamav-base
  clamav-daemon clamav-docs clamav-freshclam clamav-testfiles clamdscan curl
  dbus distro-info-data dovecot-core dovecot-imapd dovecot-pop3d galera-4
  grub-common grub-pc grub-pc-bin grub2-common isc-dhcp-client isc-dhcp-common
  krb5-locales libbind9-161 libbz2-1.0 libc-bin libc-dev-bin libc-l10n libc6
  libc6-dev libclamav9 libcurl3-gnutls libcurl4 libdbus-1-3 libdns-export1104
  libdns1104 libexpat1 libfreetype6 libglib2.0-0 libglib2.0-bin
  libglib2.0-data libgnutls30 libgssapi-krb5-2 libhttp-daemon-perl
  libisc-export1100 libisc1100 libisccc161 libisccfg163 libk5crypto3 libkrb5-3
  libkrb5support0 libksba8 liblwres161 libmariadb3 libncurses6 libncursesw6
  libnet-ssleay-perl libnginx-mod-http-auth-pam libnginx-mod-http-dav-ext
  libnginx-mod-http-echo libnginx-mod-http-geoip
  libnginx-mod-http-image-filter libnginx-mod-http-subs-filter
  libnginx-mod-http-upstream-fair libnginx-mod-http-xslt-filter
  libnginx-mod-mail libnginx-mod-stream libpython3.7-minimal
  libpython3.7-stdlib libsqlite3-0 libtinfo6 libtirpc-common libtirpc3
  libxslt1.1 linux-image-amd64 linux-libc-dev locales lsphp74 lsphp74-common
  lsphp74-curl lsphp74-imap lsphp74-json lsphp74-mysql lsphp74-opcache
  mariadb-client mariadb-client-10.4 mariadb-client-core-10.4 mariadb-common
  mariadb-server mariadb-server-10.4 mariadb-server-core-10.4 mysql-common
  ncurses-base ncurses-bin ncurses-term nginx-common nginx-full postfix
  postfix-pcre procmail publicsuffix python3.7 python3.7-minimal tzdata unrar
  unzip usermin vim vim-common vim-runtime vim-tiny webmin
  webmin-virtual-server webmin-virtualmin-nginx xxd zlib1g
119 upgraded, 1 newly installed, 0 to remove and 0 not upgraded.
Need to get 25.6 MB/191 MB of archives.
After this operation, 275 MB of additional disk space will be used.
Get:1 https://mirror.download.it/mariadb/repo/10.4/debian buster/main amd64 mysql-common all 1:10.4.27+maria~deb10 [5560 B]
Get:2 https://mirror.download.it/mariadb/repo/10.4/debian buster/main amd64 mariadb-common all 1:10.4.27+maria~deb10 [3536 B]
Get:3 https://mirror.download.it/mariadb/repo/10.4/debian buster/main amd64 mariadb-server all 1:10.4.27+maria~deb10 [3180 B]
Get:4 https://mirror.download.it/mariadb/repo/10.4/debian buster/main amd64 galera-4 amd64 26.4.13-buster [12.4 MB]
Get:5 https://mirror.download.it/mariadb/repo/10.4/debian buster/main amd64 mariadb-client all 1:10.4.27+maria~deb10 [3052 B]
Get:6 https://mirror.download.it/mariadb/repo/10.4/debian buster/main amd64 libmariadb3 amd64 1:10.4.27+maria~deb10 [148 kB]
Get:7 https://mirror.download.it/mariadb/repo/10.4/debian buster/main amd64 mariadb-client-core-10.4 amd64 1:10.4.27+maria~deb10 [774 kB]
Ign:1 https://mirror.download.it/mariadb/repo/10.4/debian buster/main amd64 mysql-common all 1:10.4.27+maria~deb10
Err:1 https://mirror.download.it/mariadb/repo/10.4/debian buster/main amd64 mysql-common all 1:10.4.27+maria~deb10
  File has unexpected size (28086 != 5560). Mirror sync in progress? File has unexpected size (28086 != 5560). Mirror sync in progress? [IP: 172.67.75.124 443]
Ign:2 https://mirror.download.it/mariadb/repo/10.4/debian buster/main amd64 mariadb-common all 1:10.4.27+maria~deb10
Err:2 https://mirror.download.it/mariadb/repo/10.4/debian buster/main amd64 mariadb-common all 1:10.4.27+maria~deb10
  File has unexpected size (28086 != 5560). Mirror sync in progress? File has unexpected size (28086 != 5560). Mirror sync in progress? [IP: 172.67.75.124 443]
Ign:3 https://mirror.download.it/mariadb/repo/10.4/debian buster/main amd64 mariadb-server all 1:10.4.27+maria~deb10
Err:3 https://mirror.download.it/mariadb/repo/10.4/debian buster/main amd64 mariadb-server all 1:10.4.27+maria~deb10
  File has unexpected size (28086 != 5560). Mirror sync in progress? File has unexpected size (28086 != 5560). Mirror sync in progress? [IP: 172.67.75.124 443]
Err:4 https://mirror.download.it/mariadb/repo/10.4/debian buster/main amd64 galera-4 amd64 26.4.13-buster
  File has unexpected size (28086 != 5560). Mirror sync in progress? File has unexpected size (28086 != 5560). Mirror sync in progress? [IP: 172.67.75.124 443]
  Hashes of expected file:
   - SHA256:d6490ef2d1a5e027f66b84cf5736870eb78be773eee71d205d39eb21ad4ad5e0
   - SHA1:ee88a45697b9649817b557802c3c520900bd2962 [weak]
   - MD5Sum:98a596987d00fcfe2471a907a177abfe [weak]
   - Filesize:12350092 [weak]
Ign:5 https://mirror.download.it/mariadb/repo/10.4/debian buster/main amd64 mariadb-client all 1:10.4.27+maria~deb10
Err:5 https://mirror.download.it/mariadb/repo/10.4/debian buster/main amd64 mariadb-client all 1:10.4.27+maria~deb10
  File has unexpected size (28086 != 5560). Mirror sync in progress? File has unexpected size (28086 != 5560). Mirror sync in progress? [IP: 172.67.75.124 443]
Err:6 https://mirror.download.it/mariadb/repo/10.4/debian buster/main amd64 libmariadb3 amd64 1:10.4.27+maria~deb10
  File has unexpected size (28086 != 5560). Mirror sync in progress? File has unexpected size (28086 != 5560). Mirror sync in progress? [IP: 172.67.75.124 443]
  Hashes of expected file:
   - SHA256:4927b2e6e52f86543c7ff029379631570c3127e0a31f8a0b61b911ecfea76561
   - SHA1:b026edbc9aaef8253b98c0c3d68dc989d7a147d7 [weak]
   - MD5Sum:0fcefd30356b0e6d383b6a2302de80f3 [weak]
   - Filesize:148428 [weak]
Err:7 https://mirror.download.it/mariadb/repo/10.4/debian buster/main amd64 mariadb-client-core-10.4 amd64 1:10.4.27+maria~deb10
  File has unexpected size (28086 != 5560). Mirror sync in progress? File has unexpected size (28086 != 5560). Mirror sync in progress? [IP: 172.67.75.124 443]
  Hashes of expected file:
   - SHA256:0785466fe6b76a85ad52254bf694a19ec8853b2bee5e8ade883535e450bb4e1c
   - SHA1:429dd3828d6dc183c10c1050a6382d7461a54e03 [weak]
   - MD5Sum:9bbc02647b3c266f816b9278eceec506 [weak]
   - Filesize:773928 [weak]
Err:8 https://mirror.download.it/mariadb/repo/10.4/debian buster/main amd64 mariadb-client-10.4 amd64 1:10.4.27+maria~deb10
  File has unexpected size (28086 != 5560). Mirror sync in progress? File has unexpected size (28086 != 5560). Mirror sync in progress? [IP: 172.67.75.124 443]
  Hashes of expected file:
   - SHA256:aee048cd354918915b73ed27eadf563f56fc52469aa60228225ffb625786dd3a
   - SHA1:c440760417f8afd88e38256ebe486dd716ad8dd8 [weak]
   - MD5Sum:7f44c8f53bea1747ec6f5fedf5784a7c [weak]
   - Filesize:1163288 [weak]
Get:9 https://mirror.download.it/mariadb/repo/10.4/debian buster/main amd64 mariadb-server-core-10.4 amd64 1:10.4.27+maria~deb10 [6385 kB]
Get:10 https://mirror.download.it/mariadb/repo/10.4/debian buster/main amd64 mariadb-server-10.4 amd64 1:10.4.27+maria~deb10 [4720 kB]
Err:9 https://mirror.download.it/mariadb/repo/10.4/debian buster/main amd64 mariadb-server-core-10.4 amd64 1:10.4.27+maria~deb10
  Hash Sum mismatch
  Hashes of expected file:
   - SHA256:72120b0a48f1d1e567f908e3d13a5415bf5c0edfb0800c8bbb9f53cf9a8490ec
   - SHA1:7b2ff735f3b68dffe49248a85d7bf183b7873149 [weak]
   - MD5Sum:0a41cb21f66e1ad2c4b58c401a9ffd4d [weak]
   - Filesize:6385304 [weak]
  Hashes of received file:
   - SHA256:3e5fb671f551a3e12efc5d3e5e1ba94c5c74bd41af2f677b8ebf79631f652ed2
   - SHA1:0e8ff54da53e638b2869f4ff97e8235fa087d521 [weak]
   - MD5Sum:2a9a4551492abccefc76320718c6df76 [weak]
   - Filesize:58094 [weak]
  Last modification reported: Fri, 02 Dec 2022 08:17:26 +0000
Err:10 https://mirror.download.it/mariadb/repo/10.4/debian buster/main amd64 mariadb-server-10.4 amd64 1:10.4.27+maria~deb10
  Hash Sum mismatch
  Hashes of expected file:
   - SHA256:8adceddbc18c7572a75747725eb6ff347df632ff79f3b408513c77ead2fa5893
   - SHA1:5e2c145cbaa576fad9564d8b550df0e3f4fac5d5 [weak]
   - MD5Sum:a4d5923e07deee7967212a5c1e2a2f3c [weak]
   - Filesize:4720028 [weak]
  Hashes of received file:
   - SHA256:3e5fb671f551a3e12efc5d3e5e1ba94c5c74bd41af2f677b8ebf79631f652ed2
   - SHA1:0e8ff54da53e638b2869f4ff97e8235fa087d521 [weak]
   - MD5Sum:2a9a4551492abccefc76320718c6df76 [weak]
   - Filesize:58094 [weak]
  Last modification reported: Fri, 02 Dec 2022 08:17:26 +0000
Fetched 58.1 kB in 2s (28.1 kB/s)
E: Failed to fetch http://mirror.jaleco.com/mariadb/repo/10.4/debian/pool/main/m/mariadb-10.4/mysql-common_10.4.27+maria~deb10_all.deb  File has unexpected size (28086 != 5560). Mirror sync in progress? File has unexpected size (28086 != 5560). Mirror sync in progress? [IP: 172.67.75.124 443]
E: Failed to fetch http://mirror.jaleco.com/mariadb/repo/10.4/debian/pool/main/m/mariadb-10.4/mariadb-common_10.4.27+maria~deb10_all.deb  File has unexpected size (28086 != 5560). Mirror sync in progress? File has unexpected size (28086 != 5560). Mirror sync in progress? [IP: 172.67.75.124 443]
E: Failed to fetch http://mirror.jaleco.com/mariadb/repo/10.4/debian/pool/main/m/mariadb-10.4/mariadb-server_10.4.27+maria~deb10_all.deb  File has unexpected size (28086 != 5560). Mirror sync in progress? File has unexpected size (28086 != 5560). Mirror sync in progress? [IP: 172.67.75.124 443]
E: Failed to fetch https://en.download.it/windows/development-software  File has unexpected size (28086 != 5560). Mirror sync in progress? File has unexpected size (28086 != 5560). Mirror sync in progress? [IP: 172.67.75.124 443]
   Hashes of expected file:
    - SHA256:d6490ef2d1a5e027f66b84cf5736870eb78be773eee71d205d39eb21ad4ad5e0
    - SHA1:ee88a45697b9649817b557802c3c520900bd2962 [weak]
    - MD5Sum:98a596987d00fcfe2471a907a177abfe [weak]
    - Filesize:12350092 [weak]
E: Failed to fetch http://mirror.jaleco.com/mariadb/repo/10.4/debian/pool/main/m/mariadb-10.4/mariadb-client_10.4.27+maria~deb10_all.deb  File has unexpected size (28086 != 5560). Mirror sync in progress? File has unexpected size (28086 != 5560). Mirror sync in progress? [IP: 172.67.75.124 443]
E: Failed to fetch https://en.download.it/windows/development-software  File has unexpected size (28086 != 5560). Mirror sync in progress? File has unexpected size (28086 != 5560). Mirror sync in progress? [IP: 172.67.75.124 443]
   Hashes of expected file:
    - SHA256:4927b2e6e52f86543c7ff029379631570c3127e0a31f8a0b61b911ecfea76561
    - SHA1:b026edbc9aaef8253b98c0c3d68dc989d7a147d7 [weak]
    - MD5Sum:0fcefd30356b0e6d383b6a2302de80f3 [weak]
    - Filesize:148428 [weak]
E: Failed to fetch https://en.download.it/windows/development-software  File has unexpected size (28086 != 5560). Mirror sync in progress? File has unexpected size (28086 != 5560). Mirror sync in progress? [IP: 172.67.75.124 443]
   Hashes of expected file:
    - SHA256:0785466fe6b76a85ad52254bf694a19ec8853b2bee5e8ade883535e450bb4e1c
    - SHA1:429dd3828d6dc183c10c1050a6382d7461a54e03 [weak]
    - MD5Sum:9bbc02647b3c266f816b9278eceec506 [weak]
    - Filesize:773928 [weak]
E: Failed to fetch https://en.download.it/windows/development-software  File has unexpected size (28086 != 5560). Mirror sync in progress? File has unexpected size (28086 != 5560). Mirror sync in progress? [IP: 172.67.75.124 443]
   Hashes of expected file:
    - SHA256:aee048cd354918915b73ed27eadf563f56fc52469aa60228225ffb625786dd3a
    - SHA1:c440760417f8afd88e38256ebe486dd716ad8dd8 [weak]
    - MD5Sum:7f44c8f53bea1747ec6f5fedf5784a7c [weak]
    - Filesize:1163288 [weak]
E: Failed to fetch https://en.download.it/windows/development-software  Hash Sum mismatch
   Hashes of expected file:
    - SHA256:72120b0a48f1d1e567f908e3d13a5415bf5c0edfb0800c8bbb9f53cf9a8490ec
    - SHA1:7b2ff735f3b68dffe49248a85d7bf183b7873149 [weak]
    - MD5Sum:0a41cb21f66e1ad2c4b58c401a9ffd4d [weak]
    - Filesize:6385304 [weak]
   Hashes of received file:
    - SHA256:3e5fb671f551a3e12efc5d3e5e1ba94c5c74bd41af2f677b8ebf79631f652ed2
    - SHA1:0e8ff54da53e638b2869f4ff97e8235fa087d521 [weak]
    - MD5Sum:2a9a4551492abccefc76320718c6df76 [weak]
    - Filesize:58094 [weak]
   Last modification reported: Fri, 02 Dec 2022 08:17:26 +0000
E: Failed to fetch https://en.download.it/windows/development-software  Hash Sum mismatch
   Hashes of expected file:
    - SHA256:8adceddbc18c7572a75747725eb6ff347df632ff79f3b408513c77ead2fa5893
    - SHA1:5e2c145cbaa576fad9564d8b550df0e3f4fac5d5 [weak]
    - MD5Sum:a4d5923e07deee7967212a5c1e2a2f3c [weak]
    - Filesize:4720028 [weak]
   Hashes of received file:
    - SHA256:3e5fb671f551a3e12efc5d3e5e1ba94c5c74bd41af2f677b8ebf79631f652ed2
    - SHA1:0e8ff54da53e638b2869f4ff97e8235fa087d521 [weak]
    - MD5Sum:2a9a4551492abccefc76320718c6df76 [weak]
    - Filesize:58094 [weak]
   Last modification reported: Fri, 02 Dec 2022 08:17:26 +0000
E: Unable to fetch some archives, maybe run apt-get update or try with --fix-missing?

@gonzague,

Bad mirrors from what it looks like.

thanks! Is there a safe way to edit them w/o breaking Virtualmin?

@gonzague,

The error gives you a suggestion that may be correct, the mirror(s) in question could be in the middle of a sync causing them to be temporary unusable.

You could try:

sudo apt-get clean
sudo apt-get update
sudo apt-get upgrade

*** from command line ***

Or wait a few days and see if the issue resolves itself.

If you want to adjust the mirrors, you could edit:

/etc/apt/sources.list

and/or an appropriate file from the directory:

/etc/apt/sources.list.d/

*** Once you’ve edited any of the files be sure to run the former commands so that changes are reflected ***

If any of these steps scare you, you can also hire me for an hour to address the issues for you.

*** Professional, Affordable, Trusted Technical Assistance – tpnAssist.com ***

thank you Peter. I found the culprit!

I had a mirror for MariaDB that was broken, mirror.jaleco.com which now points to mirror.download.it

I have replaced it with MariaDB’s official mirrors by commenting (#) the old one in mariadb_repo.list and running:

curl -sS https://downloads.mariadb.com/MariaDB/mariadb_repo_setup | sudo bash -s -- --mariadb-server-version="mariadb-10.4"

I was then able to run apt-get update and apt-get upgrade

This topic was automatically closed 8 days after the last reply. New replies are no longer allowed.