[SOLVED] DigitaOcean Deployment

gob

Renowned Member
Aug 4, 2011
69
1
73
Chesterfield, United Kingdom
Hi

Has anyone successfully managed to install PMG on a DigitalOcean Droplet?
I have been trying on a Debian 10 droplet with the standard package and also the container package but with no luck. Keep getting this:

Code:
dpkg: error processing package pmg-api (--configure):
 installed pmg-api package post-installation script subprocess returned error exit status 22
dpkg: dependency problems prevent configuration of proxmox-mailgateway-container:
 proxmox-mailgateway-container depends on pmg-api; however:
  Package pmg-api is not configured yet.

dpkg: error processing package proxmox-mailgateway-container (--configure):
 dependency problems - leaving unconfigured
Processing triggers for systemd (241-7~deb10u2) ...
Processing triggers for mime-support (3.62) ...
Processing triggers for libc-bin (2.28-10) ...
Processing triggers for rsyslog (8.1901.0-1) ...
Errors were encountered while processing:
 pmg-api
 proxmox-mailgateway-container
E: Sub-process /usr/bin/dpkg returned an error code (1)
 
How did you try to install it?
Could you please post the ccomplete output of the apt run?

Thanks
 
  1. Created a clean Debian 10 droplet
  2. ran apt-get update and dist-upgrade
  3. added No-Subscription repo to apt list
  4. added GPG key
  5. apt-get install proxmox-mailgateway-container
This is as much output as I can grab from the console :
 

Attachments

  • PMG-install.log
    58.9 KB · Views: 18
hostname lookup failed - got local IP address (mail-gate1 = 127.0.1.1)

you need to edit your /etc/hosts file.

remove the entry with 127.0.1.1

add another entry: your.ip.address.here yourhostname

check with hostname --ip-address. should return the correct IP

also:

Code:
Err:5 https://enterprise.proxmox.com/debian/pmg buster InRelease                                    
  401  Unauthorized [IP: 212.224.123.70 443]

looks like you have the enterprise repo, but no key. if you don't have a subscription, use the no subscription repository[0]

[0]: https://pmg.proxmox.com/pmg-docs/pmg-admin-guide.html#pmg_package_repositories
 
Thanks Oguz

Yes the hostname fixed this. All seems to be working!
The package must have automatically added the enterprise repo as I only set up the no-subscription repo initially.

Cheers
 
The package must have automatically added the enterprise repo as I only set up the no-subscription repo initially.
weird, that didn't happen when i tested

Yes the hostname fixed this. All seems to be working!

great, glad to be of help

you can mark the thread as [SOLVED], it helps others who might have the same problem
 
Hello,
I have trying to do the same but Always get the message
Unable to locate package proxmox-mailgateway-container
added No-Subscription repo to apt list
apt-get install proxmox-mailgateway-container
any help please
 
@abuseif, did you do an apt update after adding the repository?
 
What's the output of apt update?
 
Get:1 http://security.ubuntu.com/ubuntu bionic-security InRelease [88.7 kB]
Hit:2 http://archive.canonical.com bionic InRelease
Hit:3 http://eg.archive.ubuntu.com/ubuntu bionic InRelease
Get:4 http://eg.archive.ubuntu.com/ubuntu bionic-updates InRelease [88.7 kB]
Get:5 http://security.ubuntu.com/ubuntu bionic-security/main amd64 DEP-11 Metadata [38.5 kB]
Get:6 http://eg.archive.ubuntu.com/ubuntu bionic-backports InRelease [74.6 kB]
Get:7 http://security.ubuntu.com/ubuntu bionic-security/main DEP-11 48x48 Icons [17.6 kB]
Get:8 http://security.ubuntu.com/ubuntu bionic-security/main DEP-11 64x64 Icons [41.5 kB]
Get:9 http://security.ubuntu.com/ubuntu bionic-security/universe amd64 DEP-11 Metadata [42.1 kB]
Get:10 http://security.ubuntu.com/ubuntu bionic-security/universe DEP-11 48x48 Icons [16.4 kB]
Get:11 http://security.ubuntu.com/ubuntu bionic-security/universe DEP-11 64x64 Icons [111 kB]
Get:12 http://security.ubuntu.com/ubuntu bionic-security/multiverse amd64 DEP-11 Metadata [2,464 B]
Get:13 http://ftp.debian.org/debian buster InRelease [122 kB]
Get:14 http://eg.archive.ubuntu.com/ubuntu bionic-updates/main i386 Packages [638 kB]
Err:13 http://ftp.debian.org/debian buster InRelease
The following signatures couldn't be verified because the public key is not available: NO_PUBKEY 04EE7237B7D453EC NO_PUBKEY 648ACFD622F3D138 NO_PUBKEY DCC9EFBF77E11517
Get:15 http://ftp.debian.org/debian buster-updates InRelease [49.3 kB]
Err:15 http://ftp.debian.org/debian buster-updates InRelease
The following signatures couldn't be verified because the public key is not available: NO_PUBKEY 04EE7237B7D453EC NO_PUBKEY 648ACFD622F3D138
Get:16 http://eg.archive.ubuntu.com/ubuntu bionic-updates/main amd64 Packages [844 kB]
Get:17 http://eg.archive.ubuntu.com/ubuntu bionic-updates/main Translation-en [295 kB]
Get:18 http://eg.archive.ubuntu.com/ubuntu bionic-updates/main amd64 DEP-11 Metadata [295 kB]
Get:19 http://eg.archive.ubuntu.com/ubuntu bionic-updates/main DEP-11 48x48 Icons [73.8 kB]
Get:20 http://eg.archive.ubuntu.com/ubuntu bionic-updates/main DEP-11 64x64 Icons [143 kB]
Get:21 http://eg.archive.ubuntu.com/ubuntu bionic-updates/universe amd64 Packages [1,046 kB]
Get:22 http://eg.archive.ubuntu.com/ubuntu bionic-updates/universe i386 Packages [1,005 kB]
Get:23 http://eg.archive.ubuntu.com/ubuntu bionic-updates/universe Translation-en [323 kB]
 
Hit:2 http://archive.canonical.com bionic InRelease
Hit:4 http://eg.archive.ubuntu.com/ubuntu bionic InRelease
Get:1 http://ftp.debian.org/debian buster InRelease [122 kB]
Hit:5 http://eg.archive.ubuntu.com/ubuntu bionic-updates InRelease
Hit:6 http://security.ubuntu.com/ubuntu bionic-security InRelease
Hit:7 http://eg.archive.ubuntu.com/ubuntu bionic-backports InRelease
Get:3 http://ftp.debian.org/debian buster-updates InRelease [49.3 kB]
Err:1 http://ftp.debian.org/debian buster InRelease
The following signatures couldn't be verified because the public key is not available: NO_PUBKEY 04EE7237B7D453EC NO_PUBKEY 648ACFD622F3D138 NO_PUBKEY DCC9EFBF77E11517
Err:3 http://ftp.debian.org/debian buster-updates InRelease
The following signatures couldn't be verified because the public key is not available: NO_PUBKEY 04EE7237B7D453EC NO_PUBKEY 648ACFD622F3D138
Reading package lists... Done
W: GPG error: http://ftp.debian.org/debian buster InRelease: The following signatures couldn't be verified because the public key is not available: NO_PUBKEY 04EE7237B7D453EC NO_PUBKEY 648ACFD622F3D138 NO_PUBKEY DCC9EFBF77E11517
E: The repository 'http://ftp.debian.org/debian buster InRelease' is not signed.
N: Updating from such a repository can't be done securely, and is therefore disabled by default.
N: See apt-secure(8) manpage for repository creation and user configuration details.
W: GPG error: http://ftp.debian.org/debian buster-updates InRelease: The following signatures couldn't be verified because the public key is not available: NO_PUBKEY 04EE7237B7D453EC NO_PUBKEY 648ACFD622F3D138
E: The repository 'http://ftp.debian.org/debian buster-updates InRelease' is not signed.
N: Updating from such a repository can't be done securely, and is therefore disabled by default.
N: See apt-secure(8) manpage for repository creation and user configuration details.
 
Thank you for your help, I took different route, I installed Proxmox Mail Gateway into a local virtual machine (virtual box) then I uploaded the VM to Digiatl ocean, then I changed the configuration files for the network interface for both the public IP and private ip, and managed to login the Proxmox mail gateway from the internet on Digital Ocean, the next step is to make it work with my email server (mail-in-box) which hosted in Digital Ocean as well, again thank you for your help and support
 

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!