Usermin/webmin upgrade bug on ubuntu

hi,

you botched somehow the upgrade packages. all my ubuntu 18.04 servers throwed this error tonight:

Log started: 2021-03-10  06:20:32
Preparing to unpack .../archives/usermin_1.823_all.deb ...
Unpacking usermin (1.823) over (1.820) ...
dpkg: error processing archive /var/cache/apt/archives/usermin_1.823_all.deb (--unpack):
 trying to overwrite '/usr/bin/webmin', which is also in package webmin 1.973
Usermin install complete. You can now login to https://v005:20000/
as any user on the system.
Errors were encountered while processing:
 /var/cache/apt/archives/usermin_1.823_all.deb
Log ended: 2021-03-10  06:20:45

Hi,

Thanks for the heads up!

This has been fixed just recently (4 hours ago). Run apt-get clean and try again.

followed by an

apt upgrade -y

it installs the updated version…

Hi

I did an
apt-get clean
apt update
apt ugrade
but still getting an error:

Preparing to unpack …/archives/webmin_1.973_all.deb …
Unpacking webmin (1.973) over (1.962) …
dpkg: error processing archive /var/cache/apt/archives/webmin_1.973_all.deb (–unpack):
trying to overwrite ‘/usr/bin/webmin’, which is also in package usermin 1.823
Webmin install complete. You can now login to
as root with your root password, or as any user who can use sudo
to run commands as root.
Errors were encountered while processing:
/var/cache/apt/archives/webmin_1.973_all.deb
[master 1f6852a] committing changes in /etc made by “apt upgrade”
91 files changed, 941 insertions(+), 941 deletions(-)
E: Sub-process /usr/bin/dpkg returned an error code (1)

This happens on Ubuntu 20.04.2

same upgrade bug applied to Debian 10, but can confirm it is now fixed.
thx :slight_smile:

no changes here on another host this morning on ubuntu 18.04

 Log started: 2021-03-11  06:30:37
    Preparing to unpack .../archives/webmin_1.973_all.deb ...
    Unpacking webmin (1.973) over (1.970) ...
    dpkg: error processing archive /var/cache/apt/archives/webmin_1.973_all.deb (--unpack):
     trying to overwrite '/usr/bin/webmin', which is also in package usermin 1.823
    Webmin install complete. You can now login to https://ds045:10030/
    as root with your root password, or as any user who can use sudo
    to run commands as root.
    Errors were encountered while processing:
     /var/cache/apt/archives/webmin_1.973_all.deb
    Log ended: 2021-03-11  06:32:50
1 Like

this breaks the update process for a lot of servers, can you please prioritise this?

mh… nothing?

Clear your apt cache. This problem has been fixed in our repos, to the best of my knowledge.

cache ist clean, but the problem persists:
root@ds045:~# apt clean
root@ds045:~# ls /var/cache/apt/archives
lock partial
root@ds045:~# apt update && apt upgrade -y
Hit:1 http://software.virtualmin.com/vm/6/gpl/apt virtualmin-bionic InRelease
Hit:2 http://archive.ubuntu.com/ubuntu bionic InRelease
Get:3 http://security.ubuntu.com/ubuntu bionic-security InRelease [88.7 kB]
Hit:4 http://ppa.launchpad.net/ondrej/php/ubuntu bionic InRelease
Hit:5 http://software.virtualmin.com/vm/6/gpl/apt virtualmin-universal InRelease
Get:6 http://archive.ubuntu.com/ubuntu bionic-updates InRelease [88.7 kB]
Ign:7 https://download.webmin.com/download/repository sarge InRelease
Hit:8 https://download.webmin.com/download/repository sarge Release
Hit:10 http://mirror.hetzner.de/ubuntu/packages bionic InRelease
Hit:11 http://mirror.hetzner.de/ubuntu/packages bionic-updates InRelease
Hit:12 http://mirror.hetzner.de/ubuntu/packages bionic-backports InRelease
Hit:13 http://mirror.hetzner.de/ubuntu/packages bionic-security InRelease
Fetched 177 kB in 16s (11.0 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:
borgbackup libb2-1 linux-image-4.15.0-135-generic linux-modules-4.15.0-135-generic python3-llfuse python3-msgpack python3-pika
Use ‘apt autoremove’ to remove them.
The following packages will be upgraded:
webmin
1 upgraded, 0 newly installed, 0 to remove and 0 not upgraded.
Need to get 28.8 MB of archives.
After this operation, 5,059 kB disk space will be freed.
Get:1 http://software.virtualmin.com/vm/6/gpl/apt virtualmin-universal/main amd64 webmin all 1.973 [28.8 MB]
Fetched 28.8 MB in 11s (2,596 kB/s)
(Reading database … 159813 files and directories currently installed.)
Preparing to unpack …/archives/webmin_1.973_all.deb …
Unpacking webmin (1.973) over (1.970) …
dpkg: error processing archive /var/cache/apt/archives/webmin_1.973_all.deb (–unpack):
trying to overwrite ‘/usr/bin/webmin’, which is also in package usermin 1.823
Webmin install complete. You can now login to https://ds045:10030/
as root with your root password, or as any user who can use sudo
to run commands as root.
Errors were encountered while processing:
/var/cache/apt/archives/webmin_1.973_all.deb
E: Sub-process /usr/bin/dpkg returned an error code (1)

Disable the download.webmin.com repository. I guess it has the old unfixed package, somehow. I don’t know, as I don’t manage that repo.

this didn’t help. aslso, I think the package is not downloaded from download.webmin.com:

Get:1 http://software.virtualmin.com/vm/6/gpl/apt virtualmin-universal/main amd64 webmin all 1.973 [28.8 MB]