Database file does not exist

using…

pamac update --force-refresh -a

Preparing...
==== AUTHENTICATING FOR org.manjaro.pamac.commit ====
Authentication is required to install, update, or remove packages
Authenticating as: Robin Wheeler (robin0800)
Password: 
==== AUTHENTICATION COMPLETE ====
Synchronizing package databases...
Refreshing core.db...                                                              
Refreshing extra.db...                                                             
Refreshing multilib.db...                                                          
**Database file for core does not exist.                                             **
**Database file for extra does not exist.**
**Database file for multilib does not exist.**
Refreshing core.files...                                                           
Refreshing extra.files...                                                          
Refreshing multilib.files...                                                       
Refreshing AUR...                                                                  
Nothing to do.                                                                     
Transaction successfully finished.    
                                         

I don’t think the database errors are correct pacman does not say that?

this has been a hardly discussed issue since yesterday. pamac was buggy. you’ll need to update with pacman first and run pamac afterwards.
run

sudo pacman-mirrors -f 5 && sudo pacman -Scc && sudo pacman -Syu

and afterwards

pamac update --force-refresh --aur

check with

pamac update -a

Still there and removing the -a makes no difference

 pamac update --force-refresh
Preparing...
==== AUTHENTICATING FOR org.manjaro.pamac.commit ====
Authentication is required to install, update, or remove packages
Authenticating as: Robin Wheeler (robin0800)
Password: 
==== AUTHENTICATION COMPLETE ====
Synchronizing package databases...
Refreshing core.db...                                                           
Refreshing extra.db...                                                          
Refreshing multilib.db...                                                       
Database file for core does not exist.                                          
Database file for extra does not exist.
Database file for multilib does not exist.
Refreshing core.files...                                                        
Refreshing extra.files...                                                       
Refreshing multilib.files...                                                    
Refreshing AUR...                                                               
Nothing to do.                                                                  
Transaction successfully finished.

Think it might be another bug?

No, dude, you have to update with sudo pacman -Syu first.

Nothing makes any difference, its the “–force-refresh” that has the error? (libpamac is at 11.5.7-2)

may you open a own thread for it and describe what error occurs. describe it and post the related outputs.

1 Like

see post 170

Did you read any other post?

Try sudo rm -r /var/tmp/pamac

Yes I did all the things suggested and nothing changes the output of “–force-refresh”

i agree, there is still a problem with the dbs-files and the permissions. ugly it’s not the first time as you can see here

too late this evening to sort out and fiddle on it. hopefully the @Manjaro-Team will sort out this pitty. another groundhog day.

pamac upgrade --force-refresh

cp: reguläre Datei '/var/tmp/pamac/dbs/sync/community.files' kann nicht angelegt werden: Keine Berechtigung                                                                         
Es gibt nichts zu tun.
cp: reguläre Datei '/var/tmp/pamac/dbs/sync/community.files' kann nicht angelegt werden: Keine Berechtigung
cp: reguläre Datei '/var/tmp/pamac/dbs/sync/community.files' kann nicht angelegt werden: Keine Berechtigung

Excuse my ignorance if I am wrong here.

Yes, pamac is buggy right now.

BUT, isn’t pamac upgrade --force-refresh the same as sudo pacman -Syyu?

I get that he want’s to update his AUR as well, but the manager (pamac) is buggy right now so he could use another manager like yay if he cant wait and HAS to update AUR right this minute?

Why can’t you just post the actual contents of the output?

Nope, they don’t share databases. I mean that is not just a pacman frontend.

1 Like

You should remove the community entry from your /etc/pacman.conf

Huh, I had the understanding that they both shared database, if I update one, the other will read the updated lists. Guess not.

This makes me start to think of never using pamac again, if this is what I have to deal with, always updating BOTH. I had no idea.

I’ll change to use yay for AUR and pacman for my system I guess.

With pamac, you have both functionalities from the same program. You don’t need pacman, then.

Even with the outdated community repo added, pamac works here perfectly.

$ pamac update --force-refresh --aur
Preparing...
==== AUTHENTICATING FOR org.manjaro.pamac.commit ====
Authentication is required to install, update, or remove packages
Authenticating as: mithrial
Password: 
==== AUTHENTICATION COMPLETE ====
Synchronisiere Paketdatenbanken...
Aktualisierung von core.db...                                                                             
Aktualisierung von extra.db...                                                                            
Aktualisierung von community.db...                                                                        
Aktualisierung von core.files...                                                                          
Aktualisierung von extra.files...                                                                         
Aktualisierung von community.files...                                                                     
Refreshing AUR...                                                                                         
Nothing to do.                                                                                            
Transaction successfully finished.

(pamac fails at reading LANG/LANGUAGE from env, but I guess the German output can still be understood.)

It works in weird ways, if you do a pacman -Syu, Pamac will pick that up, but there are still two DB sets (see /var/lib/pacman/ and /var/tmp/pamac/).

The DB (as in sudo pacman -Fy) used to be, but is no longer shared.
[… as it seems @omano already pointed out at the same time above…]
Pamac still uses some configs from pacman at /etc/pacman.conf, the logs at /var/log/pacman.log, and the package cache at /var/cache/pacman/pkg/.

1 Like

Running “pacman -Fy” seems to have fixed it.

I am reluctant to mark this as solved, why do you have to run a "pacman command to make “pamac-cli” work ?

@philm