You are not logged in.

#1 2017-05-21 16:45:39

Dinodour
Member
Registered: 2017-05-21
Posts: 6

[SOLVED] Error with pacstrap, Unrecognized archive format

I am trying to install Arch on my laptop, with Windows 10 already installed, but every time I run "pacstrap -i /mnt base" I get this output

core is up to date
extra is up to date
community is up to date
error: could not open file /mnt/var/lib/pacman/sync/core.db: Unrecognized archive format
error: could not open file /mnt/var/lib/pacman/sync/extra.db: Unrecognized archive format
error: could not open file /mnt/var/lib/pacman/sync/core.db: Unrecognized archive format
error: could not open file /mnt/var/lib/pacman/sync/extra.db: Unrecognized archive format
error: could not open file /mnt/var/lib/pacman/sync/core.db: Unrecognized archive format
error: could not open file /mnt/var/lib/pacman/sync/extra.db: Unrecognized archive format
error: target not found: base
==> ERROR: Failed to install packages to new root

I can run "pacman -Syu" fine and I can also install packages with "pacman -S". My mirror list is working fine. I have made "SigLevel = Never" in "pacman.conf" to fix an earlier issue.

This topic has the same problem but was never resolved: https://bbs.archlinux.org/viewtopic.php?id=158372.

Last edited by Dinodour (2017-05-21 18:19:37)

Offline

#2 2017-05-21 16:57:35

ewaller
Administrator
From: Pasadena, CA
Registered: 2009-07-13
Posts: 19,739

Re: [SOLVED] Error with pacstrap, Unrecognized archive format

Welcome to Arch Linux

Try the advice here: https://bbs.archlinux.org/viewtopic.php?id=135310.  If that does not help, we will dig deeper.


Nothing is too wonderful to be true, if it be consistent with the laws of nature -- Michael Faraday
Sometimes it is the people no one can imagine anything of who do the things no one can imagine. -- Alan Turing
---
How to Ask Questions the Smart Way

Offline

#3 2017-05-21 17:02:24

Dinodour
Member
Registered: 2017-05-21
Posts: 6

Re: [SOLVED] Error with pacstrap, Unrecognized archive format

ewaller wrote:

Welcome to Arch Linux

Try the advice here: https://bbs.archlinux.org/viewtopic.php?id=135310.  If that does not help, we will dig deeper.

I have tried this and it has not worked. I can download the databases but pacstrap still gives me the same error.

Offline

#4 2017-05-21 17:36:24

ewaller
Administrator
From: Pasadena, CA
Registered: 2009-07-13
Posts: 19,739

Re: [SOLVED] Error with pacstrap, Unrecognized archive format

So, at this point, we:

  • Have booted from a live Media

  • Have connected to the Internet

  • Have partitioned the disk

  • Have formatted the partitions

  • Have mounted the partitions

At this point, what is the output of mount  ?
What are the file system types for each partition?

Last edited by ewaller (2017-05-21 17:37:41)


Nothing is too wonderful to be true, if it be consistent with the laws of nature -- Michael Faraday
Sometimes it is the people no one can imagine anything of who do the things no one can imagine. -- Alan Turing
---
How to Ask Questions the Smart Way

Offline

#5 2017-05-21 17:55:00

Dinodour
Member
Registered: 2017-05-21
Posts: 6

Re: [SOLVED] Error with pacstrap, Unrecognized archive format

ewaller wrote:

So, at this point, we:

  • Have booted from a live Media

  • Have connected to the Internet

  • Have partitioned the disk

  • Have formatted the partitions

  • Have mounted the partitions

That is correct

ewaller wrote:

At this point, what is the output of mount  ?

Photo of the output of mount:
http://i.imgur.com/aiEWhQk.jpg

ewaller wrote:

What are the file system types for each partition?

I think the image contains the filesystems at the bottom but I am not sure.

Offline

#6 2017-05-21 17:57:57

Scimmia
Fellow
Registered: 2012-09-01
Posts: 11,463

Re: [SOLVED] Error with pacstrap, Unrecognized archive format

What does `file /mnt/var/lib/pacman/sync/core.db` tell you?

Last edited by Scimmia (2017-05-21 17:58:10)

Offline

#7 2017-05-21 18:01:21

Dinodour
Member
Registered: 2017-05-21
Posts: 6

Re: [SOLVED] Error with pacstrap, Unrecognized archive format

Scimmia wrote:

What does `file /mnt/var/lib/pacman/sync/core.db` tell you?

/mnt/var/lib/pacman/sync/core.db: HTML document, ASCII text, with very long lines, with no line terminators

Offline

#8 2017-05-21 18:06:26

Scimmia
Fellow
Registered: 2012-09-01
Posts: 11,463

Re: [SOLVED] Error with pacstrap, Unrecognized archive format

So you grabbed a web page instead of the databases. Sounds like you don't have internet access; are you behind a captive portal?

Offline

#9 2017-05-21 18:11:30

Dinodour
Member
Registered: 2017-05-21
Posts: 6

Re: [SOLVED] Error with pacstrap, Unrecognized archive format

Scimmia wrote:

So you grabbed a web page instead of the databases. Sounds like you don't have internet access; are you behind a captive portal?

I definitely have internet access, I just installed cowsay using "pacman -S". I am also not behind a captive portal, it is a wpa2 network with known password.

Offline

#10 2017-05-21 18:12:48

Scimmia
Fellow
Registered: 2012-09-01
Posts: 11,463

Re: [SOLVED] Error with pacstrap, Unrecognized archive format

So take a look at the web page, see what it is. If you're certain you have access now, you can always remove the sync databases and redownload them.

Offline

#11 2017-05-21 18:18:43

Dinodour
Member
Registered: 2017-05-21
Posts: 6

Re: [SOLVED] Error with pacstrap, Unrecognized archive format

Scimmia wrote:

So take a look at the web page, see what it is. If you're certain you have access now, you can always remove the sync databases and redownload them.

Doing "rm -R /mnt/var/lib/pacman/sync/" worked instead of "rm -R /var/lib/pacman/sync/", thanks.

Offline

Board footer

Powered by FluxBB