[SOLVED] PMG update fails

adispy

New Member
Aug 14, 2023
6
1
3
Hi everyone,
I have a few updates for a long time and I can't manage to install them. I always install updates from the PMG console, but now it gets stuck at Removing pmg-api. After this, nothing works and I have to reboot, but after the reboot, the packager does not work anymore so I have to restore from backup or revert the snapshot to recover PMG machine.

I have these three updates:
2024-10-28_12-41-24.png

And this is where it gets stuck.
2024-10-28_12-39-17.png

Thanks in advance,
 
Hi,

seems you probably have you package repositores wrongly configured, as you are removing core PMG packages (pmg-api and proxmox-mailgateway). You should never blindly run upgrades without inspecting what will be done!

Can you post the output of tail -vn+0 /etc/apt/sources.list; tail -vn+0 /etc/apt/sources.list.d/*? (in code tags please!)
This will list all configured package repositories.

Also, we have a dedicated Package Repositories section in our admin guide covering on how to configure them correctly :)
 
Here are the results:

tail -vn+0 /etc/apt/sources.list
==> /etc/apt/sources.list <==
deb http://ftp.ro.debian.org/debian bookworm main contrib

deb http://ftp.ro.debian.org/debian bookworm-updates main contrib

# security updates
deb http://security.debian.org bookworm-security main contrib

# Proxmox non-production updates
deb http://download.proxmox.com/debian/pve bookworm pve-no-subscription


tail -vn+0 /etc/apt/sources.list.d/*
==> /etc/apt/sources.list.d/pmg-enterprise.list <==
# deb https://enterprise.proxmox.com/debian/pmg bookworm pmg-enterprise
 
# Proxmox non-production updates
deb http://download.proxmox.com/debian/pve bookworm pve-no-subscription
You have configured the repository for Proxmox VE, not Proxmox Mail Gateway.
You'll need the correct repositories as documented in our admin guide: Proxmox Mail Gateway No-Subscription Repository

Meaning, the last line in /etc/apt/sources.list should be
Code:
deb http://download.proxmox.com/debian/pmg bookworm pmg-no-subscription
 
Ohh man, didn't even noticed that. Thanks for the heads-up.

Working nice right. Much appreciate your help.
 
  • Like
Reactions: cheiss
Great!

Please just mark the thread as SOLVED by editing the first post, there should be a dropdown near the title field. That helps others find this thread more easily :)