Hi,
on a Raspberry Pi 4 running DietPi (Trixie with the update script) and AdGuard Home, I’m getting the following error message with the latest patch. What can I do?
APT install dhcpcd-base
-
Command: apt-get -y --allow-change-held-packages install dhcpcd-base
-
Exit code: 100
-
DietPi version: v10.2.0 (MichaIng/master) | HW_MODEL: 4 | HW_ARCH: 2 | DISTRO: 8
-
Error log:
Reading package lists…
Building dependency tree…
Reading state information…
Package dhcpcd-base is not available, but is referred to by another package.
This may mean that the package is missing, has been obsoleted, or
is only available from another source
E: Package ‘dhcpcd-base’ has no installation candidate
Thanks
dhcpcd-base is a real package in all supported Debian versions. Has your package list been updated properly?
apt policy dhcpcd-base
apt update
apt policy dhcpcd-base
I’m not entirely sure if you want the following issues, but here they are:
root@adguard-home:~# apt policy dhcpcd-base
dhcpcd-base:
Installed: (none)
Candidate: (none)
Version table:
root@adguard-home:~# apt update
Hit:1 https://dietpi.com/apt trixie InRelease
Hit:2 https://dietpi.com/apt all InRelease
Hit:3 https://archive.raspberrypi.com/debian trixie InRelease
Get:4 https://pkgs.tailscale.com/stable/debian trixie InRelease
Fetched 6582 B in 1s (10.4 kB/s)
All packages are up to date.
root@adguard-home:~# apt policy dhcpcd-base
dhcpcd-base:
Installed: (none)
Candidate: (none)
Version table:
You have no Debian repository installed. Does /etc/apt/sources.list not exist, or is it emtpy/all commented?
You can recreate it with dietpi-config network options (misc) > APT mirror.
Then run:
apt update
apt upgrade
Depending on how long you are missing the distro’s main APT repo, there might be a lot of critical updates available.
2 Likes
Oops, how did that mishap happen?
Your solution was spot on!
APT Mirror: Unknown, no sting from scrape
Now everything is back to normal.
Thank you so much for the prompt support!
1 Like
Great that things are up again.