You are not logged in.

#1 2015-09-27 02:18:37

solas9817
Member
Registered: 2014-06-07
Posts: 9

Can't install anything, and pacman -Syy isnt the same

I screwed something up. I can't say what exactly, because the terminal window is long closed (the one which I think is where I caused this whole thing). I think it prompted me about removing invalid and no longer needed keys and I said yes to approximately 10 of them, but they kept on coming and I got a bad feeling so I exited.

Now when I try to install things I get this:
[user380@arch ~]$ sudo pacman -S xfce4
[sudo] password for user380:
error: could not open file /var/lib/pacman/sync/core.db: Unrecognized archive format
error: could not open file /var/lib/pacman/sync/extra.db: Unrecognized archive format
error: could not open file /var/lib/pacman/sync/community.db: Unrecognized archive format
error: could not open file /var/lib/pacman/sync/core.db: Unrecognized archive format
error: could not open file /var/lib/pacman/sync/extra.db: Unrecognized archive format
error: could not open file /var/lib/pacman/sync/community.db: Unrecognized archive format
error: could not open file /var/lib/pacman/sync/core.db: Unrecognized archive format
error: could not open file /var/lib/pacman/sync/extra.db: Unrecognized archive format
error: could not open file /var/lib/pacman/sync/community.db: Unrecognized archive format
error: target not found: xfce4


And when I try enter "pacman -Syy" I get this:
[sudo] password for solas:
:: Synchronizing package databases...
[user380@arch ~]$

It says synchronizing, like it's supposed to. But it doesn't show anything after that. It just waits about three seconds then shows where I'm supposed to enter another command. As you can see above.

I'm so screwed... please help
thank you

Last edited by solas9817 (2015-09-27 18:57:53)

Offline

#2 2015-09-27 02:25:16

exadrid
Member
From: Ottawa, Ontario, Canada
Registered: 2010-01-27
Posts: 29

Re: Can't install anything, and pacman -Syy isnt the same

Offline

#3 2015-09-27 04:03:42

solas9817
Member
Registered: 2014-06-07
Posts: 9

Re: Can't install anything, and pacman -Syy isnt the same

Solved, installed archlinux-keyring
So simple... Cant believe I wasted a forum post. I'd delete it, but who knows it could help others

Offline

#4 2015-09-27 04:47:06

Scimmia
Fellow
Registered: 2012-09-01
Posts: 13,729

Re: Can't install anything, and pacman -Syy isnt the same

If you keep using pacman -Syy, you're going to keep having problems. Partial updates are not supported.

Offline

#5 2015-09-27 18:56:42

solas9817
Member
Registered: 2014-06-07
Posts: 9

Re: Can't install anything, and pacman -Syy isnt the same

As far as I know, pacman -Syy is the same thing as pacman -Sy except it will force refresh even if it is up to date.
I'm not trying to imply that I know more than you, just maybe you were thinking of something else. Correct me if I'm wrong.

Offline

#6 2015-09-27 19:13:35

Raynman
Member
Registered: 2011-10-22
Posts: 1,539

Re: Can't install anything, and pacman -Syy isnt the same

Yes, it's pretty much the same, so it's just as bad.

Offline

#7 2015-09-27 20:16:01

phw
Member
Registered: 2013-05-27
Posts: 318

Re: Can't install anything, and pacman -Syy isnt the same

solas9817 wrote:

As far as I know, pacman -Syy is the same thing as pacman -Sy except it will force refresh even if it is up to date.
I'm not trying to imply that I know more than you, just maybe you were thinking of something else. Correct me if I'm wrong.

Yes, but what the other posters meant was that if you just do a "pacman -Sy" and then "pacman -S somepackage" you are doing just partial updates of your system (the package you specified). But you really should run an update of all packages ("pacman -Syu") regularly.

Offline

#8 2015-09-28 01:44:29

solas9817
Member
Registered: 2014-06-07
Posts: 9

Re: Can't install anything, and pacman -Syy isnt the same

Ah, okay. Yes, I do run "pacman -Syu" regularly. Thank you for the warning Scimmia, and thank you for the clarification Raynman and phw.
My problem was that "pacman -Syu" wasn't working, so I had to install archlinux-keyring specifically. Once that fixed the problem, then I was able to run "pacman -Syu".

Offline

Board footer

Powered by FluxBB