[SOLVED] Installing ifupdown2 in PVE 6.2-4

tuathan

Member
May 23, 2020
52
6
8
I am trying to install ifupdown2 on my proxmox hosts but when I try to do it with apt I get the follow:

# apt install ifupdown2
Reading package lists... Done
Building dependency tree
Reading state information... Done
The following additional packages will be installed:
python-argcomplete
Suggested packages:
python-gvgen
The following packages will be REMOVED:
ifenslave ifupdown libproxmox-acme-perl libpve-access-control libpve-cluster-api-perl libpve-cluster-perl libpve-common-perl libpve-guest-common-perl
libpve-http-server-perl libpve-storage-perl librados2-perl proxmox-ve pve-cluster pve-container pve-firewall pve-ha-manager pve-manager pve-xtermjs qemu-server
The following NEW packages will be installed:
ifupdown2 python-argcomplete
0 upgraded, 2 newly installed, 19 to remove and 73 not upgraded.
Need to get 0 B/225 kB of archives.
After this operation, 14.3 MB disk space will be freed.
Do you want to continue? [Y/n] y
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
E: Sub-process /usr/share/proxmox-ve/pve-apt-hook returned an error code (1)
E: Failure running script /usr/share/proxmox-ve/pve-apt-hook


Please can someone advise as I'd like to use ifupdown2 to set up vxlan.

Reference: https://pve.proxmox.com/wiki/Network_Configuration
 
  • Like
Reactions: lixaotec
Since I don't have a subscription at the moment I had to do this first:


Make a copy of the pve-enterprise.list file


run: cd /etc/apt/sources.list.d/
run: cp pve-enterprise.list pve-no-subscription.list


run: nano pve-enterprise.list and comment the line using # at the beginning, save and exit (this is for reverting to enterprise in case you pay for a subscription)
run: nano pve-no-subscription.list

change the following
  • https --> http
  • enterprise --> download
  • pve-enterprise --> pve-no-subscription

It should look like this

deb http://download.proxmox.com/debian/pve buster pve-no-subscription
 
  • Like
Reactions: Holm
Why do these packages need to be remove when you install 'ifupdown2':

ifenslave ifupdown libproxmox-acme-perl libpve-access-control libpve-cluster-api-perl libpve-cluster-perl libpve-common-perl libpve-guest-common-perl
libpve-http-server-perl libpve-storage-perl librados2-perl proxmox-ve pve-cluster pve-container pve-firewall pve-ha-manager pve-manager pve-xtermjs qemu-server


Aren't they required? makes me nervous to install this package...
 
Why do these packages need to be remove when you install 'ifupdown2':

ifenslave ifupdown libproxmox-acme-perl libpve-access-control libpve-cluster-api-perl libpve-cluster-perl libpve-common-perl libpve-guest-common-perl
libpve-http-server-perl libpve-storage-perl librados2-perl proxmox-ve pve-cluster pve-container pve-firewall pve-ha-manager pve-manager pve-xtermjs qemu-server


Aren't they required? makes me nervous to install this package...
I have exactly the same question.

I had previously added in the no-subscription repository, but that entry had mysteriously disappeared.

Adding it in again and running an apt-update, trying the ifupdown2 install (dry run) - it worked fine.

I have no idea how the deb entry got removed (the empty file was there) - a pve update did that perhaps?
 
ifenslave ifupdown gets both replaced by ifupdown2.

Thats normal and intended. The other packages shouldn't be removed. You have then something wrong if anything starting with pve-* will get removed if you try to install ifupdown2.

Cheers
 
I get this on all my installs with 6.3. Out of the box...
Yes you will. You need to remove the enterprise add the no-subscription repositories (assuming you have no subscription).

Code:
sed -i 's/^\([^#].*\)/# \1/g' /etc/apt/sources.list.d/pve-enterprise.list

echo "deb http://download.proxmox.com/debian/pve buster pve-no-subscription" > /etc/apt/sources.list.d/pve-no-subscription.list

apt update && apt dist-upgrade -y && apt autoremove --purge -y

My error stemmed from the fact the repo list seemed to revert to default and I needed to do this again.
 
  • Like
Reactions: masoz
Hi there,

for some off my 6.x installation (befor the upgrade ...) this "only install steps" are not enough.
My working solution are:
1:
Code:
apt update && apt full-upgrade
2:
Code:
apt install ifupdown2  -y
3:
Code:
apt purge ifupdown
4:
Code:
 ifreload -a
5:
Code:
apt install ifupdown2 --reinstall  -y

without the last three steps I do not get an automatic enabled networking.service and after the next reboot ... :-( the Server is offline
Code:
Created symlink /etc/systemd/system/multi-user.target.wants/networking.service → /lib/systemd/system/networking.service.
Created symlink /etc/systemd/system/network-online.target.wants/networking.service → /lib/systemd/system/networking.service.

regads,
maxprox
 
Last edited:

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!