[SOLVED] Target Packages (pve-no-subscription/binary-amd64/Packages) is configured multiple times in #

skeptical

New Member
May 22, 2024
10
2
3
Australia
Proxmox: 8.2.2

I installed Proxmox via USB drive.

When I try to access the interface on my mobile phone, I get a subscription warning and cannot access it. So i did some searching and found a link that guides the reader through a no subscription fix.

When I try apt-get update I get the following output:

Code:
Last login: Thu May 23 03:29:29 AEST 2024 on pts/0
root@mypve:~# apt-get update
Hit:1 http://deb.debian.org/debian bookworm InRelease
Hit:2 http://deb.debian.org/debian bookworm-updates InRelease                                   
Hit:3 http://security.debian.org/debian-security bookworm-security InRelease                   
Hit:4 http://download.proxmox.com/debian/ceph-quincy bookworm InRelease                         
Hit:5 http://download.proxmox.com/debian/ceph-reef bookworm InRelease                           
Hit:6 http://download.proxmox.com/debian/pve bookworm InRelease                                 
Ign:7 https://download.docker.com/linux/ubuntu bookworm InRelease         
Err:8 https://download.docker.com/linux/ubuntu bookworm Release
  404  Not Found [IP: 18.65.244.85 443]
Reading package lists... Done
W: Target Packages (pve-no-subscription/binary-amd64/Packages) is configured multiple times in /etc/apt/sources.list.d/pve-enterprise.list:1 and /etc/apt/sources.list.d/pve-install-repo.list:1
W: Target Packages (pve-no-subscription/binary-all/Packages) is configured multiple times in /etc/apt/sources.list.d/pve-enterprise.list:1 and /etc/apt/sources.list.d/pve-install-repo.list:1
W: Target Translations (pve-no-subscription/i18n/Translation-en_US) is configured multiple times in /etc/apt/sources.list.d/pve-enterprise.list:1 and /etc/apt/sources.list.d/pve-install-repo.list:1
W: Target Translations (pve-no-subscription/i18n/Translation-en) is configured multiple times in /etc/apt/sources.list.d/pve-enterprise.list:1 and /etc/apt/sources.list.d/pve-install-repo.list:1
E: The repository 'https://download.docker.com/linux/ubuntu bookworm Release' does not have a Release file.
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.
W: Target Packages (pve-no-subscription/binary-amd64/Packages) is configured multiple times in /etc/apt/sources.list.d/pve-enterprise.list:1 and /etc/apt/sources.list.d/pve-install-repo.list:1
W: Target Packages (pve-no-subscription/binary-all/Packages) is configured multiple times in /etc/apt/sources.list.d/pve-enterprise.list:1 and /etc/apt/sources.list.d/pve-install-repo.list:1
W: Target Translations (pve-no-subscription/i18n/Translation-en_US) is configured multiple times in /etc/apt/sources.list.d/pve-enterprise.list:1 and /etc/apt/sources.list.d/pve-install-repo.list:1
W: Target Translations (pve-no-subscription/i18n/Translation-en) is configured multiple times in /etc/apt/sources.list.d/pve-enterprise.list:1 and /etc/apt/sources.list.d/pve-install-repo.list:1

I'm not sure what to do and am seeking advice, i'm very new to Proxmox and VMs in general.
 
Hi,

please post the output of tail -n+0 /etc/apt/sources.list /etc/apt/sources.list.d/*. You most likely just have the package repositories configured wrong.

When I try to access the interface on my mobile phone, I get a subscription warning and cannot access it.
What do you mean exactly by that? Do you mean the popup on login with "subscription warning"? If yes, you should be able to just click "OK" on that and continue using it normally.
What mobile browser do you use? Maybe that is acting weird ..

Code:
Ign:7 https://download.docker.com/linux/ubuntu bookworm InRelease
Err:8 https://download.docker.com/linux/ubuntu bookworm Release
404 Not Found [IP: 18.65.244.85 443]
Also, do you have Docker installed directly on the Proxmox VE host? That is strongly discouraged and will cause problems/break things, sooner or later.
 
please post the output of tail -n+0 /etc/apt/sources.list /etc/apt/sources.list.d/*. You most likely just have the package repositories configured wrong.

Code:
skeptical@debian:~$ tail -n+0 /etc/apt/sources.list /etc/apt/sources.list.d/*
==> /etc/apt/sources.list <==
#deb cdrom:[Official Debian GNU/Linux Live 12.5.0 cinnamon 2024-02-10T11:07:25Z]/ bookworm main non-free-firmware

deb http://deb.debian.org/debian/ bookworm main
deb-src http://deb.debian.org/debian/ bookworm main

deb http://security.debian.org/debian-security bookworm-security main
deb-src http://security.debian.org/debian-security bookworm-security main

# bookworm-updates, to get updates before a point release is made;
# see https://www.debian.org/doc/manuals/debian-reference/ch02.en.html#_updates_and_backports
deb http://deb.debian.org/debian/ bookworm-updates main
deb-src http://deb.debian.org/debian/ bookworm-updates main

# This system was installed using small removable media
# (e.g. netinst, live or single CD). The matching "deb cdrom"
# entries were disabled at the end of the installation process.
# For information about how to configure apt package sources,
# see the sources.list(5) manual.

==> /etc/apt/sources.list.d/docker.list <==
deb [arch=amd64 signed-by=/etc/apt/keyrings/docker.asc] https://download.docker.com/linux/debian   bookworm stable


What do you mean exactly by that? Do you mean the popup on login with "subscription warning"? If yes, you should be able to just click "OK" on that and continue using it normally.
What mobile browser do you use? Maybe that is acting weird ..

I'm using an iPhone and I use Safari and the warning does not go away even after tapping on OK. It's strange.
Also, do you have Docker installed directly on the Proxmox VE host? That is strongly discouraged and will cause problems/break things, sooner or later.
I have Docker installed in a Debian VM, is that ok? Am I doing this right?
 
skeptical@debian:~$ tail -n+0 /etc/apt/sources.list /etc/apt/sources.list.d/*
This is not from the PVE host, right? Since in your first post, it was named mypve, where the apt update failed.
Please post the output of the above command from the PVE host.

I'm using an iPhone and I use Safari and the warning does not go away even after tapping on OK. It's strange.
That's indeed weird, and I managed to reproduce it even.
Although simply refreshing the site clears the popup, so that's an easy workaround for now.

I have Docker installed in a Debian VM, is that ok? Am I doing this right?
Yes, that's the right way. But you seem to have configured the Docker repos (also?) on the host.
 
This is not from the PVE host, right? Since in your first post, it was named mypve, where the apt update failed.
Please post the output of the above command from the PVE host.
Argh, my mistake. Here is the output from mypve:

Code:
Linux mypve 6.8.4-3-pve #1 SMP PREEMPT_DYNAMIC PMX 6.8.4-3 (2024-05-02T11:55Z) x86_64

The programs included with the Debian GNU/Linux system are free software;
the exact distribution terms for each program are described in the
individual files in /usr/share/doc/*/copyright.

Debian GNU/Linux comes with ABSOLUTELY NO WARRANTY, to the extent
permitted by applicable law.
Last login: Thu May 23 05:47:22 AEST 2024 on pts/0
root@mypve:~# tail -n+0 /etc/apt/sources.list /etc/apt/sources.list.d/*
==> /etc/apt/sources.list <==
deb http://deb.debian.org/debian bookworm main contrib
deb http://deb.debian.org/debian bookworm-updates main contrib
deb http://security.debian.org/debian-security bookworm-security main contrib

==> /etc/apt/sources.list.d/ceph.list <==
deb http://download.proxmox.com/debian/ceph-quincy bookworm no-subscription
deb http://download.proxmox.com/debian/ceph-reef bookworm no-subscription

==> /etc/apt/sources.list.d/docker.list <==
deb [arch=amd64 signed-by=/etc/apt/keyrings/docker.asc] https://download.docker.com/linux/ubuntu   bookworm stable

==> /etc/apt/sources.list.d/pve-enterprise.list <==
deb http://download.proxmox.com/debian/pve bookworm pve-no-subscription


==> /etc/apt/sources.list.d/pve-install-repo.list <==
deb http://download.proxmox.com/debian/pve bookworm pve-no-subscription


==> /etc/apt/sources.list.d/pvetest-for-beta.list <==
# deb http://download.proxmox.com/debian/pve bookworm pvetest

Yes, that's the right way. But you seem to have configured the Docker repos (also?) on the host.
Yeah, the first thing I did after installation was install docker in a LXC from a script. But then I read about the dangers of doing that, so I installed Debian. I just have to delete the LXC now.
 
Alright. First I'd suggest you delete the /etc/apt/sources.list.d/docker.list repo file, as that was accidentally anyway, as you say.

Code:
==> /etc/apt/sources.list.d/pve-enterprise.list <==
deb http://download.proxmox.com/debian/pve bookworm pve-no-subscription

==> /etc/apt/sources.list.d/pve-install-repo.list <==
deb http://download.proxmox.com/debian/pve bookworm pve-no-subscription

==> /etc/apt/sources.list.d/pvetest-for-beta.list <==
# deb http://download.proxmox.com/debian/pve bookworm pvetest
That also looks pretty funky. You can safely delete the /etc/apt/sources.list.d/pve-enterprise.list and /etc/apt/sources.list.d/pvetest-for-beta.list files too, as it's either a duplicate or commented out.
That should clean up your repo situation a bit.

Can you then please re-try running apt update and see if everything works again? :)

Yeah, the first thing I did after installation was install docker in a LXC from a script. But then I read about the dangers of doing that, so I installed Debian. I just have to delete the LXC now.
Yeah, running random scripts from the internet without knowing exactly what they do is never a good idea, for obvious reasons. It might break or compromise your system, and generally modifies your system without you knowing what exactly has been modified.
 
  • Like
Reactions: citizen5
Can you then please re-try running apt update and see if everything works again? :)
I deleted those files, and then it updated perfectly, thank you very much.

Yeah, running random scripts from the internet without knowing exactly what they do is never a good idea, for obvious reasons. It might break or compromise your system, and generally modifies your system without you knowing what exactly has been modified.

I watched a YouTube clip of a guy who recommended the scripts, in hindsight I was very naive to trust that as I have no understanding of scripts or what they can do to a computer. Thanks for your advice.
 
  • Like
Reactions: cheiss
Alright. First I'd suggest you delete the /etc/apt/sources.list.d/docker.list repo file, as that was accidentally anyway, as you say.


That also looks pretty funky. You can safely delete the /etc/apt/sources.list.d/pve-enterprise.list and /etc/apt/sources.list.d/pvetest-for-beta.list files too, as it's either a duplicate or commented out.
That should clean up your repo situation a bit.

Can you then please re-try running apt update and see if everything works again? :)


Yeah, running random scripts from the internet without knowing exactly what they do is never a good idea, for obvious reasons. It might break or compromise your system, and generally modifies your system without you knowing what exactly has been modified.
WOW,cheiss, you just fixed my updates!!!
I've read a few forums and tried out the information, which was pretty much the same all across the board, to use the no-subscription repos since i'm just studying virtualization for a possible career change, but no answers were as clear as yours!!!
i've tried the major brands before and gave up as no option was available for one to use the environment for educational purposes. Ive just acquired a dell server used from a great seller on ebay that I recommed, ptnerd, and it came pre-installed with the free version of proxmox. so I'm first time using it, and loving it!!! the support from this community seems to be one of the strongest I've had the opportunity to experience amongst several other linux systems. I'm now considering moving to Debian altogether as your help shows a lot about this Linux version. I'm very impressed!!! You made me a believer!!!
citizen5
 
Proxmox: 8.2.2

I installed Proxmox via USB drive.

When I try to access the interface on my mobile phone, I get a subscription warning and cannot access it. So i did some searching and found a link that guides the reader through a no subscription fix.

When I try apt-get update I get the following output:

Code:
Last login: Thu May 23 03:29:29 AEST 2024 on pts/0
root@mypve:~# apt-get update
Hit:1 http://deb.debian.org/debian bookworm InRelease
Hit:2 http://deb.debian.org/debian bookworm-updates InRelease                                 
Hit:3 http://security.debian.org/debian-security bookworm-security InRelease                 
Hit:4 http://download.proxmox.com/debian/ceph-quincy bookworm InRelease                       
Hit:5 http://download.proxmox.com/debian/ceph-reef bookworm InRelease                         
Hit:6 http://download.proxmox.com/debian/pve bookworm InRelease                               
Ign:7 https://download.docker.com/linux/ubuntu bookworm InRelease       
Err:8 https://download.docker.com/linux/ubuntu bookworm Release
  404  Not Found [IP: 18.65.244.85 443]
Reading package lists... Done
W: Target Packages (pve-no-subscription/binary-amd64/Packages) is configured multiple times in /etc/apt/sources.list.d/pve-enterprise.list:1 and /etc/apt/sources.list.d/pve-install-repo.list:1
W: Target Packages (pve-no-subscription/binary-all/Packages) is configured multiple times in /etc/apt/sources.list.d/pve-enterprise.list:1 and /etc/apt/sources.list.d/pve-install-repo.list:1
W: Target Translations (pve-no-subscription/i18n/Translation-en_US) is configured multiple times in /etc/apt/sources.list.d/pve-enterprise.list:1 and /etc/apt/sources.list.d/pve-install-repo.list:1
W: Target Translations (pve-no-subscription/i18n/Translation-en) is configured multiple times in /etc/apt/sources.list.d/pve-enterprise.list:1 and /etc/apt/sources.list.d/pve-install-repo.list:1
E: The repository 'https://download.docker.com/linux/ubuntu bookworm Release' does not have a Release file.
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.
W: Target Packages (pve-no-subscription/binary-amd64/Packages) is configured multiple times in /etc/apt/sources.list.d/pve-enterprise.list:1 and /etc/apt/sources.list.d/pve-install-repo.list:1
W: Target Packages (pve-no-subscription/binary-all/Packages) is configured multiple times in /etc/apt/sources.list.d/pve-enterprise.list:1 and /etc/apt/sources.list.d/pve-install-repo.list:1
W: Target Translations (pve-no-subscription/i18n/Translation-en_US) is configured multiple times in /etc/apt/sources.list.d/pve-enterprise.list:1 and /etc/apt/sources.list.d/pve-install-repo.list:1
W: Target Translations (pve-no-subscription/i18n/Translation-en) is configured multiple times in /etc/apt/sources.list.d/pve-enterprise.list:1 and /etc/apt/sources.list.d/pve-install-repo.list:1

I'm not sure what to do and am seeking advice, i'm very new to Proxmox and VMs in general.
delete /etc/apt/source.list.d/docker.list

this happens when you go and paste docker tutorial commands into the wrong shell - i.e - into the proxmox console and not the lxc or vm console.
 
Last edited: