Upgrade mail gateway 7.1.1 -> 8?

spronger

New Member
Jul 19, 2023
8
2
3
Hello,

Running Mail Gateway 7.1.1 as a vm inside Proxmox VE 8.0

I having troubles to upgrade from 7.1.1 to version 8.0.

When tried update by Gui or by terminal with apt update & apt upgrade -y the system said it's up to date.

Can't upgrade.

If i fill in /etc/apt/sources.list

3.5.3. Proxmox Mail Gateway No-Subscription Repository​

As the name suggests, you do not need a subscription key to access this repository. It can be used for testing and non-production use. It’s not recommended to use this on production servers, as these packages are not always heavily tested and validated.
We recommend configuring this repository in /etc/apt/sources.list.
File /etc/apt/sources.list
deb http://ftp.debian.org/debian bookworm main contrib
deb http://ftp.debian.org/debian bookworm-updates main contrib

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

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

Receiving the following error when use apt update:

Hit:4 http://ftp.debian.org/debian bookworm-updates InRelease
Err:3 http://download.proxmox.com/debian/pmg bookworm InRelease
The following signatures couldn't be verified because the public key is not available: NO_PUBKEY 1140AF8F639E0C39
Reading package lists... Done
W: GPG error: http://download.proxmox.com/debian/pmg bookworm InRelease: The following signatures couldn't be verified because the public key is not available: NO_PUBKEY 1140AF8F639E0C39
E: The repository 'http://download.proxmox.com/debian/pmg bookworm 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.

Have somebody an solution for this?

Thanks in advance.
 
Last edited:
I found it, did get a lot of error messages. When i restored a snapshot tried whole new with adding the source.list and i also add

3.5.5. SecureApt​

We use GnuPG to sign the Release files inside these repositories, and APT uses these signatures to verify that all packages are from a trusted source.
The key used for verification is already installed, if you install from our installation CD. If you install via another means, you can manually download the key by executing the following command as root user:
# wget https://enterprise.proxmox.com/debian/proxmox-release-bookworm.gpg -O /etc/apt/trusted.gpg.d/proxmox-release-bookworm.gpg

The upgrade went fine now and is Mail Gateway 8.0.5 running.
 
  • Like
Reactions: Stoiko Ivanov
Hi,

I have been through your query. And let me try to solve this-

So according to me, you may follow these steps-

First, download the Proxmox public key using wget:

Code:
wget http://download.proxmox.com/debian/proxmox-ve-release-6.x.gpg -O /etc/apt/trusted.gpg.d/proxmox-ve-release-6.x.gpg

Note: This command is for Proxmox VE 6.x. Adjust the version in the filename according to your Proxmox VE version.

Now, set the owner and permissions on the downloaded key file:

Code:
chown root:root /etc/apt/trusted.gpg.d/proxmox-ve-release-6.x.gpg
chmod 644 /etc/apt/trusted.gpg.d/proxmox-ve-release-6.x.gpg

After that, you can update your system and upgrade:

Code:
apt update
apt upgrade -y

In case you have more Proxmox repositories, you might consider to use pve-no-subscription repository instead of pmg-no-subscription. That repository contains all packages you need for running Proxmox VE (including all dependencies).

I hope it works

Best regards.
 
Hi Raavikant,

Thanks for your answer. I was forgotten to get the "secureapt" string on the mailgateway system when i did that and with the updated sources.list i had no problems anymore with the update / upgrade to version 8.

It's now running 8.0.5 fine for a couple off days.

Best regards.
 

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!