Groups | Search | Server Info | Keyboard shortcuts | Login | Register [http] [https] [nntp] [nntps]
Groups > linux.debian.user > #264877
| From | Greg Wooledge <greg@wooledge.org> |
|---|---|
| Newsgroups | linux.debian.user |
| Subject | Re: Problem with /var/cache/apt/archives/ |
| Date | 2023-12-18 04:10 +0100 |
| Message-ID | <HMcaZ-ekbv-1@gated-at.bofh.it> (permalink) |
| References | <HLDdf-dYTw-5@gated-at.bofh.it> <HLDdf-dYTw-3@gated-at.bofh.it> <HLF5n-dZZq-9@gated-at.bofh.it> <HMbRD-ejQ2-1@gated-at.bofh.it> |
| Organization | linux.* mail to news gateway |
On Sun, Dec 17, 2023 at 09:42:19PM -0500, Cindy Sue Causey wrote:
> dpkg-deb: error: failed to read archive
> '/var/cache/apt/archives/dpkg_1.22.1_amd64.deb': Too many levels of
> symbolic links
> dpkg: error: parsing file '/var/lib/dpkg/status' near line 2 package 'dpkg':
> 'Version' field value '': version string is empty
>
> Too many levels of symbolic links... I've seen that over the years
> while breaking my system. So I visually inspected the apt/archives
> directory. Whatever debootstrap is seeing as too many symlinks is not
> visually apparent.
Well, why not *show us*?
Here's one way to produce that error message:
unicorn:~$ mkdir /tmp/subdir
unicorn:~$ ln -s link /tmp/subdir/link
unicorn:~$ ls /tmp/subdir/link/foo
ls: cannot access '/tmp/subdir/link/foo': Too many levels of symbolic links
unicorn:~$ ls -ld /tmp/subdir/link
lrwxrwxrwx 1 greg greg 4 Dec 17 22:00 /tmp/subdir/link -> link
For your error message, you'd want to look at
ls -ld /var /var/cache /var/cache/apt /var/cache/apt/archives
I think we can assume that / isn't a circular symlink, but if you want
to throw in / as well, it wouldn't hurt.
You mentioned debootstrap, so it's not clear to me whether the error
is coming from your regular directories, or from a /var/cache/apt/archives
that's inside a chroot somewhere. If it's coming from a chroot, then
that's where you'll want to look.
Back to linux.debian.user | Previous | Next — Previous in thread | Find similar | Unroll thread
Problem with /var/cache/apt/archives/ "Stephen P. Molnar" <s.molnar@sbcglobal.net> - 2023-12-16 14:50 +0100
Re: Problem with /var/cache/apt/archives/ Greg Wooledge <greg@wooledge.org> - 2023-12-16 15:10 +0100
Re: Problem with /var/cache/apt/archives/ john doe <johndoe65534@mail.com> - 2023-12-16 15:10 +0100
Re: Problem with /var/cache/apt/archives/ Andy Smith <andy@strugglers.net> - 2023-12-16 16:30 +0100
Re: Problem with /var/cache/apt/archives/ Joe Pfeiffer <pfeiffer@cs.nmsu.edu> - 2023-12-16 16:20 +0100
Re: Problem with /var/cache/apt/archives/ "Stephen P. Molnar" <s.molnar@sbcglobal.net> - 2023-12-16 16:50 +0100
Re: Problem with /var/cache/apt/archives/ Charles Curley <charlescurley@charlescurley.com> - 2023-12-16 18:20 +0100
Re: Problem with /var/cache/apt/archives/ <tomas@tuxteam.de> - 2023-12-16 20:40 +0100
Re: Problem with /var/cache/apt/archives/ Charles Curley <charlescurley@charlescurley.com> - 2023-12-16 21:30 +0100
Re: Problem with /var/cache/apt/archives/ Joe Pfeiffer <pfeiffer@cs.nmsu.edu> - 2023-12-16 23:20 +0100
Re: Problem with /var/cache/apt/archives/ Max Nikulin <manikulin@gmail.com> - 2023-12-17 03:10 +0100
Re: Problem with /var/cache/apt/archives/ Curt <curty@free.fr> - 2023-12-17 17:30 +0100
Re: Problem with /var/cache/apt/archives/ Felix Miata <mrmazda@earthlink.net> - 2023-12-16 16:30 +0100
Re: Problem with /var/cache/apt/archives/ Pocket <pocket@columbus.rr.com> - 2023-12-16 16:50 +0100
Re: Problem with /var/cache/apt/archives/ Cindy Sue Causey <butterflybytes@gmail.com> - 2023-12-18 03:50 +0100
Re: Problem with /var/cache/apt/archives/ Greg Wooledge <greg@wooledge.org> - 2023-12-18 04:10 +0100
csiph-web