FS#73306 - Pacman deletes itself during update to 6.0.1-3, unable to finish update.
Attached to Project:
Arch Linux
Opened by Pawel Kraszewski (PKraszewski) - Sunday, 09 January 2022, 09:44 GMT
Last edited by Sven-Hendrik Haase (Svenstaro) - Monday, 07 February 2022, 07:13 GMT
Opened by Pawel Kraszewski (PKraszewski) - Sunday, 09 January 2022, 09:44 GMT
Last edited by Sven-Hendrik Haase (Svenstaro) - Monday, 07 February 2022, 07:13 GMT
|
Details
Description:
Pacman 6.0.1-3 generously deletes itself during update. It is hard to update pacman, when there's no pacman in system... You can't manually install it from cache, because cache is wiped along with pacman itself. Convenient. Steps to reproduce: > sudo pacman -Suy Steps to fix: 1/ Remove empty /var/lib/pacman/local/pacman-6.0.1-3 2/ Download pacman-6.0.1-3-x86_64.pkg.tar.zst from web 3/ Extract just /usr directory into root of your system (filling /usr/bin, /usr/share and /usr/lib with all the necessary goods) 4/ Force install with (now working) pacman -U --overwrite "*" pacman-6.0.1-3-x86_64.pkg.tar.zst Hope it helps |
This task depends upon
Closed by Sven-Hendrik Haase (Svenstaro)
Monday, 07 February 2022, 07:13 GMT
Reason for closing: Duplicate
Additional comments about closing: 2022-01-09: A task closure has been requested. Reason for request: Duplicate of FS#72228
and others
Monday, 07 February 2022, 07:13 GMT
Reason for closing: Duplicate
Additional comments about closing: 2022-01-09: A task closure has been requested. Reason for request: Duplicate of
As an aside, another option for fixing systems with a broken pacman is pacman-static.
"Yes, we know" is the worst kind of answer...
> As an aside, another option for fixing systems with a broken pacman is pacman-static.
Yes, and for fixing systems where kernel upgrade failed along the way, and you are left with kernel without initramfs, the solution is having linux-lts installed (because, oh my, you first remove old kernel and initramfs and only then _eventually_ install new ones). Like in "if you are careful enough, you can safely handle grenades with pin removed".
I still like Arch, just a little less passionately.
Symlinks are not the solution to every problem.
What is the procedure to update wiki? Just register account and propose fix?
I suppose the case might be closed.
---
Side note: AUR/pacman-static won't compile, if that's the version you mentioned.
If cache directory doesn't exist, pacman will create it anyway. (like `warning: no /var/cache/pacman/pkg/ cache exists, creating...`)
Also when the directory was moved (using `CacheDir` option), pacman update raises unnecessary warning (`warning: could not get file information for var/cache/pacman/pkg/`).