Comments (8)
Just to add, trying a normal apt update now fails as well
dietpi@Choad:~$ sudo apt update
Reading package lists... Done
E: Could not get lock /var/lib/apt/lists/lock. It is held by process 979 (apt-get)
N: Be aware that removing the lock file is not a solution and may break your system.
E: Unable to lock directory /var/lib/apt/lists/
dietpi@Choad:~$
from dietpi.
Not sure how to interpret the output of nslookup
. 100.100.100.100
seems to be the IP of the nameserver, not the resolved hostname. Seems to be common when it cannot resolve it at all.
Works fine here:
root@micha:~# getent ahosts ftp.us.debian.org
2620:0:861:2:208:80:154:139 STREAM ftp.us.debian.org
2620:0:861:2:208:80:154:139 DGRAM
2620:0:861:2:208:80:154:139 RAW
2600:3404:200:237::2 STREAM
2600:3404:200:237::2 DGRAM
2600:3404:200:237::2 RAW
2600:3402:200:227::2 STREAM
2600:3402:200:227::2 DGRAM
2600:3402:200:227::2 RAW
64.50.236.52 STREAM
64.50.236.52 DGRAM
64.50.236.52 RAW
64.50.233.100 STREAM
64.50.233.100 DGRAM
64.50.233.100 RAW
208.80.154.139 STREAM
208.80.154.139 DGRAM
208.80.154.139 RAW
AFAIK, by default, Tailscale does not change the DNS nameserver, does it? Of course should be easy to test by stopping/disconnecting it.
I wonder as well why you have https://deb.debian.org
as well as http://ftp.us.debian.org
requests. The first is a CDN, but since Stretch, APT uses its SRV records instead of following a HTTP redirect, so when having only https://deb.debian.org
in sources.list
, there should never be another Debian mirror visible in outputs.
The 2nd error is when there is a parallel APT update running, or when one was uncleanly killed. Check e.g. via htop
whether there is really no other APT instance running, and in case remove the /var/lib/apt/lists/lock
file manually.
from dietpi.
from dietpi.
from dietpi.
Not sure why this worked, but clearing the lock file from the /var/lib/apt/lists and then rerunning a manual apt update and upgrade cycle, plus a reboot, seems to have resolved whatever the issue is, as I was able to rerun dietpi-update without issue, though it wound up doing nothing the third time around.. the system now shows as being on 9.3.0
I generated a new debug log if you'd like to see:
07b1b3b4-f600-4a9c-9216-d575fae1f66e
from dietpi.
Tailscale can surely enforce a different DNS, but AFAIK it does not do OOTB, as it is usually used to connect to a particular remote device and access its own resources only, not to access to other devices or the internet through it. A different DNS would be used only to either get access to other remote LAN hosts via local hostnames (instead of IP addresses) or hiding DNS requests from insecure/untrusted networks, when you use the VPN for privacy reasons. Usually it should be possible to disable using the Tailscale/VPN provided DNS at the client only, hence if anything does not work, you can just revert the change.
However, looks like the issue with resolving this Debian hostname via 100.100.100.100
was temporary only.
Checking your bug report upload, you use(d) Nala which generated /etc/apt/sources.list.d/nala-sources.list
, which contains 4 mirrors of the same Debian repository, including the one which caused the error, while /etc/apt/sources.list
contains the Debian repository already, hence overall 5 times the same repo. As long as you do not actively use Nala, you should remove that.
rm /etc/apt/sources.list.d/nala-sources.list
Nala uses the multiple mirrors for its parallel APT package download feature. However, I know and tested such features, and they do not really speed up things, since the additional processing of leveraging the multiple servers and merging the downloads is usually more time consuming than what you can safe when using just the close mirror served by the deb.debian.org
CDN. At least it makes sense to really compare apt-get
with a single list with nala
with the 4 additional lists, using e.g. the time
command. Also the way the mirrors are selected by Nala and similar projects is not great: They check the ping time only, not the download bandwidth. Using the "fastest" mirror offered by these tools in my case always leads to a slower (single server) download, compared to what deb.debian.org
serves, simply because ping time does not really matter, but the bandwidth does. What I do not understand is, why Nala writes these mirrors to /etc/apt/sources.list.d
, while it does not actually use APT but causing APT to take much longer etc. It could just use an own config file that does not disturb APT. In this regards, apt-fast
does it a better way, but still was overall slower than plain APT on all my tests. So much for my lecture against using such APT wrappers/alternatives, as plain Debian APT does everything too well already 😄.
from dietpi.
Tell you what, Nala has NEVER seemed like it was faster, but I got caught up in some hype about it and installed it. Used it a few times but it seemed to cause more issues than it theoretically solved, mainly in its habit of wanting to pull down more packages than are really necessary AND causing a kernel update to nearly fail in the process.
So, yes, will wind up removing Nala from the two servers I have it installed on.
I think you can consider this issue closed if you're also amenable to that.
from dietpi.
Yeah, my impression for this and apt-fast
was also that people started using it because of course it sounds reasonable at first, that parallel downloads speed up things. But no one really seem to have benchmarked it, at least in case of apt-fast
until I started a topic and benchmarked it myself with many scenarios. There was only one user where it was faster, because the single APT mirror he used got him 200k download speed only. If there is really no faster APT mirror available at a location, then of course Nala and apt-fast
will be a benefit, but these seem to be edge cases. Often the simpler/plain solution remains the best.
from dietpi.
Related Issues (20)
- Failed to install Docker via software HOT 4
- [USER ERROR] After Bullseye upgrade, `apt-get -y -eany update` fails with `option 'e' [from -eany] is not understood` HOT 4
- CPU Governor on NanoPi NEO3 seems faulty HOT 7
- Iteration v9.4 (2024-05-11)
- APT | TLS errors when connecting to dietpi.com HOT 13
- DietPi has encountered an error during update to v9.3.0 HOT 4
- Image | Radxa ZERO 3 HOT 58
- "cpu" command | Add CPUFreq stats for time in states
- USB0 Network setting HOT 2
- Pine A64 - update from 9.2.1 to 9.3.0 fails while upgrading APT packages HOT 3
- Trying to run HamClock on /dev/fb0 HOT 4
- Dietpi-9.3 issues with all existing services going down while using tailscale as an exit node. HOT 3
- Elecrow 10.7" 1920x1080 IPS HDMI - Current console font on boot looks unreadable. HOT 2
- /dev/fb0 disappeared HOT 6
- Software request - photoprism
- Issue with /dev/dri/ with no desktop running HOT 2
- DietPi-Installer | Add support for Amlogic S9xx TV boxes HOT 7
- DietPi-Software | NZBGet: Move to DEB packages?
- Dietpi-VPN IPVanish installation - Possible bugs with IpVanish's configs.zip and also "keysize" in .ovpn file HOT 6
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
D3
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
-
Recommend Topics
-
javascript
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
-
web
Some thing interesting about web. New door for the world.
-
server
A server is a program made to process requests and deliver data to clients.
-
Machine learning
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from dietpi.