You are not logged in.

#1 2022-11-02 10:32:07

ordinary.schreiber
Member
Registered: 2021-10-15
Posts: 146

[SOLVED] System upgrade fails due to mpg123 file or directory missing

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

#2 2022-11-02 11:28:43

philo
Member
Registered: 2015-01-26
Posts: 275

Re: [SOLVED] System upgrade fails due to mpg123 file or directory missing

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

#3 2022-11-02 13:01:47

ordinary.schreiber
Member
Registered: 2021-10-15
Posts: 146

Re: [SOLVED] System upgrade fails due to mpg123 file or directory missing

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 parole
philo wrote:
touch /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

#4 2022-11-02 13:02:40

V1del
Forum Moderator
Registered: 2012-10-16
Posts: 25,300

Re: [SOLVED] System upgrade fails due to mpg123 file or directory missing

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

#5 2022-11-02 13:17:20

ordinary.schreiber
Member
Registered: 2021-10-15
Posts: 146

Re: [SOLVED] System upgrade fails due to mpg123 file or directory missing

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

#6 2022-11-02 13:21:28

V1del
Forum Moderator
Registered: 2012-10-16
Posts: 25,300

Re: [SOLVED] System upgrade fails due to mpg123 file or directory missing

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

#7 2022-11-02 13:27:17

ordinary.schreiber
Member
Registered: 2021-10-15
Posts: 146

Re: [SOLVED] System upgrade fails due to mpg123 file or directory missing

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)
V1del wrote:

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

#8 2022-11-02 13:28:52

V1del
Forum Moderator
Registered: 2012-10-16
Posts: 25,300

Re: [SOLVED] System upgrade fails due to mpg123 file or directory missing

The one in the output...

rm -r /var/lib/pacman/local/mpg123-1.31.0-1 && pacman -Sy mpg123 --overwrite "*" && pacman -Syu

Last edited by V1del (2022-11-02 13:30:58)

Offline

#9 2022-11-02 13:32:22

ordinary.schreiber
Member
Registered: 2021-10-15
Posts: 146

Re: [SOLVED] System upgrade fails due to mpg123 file or directory missing

Thank you so much! I was now able to perform a system upgrade.

Offline

Board footer

Powered by FluxBB