[SOLVED] Cannot run apt update on my proxmox install on debian

stifado

New Member
Nov 22, 2019
4
0
1
44
Hi,

I have installed proxmox ve with the following version numbers:

Kernel Version

Linux 5.0.21-1-pve #1 SMP PVE 5.0.21-1
PVE Manager Version

pve-manager/6.0-6/c71f879f

and when I try to apt update my debian I get the following error:

Code:
Reading package lists... Done
Building dependency tree
Reading state information... Done
Calculating upgrade... 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:
 pve-firmware : Conflicts: firmware-linux-free but 3.4 is to be installed
E: Broken packages

how can I resolve this?

thank you
 
hi,

can you post:

* pveversion -v
* your apt lists in /etc/apt/sources.list and /etc/apt/sources.list.d/
* output of apt update

EDIT: quick explanation is, you have firmware-linux-free installed, which you shouldn't because pve provides it. that's why it conflicts. you can try removing it like apt remove firmware-linux-free
 
thank you for your quick reply

pveversion -v

Code:
proxmox-ve: 6.0-2 (running kernel: 5.0.21-1-pve)
pve-manager: 6.0-6 (running version: 6.0-6/c71f879f)
pve-kernel-5.0: 6.0-7
pve-kernel-helper: 6.0-7
pve-kernel-5.0.21-1-pve: 5.0.21-1
ceph-fuse: 12.2.11+dfsg1-2.1
corosync: 3.0.2-pve2
criu: 3.11-3
glusterfs-client: 5.5-3
libjs-extjs: 6.0.1-10
libknet1: 1.11-pve1
libpve-access-control: 6.0-2
libpve-apiclient-perl: 3.0-2
libpve-common-perl: 6.0-4
libpve-guest-common-perl: 3.0-1
libpve-http-server-perl: 3.0-2
libpve-storage-perl: 6.0-7
libqb0: 1.0.5-1
lvm2: 2.03.02-pve3
lxc-pve: 3.1.0-64
lxcfs: 3.0.3-pve60
novnc-pve: 1.0.0-60
proxmox-mini-journalreader: 1.1-1
proxmox-widget-toolkit: 2.0-7
pve-cluster: 6.0-5
pve-container: 3.0-5
pve-docs: 6.0-4
pve-edk2-firmware: 2.20190614-1
pve-firewall: 4.0-7
pve-firmware: 3.0-2
pve-ha-manager: 3.0-2
pve-i18n: 2.0-2
pve-qemu-kvm: 4.0.0-5
pve-xtermjs: 3.13.2-1
qemu-server: 6.0-7
smartmontools: 7.0-pve2
spiceterm: 3.1-1
vncterm: 1.6-1

cat /etc/apt/sources.list

Code:
deb http://mirror.hetzner.de/debian/packages buster main contrib non-free
deb http://mirror.hetzner.de/debian/security buster/updates main contrib non-free
deb http://mirror.hetzner.de/debian/packages buster-updates main contrib non-free

#

# deb cdrom:[Debian GNU/Linux 10.0.0 _Buster_ - Official amd64 NETINST 20190706-10:23]/ buster main

#deb cdrom:[Debian GNU/Linux 10.0.0 _Buster_ - Official amd64 NETINST 20190706-10:23]/ buster main

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

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

# buster-updates, previously known as 'volatile'
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

In /etc/apt/sources.list.d/ I have

cat pve-enterprise.list
deb https://enterprise.proxmox.com/debian/pve buster pve-enterprise

cat pve-install-repo.list
deb http://download.proxmox.com/debian/pve buster pve-no-subscription

and apt update results to

Code:
Hit:1 http://mirror.hetzner.de/debian/packages buster InRelease
Hit:2 http://mirror.hetzner.de/debian/security buster/updates InRelease
Hit:3 http://mirror.hetzner.de/debian/packages buster-updates InRelease
Hit:4 http://security.debian.org/debian-security buster/updates InRelease
Hit:5 http://deb.debian.org/debian buster InRelease
Hit:6 http://deb.debian.org/debian buster-updates InRelease
Hit:7 http://download.proxmox.com/debian/pve buster InRelease
Err:8 https://enterprise.proxmox.com/debian/pve buster InRelease
  401  Unauthorized [IP: 212.224.123.70 443]
Reading package lists... Done
E: Failed to fetch https://enterprise.proxmox.com/debian/pve/dists/buster/InRelease  401  Unauthorized [IP: 212.224.123.70 443]
E: The repository 'https://enterprise.proxmox.com/debian/pve 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.
 
hi,

Err:8 https://enterprise.proxmox.com/debian/pve buster InRelease 401 Unauthorized [IP: 212.224.123.70 443]
cat pve-enterprise.list
deb https://enterprise.proxmox.com/debian/pve buster pve-enterprise

first of all, remove the enterprise repository (i guess you don't have a subscription so it won't work).

check the output of apt policy firmware-linux-free

if it is installed, try to remove it with apt remove firmware-linux-free
 
Ok I removed the enterprise repository and now apt update finishes but I still cannot apt upgrade

apt policy firmware-linux-free

Code:
firmware-linux-free:
  Installed: (none)
  Candidate: 3.4
  Version table:
     3.4 500
        500 http://mirror.hetzner.de/debian/packages buster/main amd64 Packages
        500 http://deb.debian.org/debian buster/main amd64 Packages

apt remove firmware-linux-free

Code:
Reading package lists... Done
Building dependency tree
Reading state information... Done
Package 'firmware-linux-free' is not installed, so not removed
0 upgraded, 0 newly installed, 0 to remove and 127 not upgraded.
 
try to remove the debian kernel: apt remove linux-image-amd64 'linux-image-4.19*' and try again
 

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!