[SOLVED] proxmox-mailgateway : Depends: pmg-api but it is not going to be installed

guestfish

New Member
Feb 6, 2021
27
4
3
Hello,
Cant install pmg on debian buster, here is details;

hostnamectl
Static hostname: mx01
Icon name: computer-vm
Chassis: vm
Machine ID: e684c3ae1a0040fbadd620f34e72fc82
Boot ID: eb58269c01cb487186e130fda13c4187
Virtualization: kvm
Operating System: Debian GNU/Linux 10 (buster)
Kernel: Linux 4.19.0-14-amd64
Architecture: x86-64

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:
proxmox-mailgateway : Depends: pmg-api but it is not going to be installed
E: Unable to correct problems, you have held broken packages.
 
please post your repository config and the output of the attempted installation:
Code:
grep '' /etc/apt/sources.list
grep '' /etc/apt/sources.list.d
apt update
apt install proxmox-mailgateway

it seems this is a KVM-VM - on what kind of virtualization are you running?
 
please post your repository config and the output of the attempted installation:
Code:
grep '' /etc/apt/sources.list
grep '' /etc/apt/sources.list.d
apt update
apt install proxmox-mailgateway

it seems this is a KVM-VM - on what kind of virtualization are you running?
Hello, yep its vm under kvm, here is result:

grep '' /etc/apt/sources.list
deb http://deb.debian.org/debian buster main contrib non-free
# deb-src http://deb.debian.org/debian buster main contrib non-free

deb http://deb.debian.org/debian buster-updates main contrib non-free
# deb-src http://deb.debian.org/debian buster-updates main contrib non-free

# deb http://deb.debian.org/debian buster-backports main contrib non-free
# deb-src http://deb.debian.org/debian buster-backports main contrib non-free

deb http://security.debian.org/ buster/updates main contrib non-free
# deb-src http://security.debian.org/ buster/updates main contrib non-free

deb http://ftp.debian.org/debian buster main contrib

# PMG pmg-no-subscription repository provided by proxmox.com,
# NOT recommended for production use
deb http://download.proxmox.com/debian/pmg buster pmg-no-subscription

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


apt update && apt install proxmox-mailgateway
Hit:1 http://deb.debian.org/debian buster InRelease
Hit:2 http://deb.debian.org/debian buster-updates InRelease
Hit:3 http://security.debian.org buster/updates InRelease
Hit:4 http://security.debian.org/debian-security buster/updates InRelease
Hit:5 http://download.proxmox.com/debian/pmg buster InRelease
Hit:6 http://ftp.debian.org/debian buster InRelease
Hit:7 http://mirror.hetzner.de/debian/packages buster InRelease
Hit:8 http://mirror.hetzner.de/debian/packages buster-updates InRelease
Hit:9 http://mirror.hetzner.de/debian/packages buster-backports InRelease
Hit:10 http://mirror.hetzner.de/debian/security buster/updates InRelease
Reading package lists... Done
Building dependency tree
Reading state information... Done
All packages are up to date.
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:
proxmox-mailgateway : Depends: pmg-api but it is not going to be installed
E: Unable to correct problems, you have held broken packages.
 
hmm - what's the output of
`apt install pmg-api` ?
 
hmm - what's the output of
`apt install pmg-api` ?
apt install pmg-api
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:
pmg-api : Depends: postfix (>= 2.5.5) but it is not going to be installed
E: Unable to correct problems, you have held broken packages.
 
seems the debian mirror you have configured (not the one for PMG but the one for upstream debian) has a problem or your package state on the VM is off in some other way:
Code:
dpkg --configure -a
apt install postfix
apt install proxmox-mailgateway

if this does not work you need to check what's wrong with the postfix candidate on the mirror you've configured:
Code:
apt-cache policy postfix
 
  • Like
Reactions: guestfish
seems the debian mirror you have configured (not the one for PMG but the one for upstream debian) has a problem or your package state on the VM is off in some other way:
Code:
dpkg --configure -a
apt install postfix
apt install proxmox-mailgateway

if this does not work you need to check what's wrong with the postfix candidate on the mirror you've configured:
Code:
apt-cache policy postfix
seems the debian mirror you have configured (not the one for PMG but the one for upstream debian) has a problem or your package state on the VM is off in some other way:
Code:
dpkg --configure -a
apt install postfix
apt install proxmox-mailgateway

this fixed issue, great, thank you
 
  • Like
Reactions: Stoiko Ivanov
hostname lookup 'mx01' failed - got local IP address ''
seems something is wrong with your hostname/ip configuration...
check /etc/hostname, /etc/hosts and make sure that the system gets an IP address (not in 127.0.0.1/8) when it looks up its hostname
iow: `ping -c1 $(uname -n)` needs to work and show the IP of PMG
 
  • Like
Reactions: guestfish
seems something is wrong with your hostname/ip configuration...
check /etc/hostname, /etc/hosts and make sure that the system gets an IP address (not in 127.0.0.1/8) when it looks up its hostname
iow: `ping -c1 $(uname -n)` needs to work and show the IP of PMG
yes, changed /etc/hosts now works, was ip 127.0.0.1 changed to iface ip, thank you for help
 

About

The Proxmox community has been around for many years and offers help and support for Proxmox VE, Proxmox Backup Server, and Proxmox Mail Gateway.
We think our community is one of the best thanks to people like you!

Get your subscription!

The Proxmox team works very hard to make sure you are running the best software and getting stable updates and security enhancements, as well as quick enterprise support. Tens of thousands of happy customers have a Proxmox subscription. Get yours easily in our online shop.

Buy now!