You are not logged in.
Until yesterday I was able to regularly update my system.
Although, today when I tried to check again with pacman -Syu I got the following error:
# pacman -Syu
:: Synchronizing package databases...
core is up to date
extra is up to date
community is up to date
:: Starting full system upgrade...
error: could not open file /var/lib/pacman/local/mpg123-1.31.0-1/desc: No such file or directory
resolving dependencies...
looking for conflicting packages...
warning: could not fully load metadata for package mpg123-1.31.0-1
error: failed to prepare transaction (invalid or corrupted package)I also tried to remove the package or reinstall, but it didn't work:
# pacman -R mpg123
error: could not open file /var/lib/pacman/local/mpg123-1.31.0-1/desc: No such file or directory
warning: could not fully load metadata for package mpg123-1.31.0-1
checking dependencies...
error: failed to prepare transaction (could not satisfy dependencies)
:: removing mpg123 breaks dependency 'mpg123' required by gst-plugins-good
# pacman -Sy mpg123
:: Synchronizing package databases...
core is up to date
extra is up to date
community is up to date
resolving dependencies...
looking for conflicting packages...
error: could not open file /var/lib/pacman/local/mpg123-1.31.0-1/desc: No such file or directory
warning: could not fully load metadata for package mpg123-1.31.0-1
error: failed to prepare transaction (invalid or corrupted package)What can I do here? Thank you in advance.
Last edited by ordinary.schreiber (2022-11-02 13:34:06)
Offline
Try to remove gst-plugins-good and touch the file:
touch /var/lib/pacman/local/mpg123-1.31.0-1/desc?
Last edited by philo (2022-11-02 11:43:13)
Offline
I couldn't remove gts-plugins-good because of this output:
$ sudo pacman -R gst-plugins-good
checking dependencies...
error: could not open file /var/lib/pacman/local/mpg123-1.31.0-1/desc: No such file or directory
error: failed to prepare transaction (could not satisfy dependencies)
:: removing gst-plugins-good breaks dependency 'gst-plugins-good' required by paroletouch /var/lib/pacman/local/mpg123-1.31.0-1/desc?
And this returns nothing... what else can I try?
Last edited by ordinary.schreiber (2022-11-02 13:21:06)
Offline
rerun the installation/upgrade after running the touch command
This happens if some package got incorrectly extracted and leaves some garbage files in your local pacman database, after touching and thus making the file exist you should be able to install/update mpg123 properly.
Last edited by V1del (2022-11-02 13:03:57)
Offline
I just returned the commands one after the other, but unfortunately I still can't update that single package or perform a full system upgrade either.
# pacman -R gst-plugins-good
checking dependencies...
error: failed to prepare transaction (could not satisfy dependencies)
:: removing gst-plugins-good breaks dependency 'gst-plugins-good' required by parole
# touch /var/lib/pacman/local/mpg123-1.31.0-1/desc
# pacman -Sy mpg123
resolving dependencies...
looking for conflicting packages...
error: could not open file /var/lib/pacman/local/mpg123-1.31.0-1/files: No such file or directory
warning: could not fully load metadata for package mpg123-1.31.0-1
error: failed to prepare transaction (invalid or corrupted package)
# pacman -Syu
:: Synchronizing package databases...
core is up to date
extra is up to date
community is up to date
:: Starting full system upgrade...
resolving dependencies...
looking for conflicting packages...
error: could not open file /var/lib/pacman/local/mpg123-1.31.0-1/files: No such file or directory
warning: could not fully load metadata for package mpg123-1.31.0-1
error: failed to prepare transaction (invalid or corrupted package)Maybe I am missing something else...
Last edited by ordinary.schreiber (2022-11-02 13:20:44)
Offline
Either touch all the files popping up or you can also just remove the corrupted mpg123-1.31.0-1/ dir completely and redo the update.
Alternatively
pacman -Sy mpg123 --dbonly && pacman -Syu mpg123?
Last edited by V1del (2022-11-02 13:23:51)
Offline
That last command returns the following:
# pacman -Sy mpg123 --dbonly && pacman -Syu mpg123
:: Synchronizing package databases...
core is up to date
extra is up to date
community is up to date
resolving dependencies...
looking for conflicting packages...
error: could not open file /var/lib/pacman/local/mpg123-1.31.0-1/files: No such file or directory
warning: could not fully load metadata for package mpg123-1.31.0-1
error: failed to prepare transaction (invalid or corrupted package)or you can also just remove the corrupted mpg123-1.31.0-1/ dir completely and redo the update.
So would this work anyways? In this case, what directory should I look for?
Offline
The one in the output...
rm -r /var/lib/pacman/local/mpg123-1.31.0-1 && pacman -Sy mpg123 --overwrite "*" && pacman -SyuLast edited by V1del (2022-11-02 13:30:58)
Offline
Thank you so much! I was now able to perform a system upgrade.
Offline