Bug#989602: closed by Guillem Jover (Re: Bug#989602: dpkg-deb overwrites symlinks with directories)
On Wed, Jun 09, 2021 at 12:24:04AM +, Debian Bug Tracking System wrote: > I'm assuming this was done on a system installed or migrated to the > broken merged-usr-via-aliased-dirs layout, which dpkg does not really > support. It was installed on a platform without official support using the offical current installer, the one we're planning to release as "Debian stable, the Universal Operating System" in six weeks. -- - Marc Haber | "I don't trust Computers. They | Mailadresse im Header Leimen, Germany| lose things."Winona Ryder | Fon: *49 6224 1600402 Nordisch by Nature | How to make an American Quilt | Fax: *49 6224 1600421
Bug#989602: dpkg-deb overwrites symlinks with directories
On Tue, Jun 08, 2021 at 05:34:57PM +0200, Johannes Schauer Marin Rodrigues wrote: > dpkg-deb --fsys-tarfile dpkg*.deb | tar -C / --keep-directory-symlink > --extract --file - That is totally unintuitive, though. Greetings Marc -- - Marc Haber | "I don't trust Computers. They | Mailadresse im Header Leimen, Germany| lose things."Winona Ryder | Fon: *49 6224 1600402 Nordisch by Nature | How to make an American Quilt | Fax: *49 6224 1600421
Bug#989602: dpkg-deb overwrites symlinks with directories
On Tue, 08 Jun 2021 14:08:46 +0200 Marc Haber wrote: > dpkg-deb -x package.deb happily overwrites symlinks on the filesystems > with directories. I don't know whether this is desired behavior. > > tl;dr: > For some reason, a system of mine ended up without > /sbin/start-stop-daemon. Not knowing about dpkg --force-bad-path, I was > unable to use dpkg to repair dpkg because dpkg refuses work if there is > no /sbin/start-stop-daemon. > > dpkg-deb -x /var/cache/apt/archives/dpkg*.deb / happily replaced the > /sbin => /usr/sbin with an /sbin directory containing only > /sbin/start-stop-daemon. > > Wouldn't it be nicer to have dpkg follow symlinks before creating > directories in the times of usrmerge? > > Severity: minor because dpkg --force-bad-path --install dpkg*.deb works. you can also use: dpkg-deb --fsys-tarfile dpkg*.deb | tar -C / --keep-directory-symlink --extract --file - Thanks! cheers, josch signature.asc Description: signature
Bug#989602: dpkg-deb overwrites symlinks with directories
Package: dpkg Version: 1.20.9 Severity: minor Hi, dpkg-deb -x package.deb happily overwrites symlinks on the filesystems with directories. I don't know whether this is desired behavior. tl;dr: For some reason, a system of mine ended up without /sbin/start-stop-daemon. Not knowing about dpkg --force-bad-path, I was unable to use dpkg to repair dpkg because dpkg refuses work if there is no /sbin/start-stop-daemon. dpkg-deb -x /var/cache/apt/archives/dpkg*.deb / happily replaced the /sbin => /usr/sbin with an /sbin directory containing only /sbin/start-stop-daemon. Wouldn't it be nicer to have dpkg follow symlinks before creating directories in the times of usrmerge? Severity: minor because dpkg --force-bad-path --install dpkg*.deb works. Greetings Marc -- Package-specific info: -- System Information: Debian Release: 11.0 APT prefers unstable APT policy: (500, 'unstable') Architecture: amd64 (x86_64) Foreign Architectures: i386 Kernel: Linux 5.12.9-zgws1 (SMP w/4 CPU threads) Kernel taint flags: TAINT_OOT_MODULE Locale: LANG=de_DE.utf8, LC_CTYPE=de_DE.utf8 (charmap=UTF-8), LANGUAGE=en Shell: /bin/sh linked to /bin/dash Init: systemd (via /run/systemd/system) Versions of packages dpkg depends on: ii libbz2-1.0 1.0.8-4 ii libc62.31-12 ii liblzma5 5.2.5-2 ii libselinux1 3.1-3 ii tar 1.34+dfsg-1 ii zlib1g 1:1.2.11.dfsg-2 dpkg recommends no packages. Versions of packages dpkg suggests: ii apt2.2.3 pn debsig-verify -- no debconf information