[SOLVED] Backup machine fails apt-get

cdsJerry

Renowned Member
Sep 12, 2011
213
8
83
I have a non-production machine as a backup in case my production machine goes down. As a backup I do not have a subscription for it.

I'm getting an error when I try to do an apt-get update
Code:
apt-get update[/INDENT][/INDENT]
[INDENT=2][INDENT=2]Hit:1 http://ftp.us.debian.org/debian buster InRelease[/INDENT][/INDENT]
[INDENT=2][INDENT=2]Hit:2 http://ftp.us.debian.org/debian buster-updates InRelease[/INDENT][/INDENT]
[INDENT=2][INDENT=2]Hit:3 http://security.debian.org buster/updates InRelease[/INDENT][/INDENT]
[INDENT=2][INDENT=2]Hit:4 http://enterprise.proxmox.com/debian/pve stretch InRelease[/INDENT][/INDENT]
[INDENT=2][INDENT=2]Get:5 http://download.proxmox.com/debian stretch InRelease [3,052 B][/INDENT][/INDENT]
[INDENT=2][INDENT=2]Get:6 http://download.proxmox.com/debian stretch/pve-no-subscription amd64 Packages [334 kB][/INDENT][/INDENT]
[INDENT=2][INDENT=2]Fetched 337 kB in 1s (340 kB/s)[/INDENT][/INDENT]
[INDENT=2][INDENT=2]Reading package lists... Done[/INDENT][/INDENT]
[INDENT=2][INDENT=2]W: Skipping acquire of configured file 'pve-enterprise/binary-amd64/Packages' as repository 'http://enterprise.proxmox.com/debian/pve stretch InRelease' doesn't have the component 'pve-enterprise' (component misspelt in sources.list?)[/INDENT][/INDENT]
[INDENT=2][INDENT=2]W: Skipping acquire of configured file 'pve-enterprise/i18n/Translation-en_US' as repository 'http://enterprise.proxmox.com/debian/pve stretch InRelease' doesn't have the component 'pve-enterprise' (component misspelt in sources.list?)[/INDENT][/INDENT]
[INDENT=2][INDENT=2]W: Skipping acquire of configured file 'pve-enterprise/i18n/Translation-en' as repository 'http://enterprise.proxmox.com/debian/pve stretch InRelease' doesn't have the component 'pve-enterprise' (component misspelt in sources.list?)[/INDENT][/INDENT]
[INDENT=2][INDENT=2]root@pve:/etc/apt/sources.list.d# apt-get dist-upgrade[/INDENT][/INDENT]
[INDENT=2][INDENT=2]Reading package lists... Done[/INDENT][/INDENT]
[INDENT=2][INDENT=2]Building dependency tree[/INDENT][/INDENT]
[INDENT=2][INDENT=2]Reading state information... Done[/INDENT][/INDENT]
[INDENT=2][INDENT=2]Calculating upgrade... Done[/INDENT][/INDENT]
[INDENT=2][INDENT=2]0 upgraded, 0 newly installed, 0 to remove and 0 not upgraded.[/INDENT][/INDENT]
[INDENT=2][INDENT=2]

My /etc/apt/sources.list file looks like this:

deb http://ftp.us.debian.org/debian buster main contrib​
deb http://ftp.us.debian.org/debian buster-updates main contrib​
deb http://download.proxmox.com/debian stretch pve-no-subscription​
# security updates​
deb http://security.debian.org buster/updates main contrib​
And my pve-no-subscription.list looks like this:

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

And my /etc/apt/sources.list.d/pve-enterprise.list looks like this:
# deb https://enterprise.proxmox.com/debian/pve buster pve-enterprise​

What do I have wrong? Is it because the sources.list file has "stretch" instead of "buster"? Or is it something else?
 
Last edited:
Is it normal then to have the update file end with skipped items?

W: Skipping acquire of configured file 'pve-enterprise/binary-amd64/Packages' as repository 'htt p://enterprise.proxmox.com/debian/pve stretch InRelease' doesn't have the component 'pve-enterpr ise' (component misspelt in sources.list?)​
W: Skipping acquire of configured file 'pve-enterprise/i18n/Translation-en_US' as repository 'ht tp://enterprise.proxmox.com/debian/pve stretch InRelease' doesn't have the component 'pve-enterp rise' (component misspelt in sources.list?)​
W: Skipping acquire of configured file 'pve-enterprise/i18n/Translation-en' as repository 'http: //enterprise.proxmox.com/debian/pve stretch InRelease' doesn't have the component 'pve-enterpris e' (component misspelt in sources.list?)​

i still have those even after correcting the sources.list file.
 
maybe in your /etc/apt/sources.list.d folder you have something else interfering (like the misspelled old entry)
 
#rm /etc/apt/sources.list.d/pve....
#vim /etc/apt/sources.list
add pvetest or pve-no-subscription repository
http deb://download.proxmox.com/debian buster pvetest

#apt update && apt -y full-upgrade
#reboot
 
I do not know linux well but it looks like you are deleting the sources.list file then creating it again right?

What is the pvetest line?

My /etc/apt/sources.list looks like this:

deb http://ftp.us.debian.org/debian buster main contrib​
deb http://ftp.us.debian.org/debian buster-updates main contrib​
deb http://download.proxmox.com/debian buster pve-no-subscription​
# security updates​
deb http://security.debian.org buster/updates main contrib​

Obviously there's no pvetest line. There wasn't one in any of the examples I saw in the wiki.
 
I do not know linux well but it looks like you are deleting the sources.list file then creating it again right?
no. leave the sources.list as is for now.

in debian linux, packages are managed by apt.

in /etc/apt/ you will find the sources.list file and the sources.list.d directory. that directory is for "extra" lists that you want to add separately for the package manager.

it is possible that you have something in that directory (pve leaves a file there by default during installation). possibly you or someone edited that file and introduced the spelling mistake.
what @badji was telling is to delete that file, and add the pvetest or pve-no-subscription in your sources.list

then do apt update followed by apt full-upgrade and reboot.
 
I haven't deleted source.list anywhere.
I asked you to delete sources.list.d/pve....
You just have to copy and paste .
pvetest or pve-no-subscription

I can't just copy and paste. It comes back with an error. While I don't know much about linux I don't like to just blindly copy and paste commands I don't understand that I got from someone online unless I know who they are. I understand the rm: would remove a file or directory but I don't know what the ... at the end does. Is that a wildcard? Either way, it doesn't work as a copy/paste.

root@pve:/etc/apt/sources.list.d# rm /etc/apt/sources.list.d/pve....​
rm: cannot remove '/etc/apt/sources.list.d/pve....': No such file or directory​
 
please read my explanation in the previous post.
 
no. leave the sources.list as is for now.

it is possible that you have something in that directory (pve leaves a file there by default during installation). possibly you or someone edited that file and introduced the spelling mistake.
what @badji was telling is to delete that file, and add the pvetest or pve-no-subscription in your sources.list

Thank you for the explanation. That helps. I do have some other files in the /etc/apt directory.
root@pve:/etc/apt/sources.list.d# cd /etc/apt​
root@pve:/etc/apt# dir​
apt.conf.d auth.conf.d listchanges.conf preferences.d sources.list sources.list.d trusted.gpg.d​
root@pve:/etc/apt#​

So it looks like I do have the sources.list directory which needs removed right? if I #rm sources.list.d I get an error that it can't remove a directory.
 
remove the file in the directory and not the directory itself.

Code:
# cd /etc/apt/sources.list.d
# ls
pve-enterprise.list
# rm pve-enterprise.list
# cd ..
# nano sources.list
(edit the file and add pvetest or no-subscription repo[0])
(CTRL-X to save and quit)
# apt update
(you shouldn't get any errors at this point hopefully)
# apt full-upgrade
# reboot

[0]: https://pve.proxmox.com/wiki/Package_Repositories
 
# apt update
(you shouldn't get any errors at this point hopefully)

Thank you again for your help. I did the commands listed and everything looked good. No errors when I did the copy paste. However, when I run the apt update command I still get those same "W: Skipping acquire of configured file 'pve-enterprise/binary-amd64/Packages'....." errors as before.

I'm going to do a reboot and try the apt update again just in case there's something hanging around from some prior attempt.
 
hank you again for your help. I did the commands listed and everything looked good. No errors when I did the copy paste. However, when I run the apt update command I still get those same "W: Skipping acquire of configured file 'pve-enterprise/binary-amd64/Packages'....." errors as before.

then maybe there's still something else lingering somewhere.

can you please post the output: find /etc/apt/

also: cat /etc/apt/sources.list.d/*
 
OK. Rebooted and ran apt update again. Same issue.

There is a second file in the /etc/apt/sources.list.d Does it need to be deleted as well? It's called pve-no-subscription.list and is the only other file in that directory.
 
then maybe there's still something else lingering somewhere.

can you please post the output: find /etc/apt/

also: cat /etc/apt/sources.list.d/*

Sorry. Looks like we posted at the same time. Wasn't ignoring your request. Here's the outputs:
Code:
root@pve:/etc/apt/sources.list.d# find /etc/apt/[/INDENT]
[INDENT=2]/etc/apt/[/INDENT]
[INDENT=2]/etc/apt/preferences.d[/INDENT]
[INDENT=2]/etc/apt/apt.conf.d[/INDENT]
[INDENT=2]/etc/apt/apt.conf.d/76pveproxy[/INDENT]
[INDENT=2]/etc/apt/apt.conf.d/01autoremove[/INDENT]
[INDENT=2]/etc/apt/apt.conf.d/20listchanges[/INDENT]
[INDENT=2]/etc/apt/apt.conf.d/70debconf[/INDENT]
[INDENT=2]/etc/apt/apt.conf.d/01autoremove-kernels[/INDENT]
[INDENT=2]/etc/apt/apt.conf.d/10pveapthook[/INDENT]
[INDENT=2]/etc/apt/apt.conf.d/76pveconf[/INDENT]
[INDENT=2]/etc/apt/sources.list.d[/INDENT]
[INDENT=2]/etc/apt/sources.list.d/pve-no-subscription.list[/INDENT]
[INDENT=2]/etc/apt/auth.conf.d[/INDENT]
[INDENT=2]/etc/apt/trusted.gpg.d[/INDENT]
[INDENT=2]/etc/apt/trusted.gpg.d/debian-archive-buster-automatic.gpg[/INDENT]
[INDENT=2]/etc/apt/trusted.gpg.d/debian-archive-stretch-security-automatic.gpg[/INDENT]
[INDENT=2]/etc/apt/trusted.gpg.d/proxmox-ve-release-6.x.gpg[/INDENT]
[INDENT=2]/etc/apt/trusted.gpg.d/proxmox-ve-release-5.x.gpg[/INDENT]
[INDENT=2]/etc/apt/trusted.gpg.d/debian-archive-buster-security-automatic.gpg[/INDENT]
[INDENT=2]/etc/apt/trusted.gpg.d/debian-archive-jessie-stable.gpg[/INDENT]
[INDENT=2]/etc/apt/trusted.gpg.d/debian-archive-jessie-automatic.gpg[/INDENT]
[INDENT=2]/etc/apt/trusted.gpg.d/debian-archive-buster-stable.gpg[/INDENT]
[INDENT=2]/etc/apt/trusted.gpg.d/debian-archive-jessie-security-automatic.gpg[/INDENT]
[INDENT=2]/etc/apt/trusted.gpg.d/debian-archive-stretch-stable.gpg[/INDENT]
[INDENT=2]/etc/apt/trusted.gpg.d/debian-archive-stretch-automatic.gpg[/INDENT]
[INDENT=2]/etc/apt/listchanges.conf[/INDENT]
[INDENT=2]/etc/apt/sources.list[/INDENT]
[INDENT=2]root@pve:/etc/apt/sources.list.d#[/INDENT]
[INDENT=2]

And the second one:

Code:
root@pve:/etc/apt/sources.list.d# cat /etc/apt/sources.list.d/*[/INDENT]
[INDENT=2]deb http://enterprise.proxmox.com/debian/pve stretch pve-enterprise[/INDENT]
[INDENT=2]root@pve:/etc/apt/sources.list.d#[/INDENT]
[INDENT=2]
 
you still have this line somewhere in that directory. find the file and delete it. probably the other file you saw has it and its falsely named
YES! It was in that other file. Deleted it and fixed. THANK YOU!!!! I clearly owe you a beer.
 
glad your problem is solved!
 
  • Like
Reactions: cdsJerry

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!