You are not logged in.

#1 2013-10-23 02:25:00

somniac
Member
Registered: 2013-10-23
Posts: 7

Installation - Pacstrap: error: db appears to be truncated

I've followed the Beginners' Guide a few times successfully, however this most recent time pacstrap isn't syncing the databases. When I try to run pacstrap, this is what happens:

root@archiso ~ # pacstrap /mnt base
==> Creating install root at /mnt
==> Installing packages to /mnt
:: Synchronizing package databases...
error: core.db appears to be truncated: 28253/0 bytes
error: core.db appears to be truncated: 28253/0 bytes
...
error: core.db appears to be truncated: 28253/0 bytes
error: core.db appears to be truncated: 28253/0 bytes
error: failed to update core (failed to retrieve some files)
error: extra.db appears to be truncated: 28253/0 bytes
error: extra.db appears to be truncated: 28253/0 bytes
...
error: extra.db appears to be truncated: 28253/0 bytes
error: extra.db appears to be truncated: 28253/0 bytes
error: failed to update extra (failed to retrieve some files)
error: community.db appears to be truncated: 28253/0 bytes
error: community.db appears to be truncated: 28253/0 bytes
...
error: community.db appears to be truncated: 28253/0 bytes
error: community.db appears to be truncated: 28253/0 bytes
error: failed to update community (failed to retrieve some files)
error: failed to synchronize any databases
error: failed to init transaction (failed to retrieve some files)
==> ERROR: Failed to install packages to new root

I couldn't find it on google or the forum search, but is there any common mistaked that I could have made?
Up to this point, I've partioned my disk, formatted the partitions, and mounted them.
My mirrorlist is the default one on the iso with the Australian aarnet server first:

root@archiso ~ # cat /etc/pacman.d/mirrorlist
##
## Arch Linux repository mirrorlist
## Sorted by mirror score from mirror status page
## Generated on 2013-10-01
##

## Score: 1.5, Australia
Server = http://mirror.aarnet.edu.au/pub/archlinux/$repo/os/$arch
Server = http://ftp.swin.edu.au/archlinux/$repo/os/$arch
Server = http://ftp.iinet.net.au/pub/archlinux/$repo/os/$arch
Server = http://mirror.internode.on.net/pub/archlinux/$repo/os/$arch
Server = http://mirror.optus.net/archlinux/$repo/os/$arch
Server = http://syd.mirror.rackspace.com/archlinux/$repo/os/$arch
Server = http://archlinux.mirror.uber.com.au/$repo/os/$arch
...

I can sync with these servers on pacman on my other Arch installations just fine. Also, I can ping the server with no problems:

2 root@archiso ~ # ping -c 3 mirror.aarnet.edu.au                            :(
PING mirror.aarnet.edu.au (202.158.214.106) 56(84) bytes of data.
64 bytes from mirror.aarnet.edu.au (202.158.214.106): icmp_seq=1 ttl=57 time=4.17 ms
64 bytes from mirror.aarnet.edu.au (202.158.214.106): icmp_seq=2 ttl=57 time=2.68 ms
64 bytes from mirror.aarnet.edu.au (202.158.214.106): icmp_seq=3 ttl=57 time=1.78 ms

--- mirror.aarnet.edu.au ping statistics ---
3 packets transmitted, 3 received, 0% packet loss, time 2003ms
rtt min/avg/max/mdev = 1.783/2.877/4.170/0.986 ms

/var/log/pacman.log doesn't exist, and there's nothing alarming to me in dmesg, although I can post it if it will help.
I've installed Arch previously on this laptop successfully, but I can't think of what, if anything, I changed.
Here's lsblk and fdisk -l /dev/sda

root@archiso ~ # lsblk            
NAME              MAJ:MIN RM   SIZE RO TYPE MOUNTPOINT
sda                 8:0    0 465.8G  0 disk 
├─sda1              8:1    0     2G  0 part [SWAP]
├─sda2              8:2    0    32G  0 part /mnt
└─sda3              8:3    0 431.8G  0 part 
sdb                 8:16   1   3.8G  0 disk 
├─sdb1              8:17   1   529M  0 part /run/archiso/bootmnt
└─sdb2              8:18   1    31M  0 part 
sr0                11:0    1  1024M  0 rom  
loop0               7:0    0 228.8M  1 loop /run/archiso/sfs/root-image
loop1               7:1    0   1.5G  1 loop 
└─arch_root-image 254:0    0   1.5G  0 dm   /
loop2               7:2    0   1.5G  0 loop 
└─arch_root-image 254:0    0   1.5G  0 dm   /
root@archiso ~ # fdisk -l /dev/sda

Disk /dev/sda: 500.1 GB, 500107862016 bytes, 976773168 sectors
Units = sectors of 1 * 512 = 512 bytes
Sector size (logical/physical): 512 bytes / 4096 bytes
I/O size (minimum/optimal): 4096 bytes / 4096 bytes
Disk label type: dos
Disk identifier: 0x93281591

   Device Boot      Start         End      Blocks   Id  System
/dev/sda1            2048     4196351     2097152   83  Linux
/dev/sda2         4196352    71305215    33554432   83  Linux
/dev/sda3   *    71305216   976773167   452733976    7  HPFS/NTFS/exFAT

Also, move this to Installation if that's where it belongs, I'm a newbie so Newbie Corner.

Edit: also, I am using archlinux-2013.10.01-dual.iso written to a USB flash drive, I've checked the checksum.

Last edited by somniac (2013-10-23 02:27:51)

Offline

#2 2013-10-23 03:14:30

WonderWoofy
Member
From: Los Gatos, CA
Registered: 2012-05-19
Posts: 8,414

Re: Installation - Pacstrap: error: db appears to be truncated

Did you try reordering the mirrors or issuing an -Syy (force resync)?

Offline

#3 2013-10-23 04:03:14

somniac
Member
Registered: 2013-10-23
Posts: 7

Re: Installation - Pacstrap: error: db appears to be truncated

Yeah all the mirrors have the same problem and pacman -Syy prints the same messages.

Offline

#4 2013-10-23 04:21:11

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

Re: Installation - Pacstrap: error: db appears to be truncated

Are you on a network that would might be redirecting you to a login page or something? Take a look at /mnt/var/lib/pacman/sync/ and see what's there.

Last edited by Scimmia (2013-10-23 04:23:04)

Offline

#5 2013-10-23 04:52:26

somniac
Member
Registered: 2013-10-23
Posts: 7

Re: Installation - Pacstrap: error: db appears to be truncated

I am on a network that requires you to log in every 24 hours, but I think I am logged in. If ping mirror.aarnet.edu.au resolves to the correct IP, then there shouldn't be any problems there right? Also, nothing in /mnt/var/lib/pacman/sync/.

root@archiso ~ # ls -la /mnt/var/lib/pacman     
total 12
drwxr-xr-x 3 root root 4096 Oct 23 14:48 ./
drwxr-xr-x 3 root root 4096 Oct 23 14:48 ../
drwxr-xr-x 2 root root 4096 Oct 23 14:48 sync/
root@archiso ~ # ls -la /mnt/var/lib/pacman/sync
total 8
drwxr-xr-x 2 root root 4096 Oct 23 14:48 ./
drwxr-xr-x 3 root root 4096 Oct 23 14:48 ../

Is there any way that I can get the packages/db onto the laptop from my desktop through like a usb drive or LAN, and then work out what is going on with a working system?

Offline

Board footer

Powered by FluxBB