Unable to parse codename from '/etc/os-release' (500) when using the Repositories Tab

fellpower

New Member
Oct 30, 2021
17
3
3
46
I installed Proxmox 7.3-4 - and all woks fine. After a few days i want to update my Installation.

if im hit the Repositories tab, i get the following error: Unable to parse codename from '/etc/os-release' (500)

In /etc there is a file called oc-releases - but there is a PGP key in? How this file should look like in my version?

mfg
Chris
 
  • Like
Reactions: pevelod
~# cat /etc/os-release
Code:
PRETTY_NAME="Debian GNU/Linux 11 (bullseye)"
NAME="Debian GNU/Linux"
VERSION_ID="11"
VERSION="11 (bullseye)"
VERSION_CODENAME=bullseye
ID=debian
HOME_URL="https://www.debian.org/"
SUPPORT_URL="https://www.debian.org/support"
BUG_REPORT_URL="https://bugs.debian.org/"
 
  • Like
Reactions: pevelod
My first Post in this Forum:

I am running proxmox 6.8.12-4-pve (ISO installation) when adding this:

OUTPUT# cat /etc/debian_version
12.8

I got different errors:

- GPG error: http://download.proxmox.com/debian buster InRelease: The following signatures couldn't be verified because the public key is not available: NO_PUBKEY
- The repository 'http://download.proxmox.com/debian stretch InRelease' is not signed.
- Could not open the repository section in Proxmox Management with error (500)

at the ende, the fix for me was to rename the os-release file:

Inside this file was a PGP-Key???
I think something went wron, during an update, modification or by a personal misstake from me

so I did:

# mv /etc/os-release /etc/os-release_backup

then generate a new file with:

# nano /etc/os-release

and paste the actual bookworm infos in it:

PRETTY_NAME="Debian GNU/Linux 12 (bookworm)"
NAME="Debian GNU/Linux"
VERSION_ID="12"
VERSION="12 (bookworm)"
VERSION_CODENAME=bookworm
ID=debian
HOME_URL="https://www.debian.org/"
SUPPORT_URL="https://www.debian.org/support"
BUG_REPORT_URL="https://bugs.debian.org/"

Saving by
STRG(CTRL) + O
ENTER
STRG(CTRL) + X

reboot and give the standart update-upgrade-autoremove a go:

# reboot
# apt-get update && apt-get upgrade -y && apt autoremove -y


after that, you maybe have to disable the https enterprise repos again.
But updates are available again and the repositories are manageable again in Proxmox website
 
Last edited:
My first Post in this Forum:
Welcome! Please open a new thread for a new problem. This thread is both old and it discusses a different problem! So your post will not get attention by a lot of readers...

buster InRelease: The following signatures couldn't be verified because the public key is not available: NO_PUBKEY

- The repository 'http://download.proxmox.com/debian stretch InRelease' is not signed.
Your installation is soooo old! Neither stretch nor buster have access to the "normal" repositories anymore! (bullseye is oldstable, and bookworm ist currently "stable".)

In your new thread describe more of your system to allow us to give some advice. And please use [code]...[/code] tags (for terminal output) for easier readability.
 
  • Like
Reactions: pevelod
Welcome! Please open a new thread for a new problem. This thread is both old and it discusses a different problem! So your post will not get attention by a lot of readers...


Your installation is soooo old! Neither stretch nor buster have access to the "normal" repositories anymore! (bullseye is oldstable, and bookworm ist currently "stable".)

In your new thread describe more of your system to allow us to give some advice. And please use [code]...[/code] tags (for terminal output) for easier readability.
OK.
Sorry for that.
I will keep it in mind for the future.

The reason, why I responded here, was this threat brought not the solution for me, but the final hint, so I could find the solution for myself
 
Last edited:
  • Like
Reactions: UdoB
  • Like
Reactions: UdoB

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!