ifupdown2 install failed

dibun

New Member
Jun 7, 2020
7
0
1
48
I am running version 6.2.4 and when I tried to install ifupdown2 I get the following error. I have updated the system before installing ifupdown2 and I have no paid subscription. I have not added Proxmox VE no-subscription repo as I want a stable production version.

/etc/apt/sources.list
-------------
deb http://ftp.no.debian.org/debian buster main contrib

deb http://ftp.no.debian.org/debian buster-updates main contrib

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


root@pve:~# 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:
ethtool python-gvgen python-mako
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 0 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
perl: warning: Setting locale failed.
perl: warning: Please check that your locale settings:
LANGUAGE = (unset),
LC_ALL = (unset),
LC_CTYPE = "UTF-8",
LANG = "en_US.UTF-8"
are supported and installed on your system.
perl: warning: Falling back to a fallback locale ("en_US.UTF-8").
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
 
>> I have not added Proxmox VE no-subscription repo as I want a stable production version.

So, you'll never do proxmox updates ????

use no-subscription repo, or buy a subscription.

the last other other, could be to build your own repo, and copy .deb from cd iso releases 6.2, 6.3, 6.4.
But sometimes, it's possible that a bug is introduce in release, and I don't think you want to wait 3-4 months for a fix.
(and for security fix, you really don't want to wait soo long).
 
>> I have not added Proxmox VE no-subscription repo as I want a stable production version.

So, you'll never do proxmox updates ????

use no-subscription repo, or buy a subscription.

the last other other, could be to build your own repo, and copy .deb from cd iso releases 6.2, 6.3, 6.4.
But sometimes, it's possible that a bug is introduce in release, and I don't think you want to wait 3-4 months for a fix.
(and for security fix, you really don't want to wait soo long).

Of course I update/upgrade from the stable repo.
 
Of course I update/upgrade from the stable repo.

Sorry, I don't understand, because you said
I have no paid subscription. I have not added Proxmox VE no-subscription repo as I want a stable production version.

So, you don't have paid subscription, so you don't have enterprise repo.
and you don't use no-subscription repo too.

So, what is your stable repo ? (I mean proxmox repo, not debian repo)
 
At present I only have Debian repo as in the wiki No-subscription repo is mentioned as testing non-production use
 
At present I only have Debian repo as in the wiki No-subscription repo is mentioned as testing non-production use

So you have no Proxmox repo which is wrong. You need one, either:
  • pve-enterprise for production use
  • pve-no-subscription for those without subscription, it's not recommended for production but that doesn't mean your server will explode using it ;)
  • pvetest for testing the newest updates (recommended for testlab to catch possible problems affecting your specific setup early)
If you have no Proxmox repository configured, how do you expect Proxmox updates and packages (we ship ifupdown2 ourself and rely on that) to come in??

At present I only have Debian repo as in the wiki No-subscription repo is mentioned as testing non-production use

If you run a production service the one to two beers-a-month fee to get a community subscription should be worth providing more stable updates for the setup and support the project your using (=rely on) in production.
Also, non-production and testing setups are normally two different things.
 
  • Like
Reactions: dibun and janssensm
So you have no Proxmox repo which is wrong. You need one, either:
  • pve-enterprise for production use
  • pve-no-subscription for those without subscription, it's not recommended for production but that doesn't mean your server will explode using it ;)
  • pvetest for testing the newest updates (recommended for testlab to catch possible problems affecting your specific setup early)
If you have no Proxmox repository configured, how do you expect Proxmox updates and packages (we ship ifupdown2 ourself and rely on that) to come in??



If you run a production service the one to two beers-a-month fee to get a community subscription should be worth providing more stable updates for the setup and support the project your using (=rely on) in production.
Also, non-production and testing setups are normally two different things.
 

I have added pve-no-subscription and now it works. Thanks for the info. But I still get Perl locale settings warnings

perl: warning: Setting locale failed.
perl: warning: Please check that your locale settings:
LANGUAGE = (unset),
LC_ALL = (unset),
LC_CTYPE = "UTF-8",
LANG = "en_US.UTF-8"
are supported and installed on your system.
perl: warning: Falling back to a fallback locale ("en_US.UTF-8").
perl: warning: Setting locale failed.
perl: warning: Please check that your locale settings:
LANGUAGE = (unset),
LC_ALL = (unset),
LC_CTYPE = "UTF-8",
LANG = "en_US.UTF-8"
are supported and installed on your system.
perl: warning: Falling back to a fallback locale ("en_US.UTF-8").
locale: Cannot set LC_CTYPE to default locale: No such file or directory
locale: Cannot set LC_ALL to default locale: No such file or directory
 
You may want to ensure your locale support is correctly configured, you may want to run: dpkg-reconfigure locales
and select your desired locales to be available on the system.

The following article may also help: https://wiki.debian.org/Locale#Standard
 
  • Like
Reactions: dibun
I get this error

root@pve:~# dpkg-reconfigure locales
perl: warning: Setting locale failed.
perl: warning: Please check that your locale settings:
LANGUAGE = (unset),
LC_ALL = (unset),
LC_CTYPE = "UTF-8",
LANG = "en_US.UTF-8"
are supported and installed on your system.
perl: warning: Falling back to a fallback locale ("en_US.UTF-8").
locale: Cannot set LC_CTYPE to default locale: No such file or directory
locale: Cannot set LC_ALL to default locale: No such file or directory
/usr/bin/locale: Cannot set LC_CTYPE to default locale: No such file or directory
/usr/bin/locale: Cannot set LC_ALL to default locale: No such file or directory
Generating locales (this might take a while)...
en_US.UTF-8... done
Generation complete.
perl: warning: Setting locale failed.
perl: warning: Please check that your locale settings:
LANGUAGE = (unset),
LC_ALL = (unset),
LC_CTYPE = "UTF-8",
LANG = "C"
are supported and installed on your system.
perl: warning: Falling back to the standard locale ("C").
perl: warning: Setting locale failed.
perl: warning: Please check that your locale settings:
LANGUAGE = (unset),
LC_ALL = (unset),
LC_CTYPE = "UTF-8",
LANG = "C"
are supported and installed on your system.
perl: warning: Falling back to the standard locale ("C").
 
Oh, my bad, you have to set the respective locale related environment variables first:

Bash:
export LANGUAGE=en_US.UTF-8
export LANG=en_US.UTF-8
export LC_ALL=en_US.UTF-8
locale-gen en_US.UTF-8
dpkg-reconfigure locales
 
Oh, my bad, you have to set the respective locale related environment variables first:

Bash:
export LANGUAGE=en_US.UTF-8
export LANG=en_US.UTF-8
export LC_ALL=en_US.UTF-8
locale-gen en_US.UTF-8
dpkg-reconfigure locales
Thanks it worked
 

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!