[SOLVED] dist-upgrade error

lilp

Renowned Member
Feb 10, 2016
63
1
73
36
Hello,
I'm on
Linux Proxmox 4.15.18-20-pve #1 SMP PVE 4.15.18-46 (Thu, 8 Aug 2019 10:42:06 +0200) x86_64 GNU/Linux
, when I try to make a dist-upgrade, I've the following issue :
You are attempting to remove the meta-package 'proxmox-ve'!

With my sources.list like :
Code:
deb http://ftp.debian.org/debian stretch main contrib

deb http://download.proxmox.com/debian/pve stretch pve-no-subscription

deb [arch=amd64] https://download.docker.com/linux/debian stretch stable

# deb-src [arch=amd64] https://download.docker.com/linux/debian stretch stable

I have issue :
Skipping acquire of configured file 'pve-no-subscription/binary-i386/Packages' as repository 'http://download.proxmox.com/debian/pve stretch InRelease' doesn't support architecture 'i386'

With sources.list like :
Code:
deb http://ftp.debian.org/debian stretch main contrib

#deb http://download.proxmox.com/debian/pve stretch pve-no-subscription

deb [arch=amd64] https://download.docker.com/linux/debian stretch stable

# deb-src [arch=amd64] https://download.docker.com/linux/debian stretch stable

Still have : You are attempting to remove the meta-package 'proxmox-ve'!

Don't know how to upgrade my server.

Thanks for your help
 
You APT seems to think you're running on a 32 bit machine? We only support 64 bit systems, which is why it's telling you that it has to remove all PVE packages.

Try the dist-upgrade with the following line in your sources:
Code:
deb [arch=amd64] http://download.proxmox.com/debian/pve stretch pve-no-subscription


Don't forget to run apt update after any changes. Also check your /etc/apt/sources.list.d/ directory for files, these are treated just like entries in sources.list
 
Thanks for your anser.
I mv /etc/apt/sources.list.d/pve-no-subscription to backup folder. And modify sources.list by :
Code:
deb http://ftp.debian.org/debian stretch main contrib
deb [arch=amd64] http://download.proxmox.com/debian/pve stretch pve-no-subscription
#deb [arch=amd64] https://download.docker.com/linux/debian stretch stable
# deb-src [arch=amd64] https://download.docker.com/linux/debian stretch stable

But still have this issue :
!! WARNING !!
W: (pve-apt-hook) You are attempting to remove the meta-package 'proxmox-ve'!
W: (pve-apt-hook)
W: (pve-apt-hook) If you really want to permanently remove 'proxmox-ve' from your system, run the following command
W: (pve-apt-hook) touch '/please-remove-proxmox-ve'
W: (pve-apt-hook) run apt purge proxmox-ve to remove the meta-package
W: (pve-apt-hook) and repeat your apt invocation.
 
Could you post the full output of running 'apt update' on your node? As well as a 'pveversion -v'?
 
Here it's my apt-get update :
Code:
Ign:1 http://dl.google.com/linux/chrome/deb stable InRelease
Ign:2 http://deb.debian.org/debian stretch InRelease
Ign:3 http://ftp.debian.org/debian stretch InRelease
Atteint:4 http://dl.google.com/linux/chrome/deb stable Release
Atteint:5 http://deb.debian.org/debian stretch Release
Atteint:6 http://ftp.debian.org/debian stretch Release
Ign:8 http://repo.vivaldi.com/stable/deb stable InRelease
Réception de:9 http://repo.vivaldi.com/stable/deb stable Release [3 831 B]
Réception de:11 http://repo.vivaldi.com/stable/deb stable Release.gpg [833 B]
Atteint:12 https://repo.nordvpn.com/deb/nordvpn/debian stable InRelease
Réception de:14 http://repo.vivaldi.com/stable/deb stable/main i386 Packages [1 421 B]
Atteint:15 http://download.proxmox.com/debian/pve stretch InRelease
Réception de:16 http://repo.vivaldi.com/stable/deb stable/main amd64 Packages [1 425 B]
7 510 o réceptionnés en 0s (11,2 ko/s)
Lecture des listes de paquets…

And my pveversion -v :
Code:
proxmox-ve: 5.4-2 (running kernel: 4.15.18-20-pve)
pve-manager: 5.4-13 (running version: 5.4-13/aee6f0ec)
pve-kernel-4.15: 5.4-8
pve-kernel-4.15.18-20-pve: 4.15.18-46
pve-kernel-4.15.18-18-pve: 4.15.18-44
pve-kernel-4.15.18-17-pve: 4.15.18-43
pve-kernel-4.15.18-16-pve: 4.15.18-41
pve-kernel-4.15.18-15-pve: 4.15.18-40
pve-kernel-4.15.18-14-pve: 4.15.18-39
pve-kernel-4.15.18-8-pve: 4.15.18-28
pve-kernel-4.15.18-5-pve: 4.15.18-24
pve-kernel-4.15.18-4-pve: 4.15.18-23
pve-kernel-4.15.17-3-pve: 4.15.17-14
pve-kernel-4.15.17-2-pve: 4.15.17-10
pve-kernel-4.15.17-1-pve: 4.15.17-9
pve-kernel-4.13.16-4-pve: 4.13.16-51
pve-kernel-4.13.16-3-pve: 4.13.16-50
pve-kernel-4.13.16-2-pve: 4.13.16-48
pve-kernel-4.13.16-1-pve: 4.13.16-46
pve-kernel-4.13.13-5-pve: 4.13.13-38
pve-kernel-4.13.8-3-pve: 4.13.8-30
pve-kernel-4.13.8-2-pve: 4.13.8-28
pve-kernel-4.13.4-1-pve: 4.13.4-26
ceph: 10.2.11-2
corosync: 2.4.4-pve1
criu: 2.11.1-1~bpo90
glusterfs-client: 3.8.8-1
ksm-control-daemon: not correctly installed
libjs-extjs: 6.0.1-2
libpve-access-control: 5.1-12
libpve-apiclient-perl: 2.0-5
libpve-common-perl: 5.0-55
libpve-guest-common-perl: 2.0-20
libpve-http-server-perl: 2.0-14
libpve-storage-perl: 5.0-44
libqb0: 1.0.3-1~bpo9
lvm2: 2.02.168-pve6
lxc-pve: 3.1.0-7
lxcfs: 3.0.3-pve1
novnc-pve: 1.0.0-3
proxmox-widget-toolkit: 1.0-28
pve-cluster: 5.0-38
pve-container: 2.0-40
pve-docs: 5.4-2
pve-edk2-firmware: 1.20190312-1
pve-firewall: 3.0-22
pve-firmware: 2.0-7
pve-ha-manager: 2.0-9
pve-i18n: 1.1-4
pve-libspice-server1: 0.14.1-2
pve-qemu-kvm: 3.0.1-4
pve-xtermjs: 3.12.0-1
qemu-server: 5.0-54
smartmontools: 6.5+svn4324-1
spiceterm: 3.0-5
vncterm: 1.5-3
zfsutils-linux: 0.7.13-pve1~bpo2
 
With the stacl solution, I've :
dpkg --remove-architecture i386
dpkg: erreur: impossible de supprimer l'architecture « i386 »actuellement utilisée dans la base de données
 
I disable this repo, but still have issue when I try dist-upgrade :

Code:
 !! WARNING !!
W: (pve-apt-hook) You are attempting to remove the meta-package 'proxmox-ve'!
W: (pve-apt-hook)
W: (pve-apt-hook) If you really want to permanently remove 'proxmox-ve' from your system, run the following command
W: (pve-apt-hook)       touch '/please-remove-proxmox-ve'
W: (pve-apt-hook) run apt purge proxmox-ve to remove the meta-package
W: (pve-apt-hook) and repeat your apt invocation.
W: (pve-apt-hook)
W: (pve-apt-hook) If you are unsure why 'proxmox-ve' would be removed, please verify
W: (pve-apt-hook)       - your APT repository settings
W: (pve-apt-hook)       - that you are using 'apt full-upgrade' to upgrade your system
E: Le sous-processus /usr/share/proxmox-ve/pve-apt-hook a renvoyé un code d'erreur (1)
E: Failure running script /usr/share/proxmox-ve/pve-apt-hook
 
Could you try removing all non-default sources in both 'sources.list' and 'sources.list.d/*' and then running 'apt update'/'apt dist-upgrade' again?

E.g. a clean (default) sources.list looks like this:
Code:
deb http://deb.debian.org/debian stretch main contrib
deb http://deb.debian.org/debian stretch-updates main contrib
deb http://security.debian.org stretch/updates main contrib
deb http://download.proxmox.com/debian/pve stretch pve-no-subscription
 
My sources.list.d folder :
base.list
base.list.save
google-chrome.list
google-chrome.list.save

My sources.list file :
#deb http://ftp.debian.org/debian stretch main contrib
#deb [arch=amd64] http://download.proxmox.com/debian/pve stretch pve-no-subscription
#deb [arch=amd64] https://download.docker.com/linux/debian stretch stable
# deb-src [arch=amd64] https://download.docker.com/linux/debian stretch stable
#deb http://deb.debian.org/debian stretch main contrib
deb http://deb.debian.org/debian stretch-updates main contrib
deb http://security.debian.org stretch/updates main contrib
deb http://download.proxmox.com/debian/pve stretch pve-no-subscription


Style the error with Proxmox :
If you really want to permanently remove 'proxmox-ve' from your system, run the following command
W: (pve-apt-hook) touch '/please-remove-proxmox-ve'
W: (pve-apt-hook) run apt purge proxmox-ve to remove the meta-package
W: (pve-apt-hook) and repeat your apt invocation.
W: (pve-apt-hook)
W: (pve-apt-hook) If you are unsure why 'proxmox-ve' would be removed, please verify
W: (pve-apt-hook) - your APT repository settings
W: (pve-apt-hook) - that you are using 'apt full-upgrade' to upgrade your system
E: Le sous-processus /usr/share/proxmox-ve/pve-apt-hook a renvoyé un code d'erreur (1)
E: Failure running script /usr/share/proxmox-ve/pve-apt-hook
 
Please try with exactly the sources.list file I provided - you seem to have included stretch-updates twice but not the stretch base repo. You can temporarily rename your existing file and create a new one to be save. Also, rename all files in your 'sources.list.d' folder to *not* end with .list, then try again.
 
Still the same issue with remove all files in sources.list.d and with same sources.list as you
 
Can you post the full output of running these commands:

Code:
export LANG=en_US.UTF-8
export LC_ALL=en_US.UTF-8

cat /etc/apt/sources.list
grep -R '' /etc/apt/sources.list.d

apt update
apt dist-upgrade
 
Here the output,
export LANG=en_US.UTF-8 : nothing
export LC_ALL=en_US.UTF-8 :
Code:
-bash: avertissement :setlocale : LC_ALL : impossible de changer le paramètre de langue (en_US.UTF-8)
Sources.list :
Code:
deb http://deb.debian.org/debian stretch main contrib
deb http://deb.debian.org/debian stretch-updates main contrib
deb http://security.debian.org stretch/updates main contrib
deb http://download.proxmox.com/debian/pve stretch pve-no-subscription


grep -R '' /etc/apt/sources.list.d : Nothing

apt-get update :
Code:
Hit:1 http://security.debian.org stretch/updates InRelease
Ign:2 http://deb.debian.org/debian stretch InRelease
Hit:3 http://deb.debian.org/debian stretch-updates InRelease
Hit:4 http://deb.debian.org/debian stretch Release
Hit:6 http://download.proxmox.com/debian/pve stretch InRelease
Reading package lists... Done

Apt-get dist-upgrade :
Code:
Hit:1 http://security.debian.org stretch/updates InRelease
Ign:2 http://deb.debian.org/debian stretch InRelease
Hit:3 http://deb.debian.org/debian stretch-updates InRelease
Hit:4 http://deb.debian.org/debian stretch Release
Hit:6 http://download.proxmox.com/debian/pve stretch InRelease
Reading package lists...
Reading package lists...
Building dependency tree...
Reading state information...
Calculating upgrade...
The following packages were automatically installed and are no longer required:
  apparmor bridge-utils criu dtach ebtables genisoimage ifenslave ipset
  libanyevent-http-perl libanyevent-perl libapparmor-perl libappconfig-perl
  libapt-pkg-perl libasync-interrupt-perl libev-perl libfdt1
  libfile-readbackwards-perl libgnutlsxx28 libguard-perl libio-multiplex-perl
  libipset3 libiscsi7 libjemalloc1 libjs-extjs libnet-dns-perl libnet1
  libnetfilter-log1 libprotobuf-c1 libpve-guest-common-perl
  libpve-http-server-perl libtemplate-perl libusbredirparser1
  libxml-libxml-perl lxc-pve lxcfs lzop net-tools novnc-pve numactl
  proxmox-mini-journalreader proxmox-widget-toolkit pve-container pve-docs
  pve-edk2-firmware pve-firewall pve-ha-manager pve-i18n pve-libspice-server1
  pve-manager pve-qemu-kvm pve-xtermjs python-ipaddr python-protobuf
  qemu-server socat spiceterm uidmap vncterm
Use 'apt autoremove' to remove them.
The following packages will be REMOVED:
  proxmox-ve pve-firmware pve-kernel-4.15
The following NEW packages will be installed:
  firmware-linux-free linux-headers-4.9.0-11-amd64
  linux-headers-4.9.0-11-common linux-image-4.9.0-11-amd64
  pve-kernel-4.15.18-21-pve
The following packages will be upgraded:
  linux-headers-amd64 linux-image-amd64
2 upgraded, 5 newly installed, 3 to remove and 0 not upgraded.
Need to get 0 B/100 MB of archives.
After this operation, 335 MB of additional disk space will be used.
Do you want to continue? [Y/n] Reading package lists...
Building dependency tree...
Reading state information...
Calculating upgrade...
The following packages were automatically installed and are no longer required:
  apparmor bridge-utils criu dtach ebtables genisoimage ifenslave ipset
  libanyevent-http-perl libanyevent-perl libapparmor-perl libappconfig-perl
  libapt-pkg-perl libasync-interrupt-perl libev-perl libfdt1
  libfile-readbackwards-perl libgnutlsxx28 libguard-perl libio-multiplex-perl
  libipset3 libiscsi7 libjemalloc1 libjs-extjs libnet-dns-perl libnet1
  libnetfilter-log1 libprotobuf-c1 libpve-guest-common-perl
  libpve-http-server-perl libtemplate-perl libusbredirparser1
  libxml-libxml-perl lxc-pve lxcfs lzop net-tools novnc-pve numactl
  proxmox-mini-journalreader proxmox-widget-toolkit pve-container pve-docs
  pve-edk2-firmware pve-firewall pve-ha-manager pve-i18n pve-libspice-server1
  pve-manager pve-qemu-kvm pve-xtermjs python-ipaddr python-protobuf
  qemu-server socat spiceterm uidmap vncterm
Use 'apt autoremove' to remove them.
The following packages will be REMOVED:
  proxmox-ve pve-firmware pve-kernel-4.15
The following NEW packages will be installed:
  firmware-linux-free linux-headers-4.9.0-11-amd64
  linux-headers-4.9.0-11-common linux-image-4.9.0-11-amd64
  pve-kernel-4.15.18-21-pve
The following packages will be upgraded:
  linux-headers-amd64 linux-image-amd64
2 upgraded, 5 newly installed, 3 to remove and 0 not upgraded.
Need to get 0 B/100 MB of archives.
After this operation, 335 MB of additional disk space will be used.
Do you want to continue? [Y/n] W: (pve-apt-hook) !! WARNING !!
W: (pve-apt-hook) You are attempting to remove the meta-package 'proxmox-ve'!
W: (pve-apt-hook)
W: (pve-apt-hook) If you really want to permanently remove 'proxmox-ve' from your system, run the following command
W: (pve-apt-hook)     touch '/please-remove-proxmox-ve'
W: (pve-apt-hook) run apt purge proxmox-ve to remove the meta-package
W: (pve-apt-hook) and repeat your apt invocation.
W: (pve-apt-hook)
W: (pve-apt-hook) If you are unsure why 'proxmox-ve' would be removed, please verify
W: (pve-apt-hook)     - your APT repository settings
W: (pve-apt-hook)     - that you are using 'apt full-upgrade' to upgrade your system
 
you have some incompatible packages installed, remove the first and try again.

Code:
apt remove linux-headers-amd64 linux-image-amd64 firmware-linux-free
apt dist-upgrade
 
  • Like
Reactions: lilp
Well, it's thats packages who was problems.

I haven't error message anymore for Proxmox.

Thanks
 

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!