You are not logged in.

#1 2021-03-12 21:09:39

ruddy32
Member
Registered: 2016-02-29
Posts: 27

[solved] Pacman cannot install/update packages

Hi,
While installing pacma with pacman -S pacman, the system show :

...
pacman: /usr/share/man/man8/repo-add.8.gz exists in filesystem
pacman: /usr/share/man/man8/repo-remove.8.gz exists in filesystem
pacman: /usr/share/man/man8/vercmp.8.gz exists in filesystem
pacman: /usr/share/pacman/PKGBUILD-split.proto exists in filesystem
pacman: /usr/share/pacman/PKGBUILD-vcs.proto exists in filesystem
pacman: /usr/share/pacman/PKGBUILD.proto exists in filesystem
pacman: /usr/share/pacman/proto.install exists in filesystem
pacman: /usr/share/pkgconfig/libmakepkg.pc exists in filesystem
pacman: /usr/share/zsh/site-functions/_pacman exists in filesystem
Errors occurred, no packages were upgraded.

How to force pacman reinstall ?

System update with pacman -Syyu, still show :

:: Synchronizing package databases...
 core is up to date
 extra is up to date
 community is up to date
:: Starting full system upgrade...
 there is nothing to do

This is the same since few weeks. What's wrong on the system ?
Thx

Last edited by ruddy32 (2021-03-13 20:28:39)

Offline

#2 2021-03-12 21:20:48

jasonwryan
Anarchist
From: .nz
Registered: 2009-05-09
Posts: 30,426
Website

Re: [solved] Pacman cannot install/update packages


Arch + dwm   •   Mercurial repos  •   Surfraw

Registered Linux User #482438

Offline

#3 2021-03-12 21:24:16

WorMzy
Administrator
From: Scotland
Registered: 2010-06-16
Posts: 13,638
Website

Re: [solved] Pacman cannot install/update packages

Mod note: Not an installation issue, moving to NC


Sakura:-
Mobo: MSI MAG X570S TORPEDO MAX // Processor: AMD Ryzen 9 5950X @4.9GHz // GFX: AMD Radeon RX 5700 XT // RAM: 32GB (4x 8GB) Corsair DDR4 (@ 3000MHz) // Storage: 1x 3TB HDD, 6x 1TB SSD, 2x 120GB SSD, 1x 275GB M2 SSD

Making lemonade from lemons since 2015.

Offline

#4 2021-03-13 09:29:18

ruddy32
Member
Registered: 2016-02-29
Posts: 27

Re: [solved] Pacman cannot install/update packages

The problem is with all packages files. Pacman is not able to list installed packaged.

After running

pacman -S pacman --overwrite '*'

the following command

pacman -Qqe

return

pacman

I was using Yay to manage package updates. Is it a bad practice?

Is there a way to list installed packages without pacman?

As I understand, installed packages are available in /var/lib/pacman/local/, right?
This directory list only last installed packages (pacman and its dependencies)

Last edited by ruddy32 (2021-03-13 09:54:36)

Offline

#5 2021-03-13 10:04:44

GaKu999
Member
From: US/Eastern
Registered: 2020-06-21
Posts: 696

Re: [solved] Pacman cannot install/update packages

Do you remember doing something funky with your pacman local database?
Because it seems you obliterated it somewhere before this issue pooped up...

There are no “easy” solutions for this since you now must reinstall everything you had previously...

Last edited by GaKu999 (2021-03-13 18:35:46)


My reposSome snippets

Heisenberg might have been here.

Offline

#6 2021-03-13 10:28:52

ruddy32
Member
Registered: 2016-02-29
Posts: 27

Re: [solved] Pacman cannot install/update packages

One time there were a missing disk space while updating system. Maybe running a bad command to cleanup system sad

I retrieve all installed package using pacman.log.

grep -i '\[ALPM\] installed' /var/log/pacman.log | cut -d ' ' -f 5 | grep -v '(' > packlist
grep -i '\[ALPM\] installed' /var/log/pacman.log | cut -d ' ' -f 4 | grep -v 'installed' >> packlist
sort packlist | uniq > packlist

Offline

#7 2021-03-13 10:59:38

Awebb
Member
Registered: 2010-05-06
Posts: 6,688

Re: [solved] Pacman cannot install/update packages

While I don't believe yay did this, it is generally good practice to use pacman to manage local packages, because you'll never know what a pacman wrapper does while you're not looking. This is (as far as I know) one of the reasons why pacman wrappers will never™ be added to the official repositories.

As a sidenote, you don't need sort|uniq, because of sort -u.

Offline

#8 2021-03-13 13:13:55

seth
Member
From: Won't reply 2 private help req
Registered: 2012-09-03
Posts: 77,552

Re: [solved] Pacman cannot install/update packages

If you ever also removed packages, they'll be re-added this way.
https://wiki.archlinux.org/index.php/Pa … l_database

Offline

#9 2021-03-13 20:29:39

ruddy32
Member
Registered: 2016-02-29
Posts: 27

Re: [solved] Pacman cannot install/update packages

Thx seth. This works fine.

Offline

Board footer

Powered by FluxBB