[SOLVED] Proxmox-mailgateway: not correctly installed after apt-get dist-upgrade

MDV

New Member
Dec 21, 2020
5
0
1
44
Hello!

Errors after upgrade from 6.2-3

root@pmg:~# pmgversion -v
proxmox-mailgateway: not correctly installed (API: 6.4-4/1c8a73c7, running kernel: 5.4.30-1-pve)
pmg-api: not correctly installed
pmg-gui: not correctly installed
pve-kernel-5.4.30-1-pve: 5.4.30-1
clamav-daemon: not correctly installed
libarchive-perl: 3.3.3-1
libjs-extjs: 6.0.1-10
libjs-framework7: 4.4.7-1
libpve-apiclient-perl: not correctly installed
libpve-common-perl: not correctly installed
libpve-http-server-perl: not correctly installed
libxdgmime-perl: 0.01-5
lvm2: 2.03.02-3
pmg-docs: 6.4-1
pmg-log-tracker: 2.2.0-1
postgresql-11: not correctly installed
proxmox-mini-journalreader: 1.1-1
proxmox-spamassassin: not correctly installed
proxmox-widget-toolkit: 2.6-1
pve-firmware: 3.2-4
pve-xtermjs: not correctly installed
zfsutils-linux: not correctly installed
root@pmg:~#
 
Please post the output of:
* `apt update`
* `apt full-upgrade`

That might help in narrowing this down
 
Please post the output of:
* `apt update`
* `apt full-upgrade`

That might help in narrowing this down
root@pmg:~# apt update
Hit:1 http://ftp.ru.debian.org/debian buster InRelease
Hit:2 http://ftp.ru.debian.org/debian buster-updates InRelease
Hit:3 http://security.debian.org buster/updates InRelease
Hit:4 http://download.proxmox.com/debian/pmg buster InRelease
Reading package lists... Done
Building dependency tree
Reading state information... Done
2 packages can be upgraded. Run 'apt list --upgradable' to see them.
root@pmg:~#


root@pmg:~# apt full-upgrade
E: Could not get lock /var/lib/dpkg/lock-frontend - open (11: Resource temporarily unavailable)
E: Unable to acquire the dpkg frontend lock (/var/lib/dpkg/lock-frontend), is another process using it?
root@pmg:~#
 
root@pmg:~# apt full-upgrade
E: Could not get lock /var/lib/dpkg/lock-frontend - open (11: Resource temporarily unavailable)
E: Unable to acquire the dpkg frontend lock (/var/lib/dpkg/lock-frontend), is another process using it?
root@pmg:~#
seems something else is currently holding the lock on the dpkg database? - check which process it is with `ps auxwf` - or try again later...

once the `apt full-upgrade` runs successfully - try installing the `proxmox-mailgateway` metapackage - `apt install proxmox-mailgateway`
(or if this is a container `apt install proxmox-mailgateway-container`)

I hope this helps!
 
  • Like
Reactions: quanto11
seems something else is currently holding the lock on the dpkg database? - check which process it is with `ps auxwf` - or try again later...
root@pmg:~# ps auxwf | grep dpkg
root 184884 0.0 0.0 6072 828 pts/3 S+ 11:44 0:00 \_ grep dpkg
root 151678 0.0 0.1 12684 5436 pts/1 Ss Sep08 0:00 \_ /usr/bin/dpkg --status-fd 23 --configure --pending
root 164052 0.0 0.5 26208 20604 pts/1 S Sep08 0:00 \_ /usr/bin/perl -w /usr/share/debconf/frontend /var/lib/dpkg/info/clamav-freshclam.postinst configure 0.102.2+dfsg-1~pmg1
root 164146 0.0 0.0 2384 1672 pts/1 S Sep08 0:00 \_ /bin/sh /var/lib/dpkg/info/clamav-freshclam.postinst configure 0.102.2+dfsg-1~pmg1
root@pmg:~#
 
Unfortunately, 'apt install proxmox-mailgateway' does't helped.
I used 'dpkg --configure -a' to reinstall clamav and freshclam.
Now all looks good!

root@pmg:~# pmgversion -v
proxmox-mailgateway: 6.4-1 (API: 6.4-4/1c8a73c7, running kernel: 5.4.128-1-pve)
pmg-api: 6.4-4
pmg-gui: 2.4-3
pve-kernel-5.4: 6.4-5
pve-kernel-helper: 6.4-5
pve-kernel-5.4.128-1-pve: 5.4.128-2
pve-kernel-5.4.30-1-pve: 5.4.30-1
clamav-daemon: 0.103.2+dfsg-0+deb10u1
libarchive-perl: 3.3.3-1
libjs-extjs: 6.0.1-10
libjs-framework7: 4.4.7-1
libpve-apiclient-perl: 3.1-3
libpve-common-perl: 6.4-3
libpve-http-server-perl: 3.2-3
libxdgmime-perl: 0.01-5
lvm2: 2.03.02-3
pmg-docs: 6.4-1
pmg-log-tracker: 2.2.0-1
postgresql-11: 11.12-0+deb10u1
proxmox-mini-journalreader: 1.1-1
proxmox-spamassassin: 3.4.6-1
proxmox-widget-toolkit: 2.6-1
pve-firmware: 3.2-4
pve-xtermjs: 4.7.0-3
zfsutils-linux: 2.0.5-pve1~bpo10+1
root@pmg:~#


Thank you!