Suddenly can not update. Might be an issue with "boost-libs"

sorry for the poor title. Anyway, I am running Manjaro Gnome on Kernel 6.0.6-1 and I am running in issues which prevent me from updating, both from pacman and from the graphical interface.

From Pacman:

sudo pacman -Syu                                          ✔  4m 20s  
:: Synchronizing package databases...
 core is up to date
 extra is up to date
 community is up to date
 multilib is up to date
 linux-surface is up to date
:: Starting full system upgrade...
error: could not open file /var/lib/pacman/local/boost-1.80.0-2/desc: No such file or directory
:: Replace nerd-fonts-terminus with community/ttf-terminus-nerd? [Y/n] n
resolving dependencies...
looking for conflicting packages...
:: ttf-terminus-nerd and nerd-fonts-terminus are in conflict. Remove nerd-fonts-terminus? [y/N] n
error: unresolvable package conflicts detected
error: failed to prepare transaction (conflicting dependencies)
:: ttf-terminus-nerd and nerd-fonts-terminus are in conflict

and from the graphical interface:
I just get a window telling me:

invalid or corrupted package

with only a “close” button

I can’t seem to locate the problem. Does anybody know where to start?

I tried:

sudo pacman -Scc                                                 ✔ 

Cache directory: /var/cache/pacman/pkg/
:: Do you want to remove ALL files from cache? [y/N] y
removing all files from cache...

Database directory: /var/lib/pacman/
:: Do you want to remove unused repositories? [Y/n] y
removing unused sync repositories...

and

sudo pamac reinstall boost-libs                           ✔  5s  
Preparing...
Warning: boost-libs-1.80.0-3 is up to date -- reinstalling
Resolving dependencies...
Checking inter-conflicts...

To reinstall (1):
  boost-libs  1.80.0-3    extra  2,2 MB

Total download size: 2,2 MB

Apply transaction ? [y/N] y
Download of boost-libs (1.80.0-3) started                                       
Download of boost-libs (1.80.0-3) finished                                      
Checking keyring...                                                        [1/1]
Checking integrity...                                                      [1/1]
Loading packages files...                                                  [1/1]
Checking file conflicts...                                                 [1/1]
Checking available disk space...                                           [1/1]
==> skipping timeshift-autosnap due skipRsyncAutosnap in /etc/timeshift-autosnap.conf set to TRUE.
Reinstalling boost-libs (1.80.0-3)...                                      [1/1]
ldconfig: File /usr/lib/libQt5Help.so is empty, not checked.
ldconfig: File /usr/lib/libQt5Designer.so.5 is empty, not checked.
ldconfig: File /usr/lib/libQt5DesignerComponents.so is empty, not checked.
ldconfig: File /usr/lib/libQt5Help.so.5 is empty, not checked.
ldconfig: File /usr/lib/libQt5DesignerComponents.so.5.15 is empty, not checked.
ldconfig: File /usr/lib/libQt5Help.so.5.15 is empty, not checked.
ldconfig: File /usr/lib/libQt5DesignerComponents.so.5 is empty, not checked.
ldconfig: File /usr/lib/libQt5Designer.so is empty, not checked.
ldconfig: File /usr/lib/libQt5Help.so.5.15.6 is empty, not checked.
ldconfig: File /usr/lib/libQt5DesignerComponents.so.5.15.6 is empty, not checked.
ldconfig: File /usr/lib/libQt5Designer.so.5.15.6 is empty, not checked.
ldconfig: File /usr/lib/libQt5Designer.so.5.15 is empty, not checked.
Transaction successfully finished.

Neither of these changed anything, though. :frowning:

What is the current output of:

sudo pacman-mirrors --geoip
pamac update --force-refresh

If you response with n to a question the whole transaction is cancelled.

If you response with n to a question the whole transaction is cancelled.

Answering with “y” doesn’t change much, I believe:

sudo pacman -Syu                                                 ✔ 
:: Synchronizing package databases...
 core is up to date
 extra is up to date
 community is up to date
 multilib is up to date
 linux-surface is up to date
:: Starting full system upgrade...
error: could not open file /var/lib/pacman/local/boost-1.80.0-2/desc: No such file or directory
:: Replace nerd-fonts-terminus with community/ttf-terminus-nerd? [Y/n] y
resolving dependencies...
looking for conflicting packages...
warning: could not fully load metadata for package boost-1.80.0-2
error: failed to prepare transaction (invalid or corrupted package)
sudo pacman-mirrors --geoip                             1 ✘  6s  
::INFO Downloading mirrors from Manjaro
::INFO => Mirror pool: https://repo.manjaro.org/mirrors.json
::INFO => Mirror status: https://repo.manjaro.org/status.json
::INFO User generated mirror list
::------------------------------------------------------------
::INFO Custom mirror file saved: /var/lib/pacman-mirrors/custom-mirrors.json
::INFO Using default mirror file
::INFO Querying mirrors - This may take some time
  0.354 Germany        : https://mirror.alpix.eu/manjaro/
  0.277 Germany        : https://mirrors.xtom.de/manjaro/
  0.375 Germany        : https://ftp.gwdg.de/pub/linux/manjaro/
  0.425 Germany        : https://mirror.23m.com/manjaro/
  0.425 Germany        : https://ftp.halifax.rwth-aachen.de/manjaro/
  0.364 Germany        : http://ftp.tu-chemnitz.de/pub/linux/manjaro/
  0.338 Germany        : https://mirror.netcologne.de/manjaro/
  0.266 Germany        : https://mirror.moson.org/manjaro/
  0.380 Germany        : https://mirror.informatik.tu-freiberg.de/manjaro/
  0.452 Germany        : https://mirror.tarnkappe.info/manjaro/
::INFO Writing mirror list
::Germany         : https://mirror.moson.org/manjaro/stable
::Germany         : https://mirrors.xtom.de/manjaro/stable
::Germany         : https://mirror.netcologne.de/manjaro/stable
::Germany         : https://mirror.alpix.eu/manjaro/stable
::Germany         : http://ftp.tu-chemnitz.de/pub/linux/manjaro/stable
::Germany         : https://ftp.gwdg.de/pub/linux/manjaro/stable
::Germany         : https://mirror.informatik.tu-freiberg.de/manjaro/stable
::Germany         : https://mirror.23m.com/manjaro/stable
::Germany         : https://ftp.halifax.rwth-aachen.de/manjaro/stable
::Germany         : https://mirror.tarnkappe.info/manjaro/stable
::INFO Mirror list generated and saved to: /etc/pacman.d/mirrorlist

and


pamac update --force-refresh                              ✔  6s  
Preparing...
Synchronizing package databases...
Refreshing core.db...                                                           
Refreshing extra.db...                                                          
Refreshing community.db...                                                      
Refreshing multilib.db...                                                       
Refreshing linux-surface.db...                                                  
Error: linux-surface.db: linux-surface: signature from "linux-surface" is invalid
invalid or corrupted database (PGP signature)
Refreshing core.files...                                                        
Refreshing extra.files...                                                       
Refreshing community.files...                                                   
Refreshing multilib.files...                                                                          
Refreshing linux-surface.files...                                                                     
Error: linux-surface.files: linux-surface: signature from "linux-surface" is invalid                  
invalid or corrupted database (PGP signature)
Failed to synchronize databases
Error: Failed to prepare transaction: invalid or corrupted database

Mmm, do you think that the whole problem has to do with the signature of the linux-surface database?

Yes, it’s a custom repository without any support from Manjaro. You are on yourself.

I commented the linux-surface line in pacman.conf and tried again:

pamac update --force-refresh                                                  1 ✘  3s  
Preparing...
Synchronizing package databases...
Refreshing core.db...                                                                                 
Refreshing extra.db...                                                                                
Refreshing community.db...                                                                            
Refreshing multilib.db...                                                                             
Refreshing core.files...                                                                              
Refreshing extra.files...                                                                             
Refreshing community.files...                                                                         
Refreshing multilib.files...                                                                          
Resolving dependencies...                                                                             
Checking inter-conflicts...
Warning: could not fully load metadata for package boost-1.80.0-2
Error: Failed to prepare transaction: invalid or corrupted package

Is there something else wrong with my machine, besides this (now removed) repo?

You could try to install boost again:

pamac reinstall boost
sudo pamac reinstall boost                                                  127 ✘  7s  
Preparing...
Resolving dependencies...
Checking inter-conflicts...
Warning: could not fully load metadata for package boost-1.80.0-2
Error: Failed to prepare transaction: invalid or corrupted package

:frowning:

Maybe sudo pacman -S --dbonly boost ?

(Also, don’t use sudo with pamac.)

Warning: could not fully load metadata for package boost-1.80.0-2
Error: Failed to prepare transaction: invalid or corrupted package

I suggest you delete corrupt package from cache

sudo rm  /var/cache/pacman/pkg/boost*

and install ttf-terminus-nerd to avoid possible return of font conflict error

pamac install ttf-terminus-nerd`
sudo pacman -S --dbonly boost                             1 ✘ 
resolving dependencies...
looking for conflicting packages...
error: could not open file /var/lib/pacman/local/boost-1.80.0-2/desc: No such file or directory
warning: could not fully load metadata for package boost-1.80.0-2
error: failed to prepare transaction (invalid or corrupted package)

The first command works, but then:

pamac install ttf-terminus-nerd                                1 ✘ 
Preparing...
Synchronizing package databases...
Resolving dependencies...
Checking inter-conflicts...
Warning: could not fully load metadata for package boost-1.80.0-2
Error: Failed to prepare transaction: invalid or corrupted package

Found a solution on Reddit:

sudo touch /var/lib/pacman/local/boost-1.80.0-2/desc
sudo pacman -S boost --overwrite '*'
sudo touch /var/lib/pacman/local/boost-1.80.0-2/files
sudo pacman -S boost --overwrite '*'

This topic was automatically closed 2 days after the last reply. New replies are no longer allowed.