You are not logged in.

#1 2004-06-09 23:05:54

yang
Member
Registered: 2004-06-09
Posts: 14

could not open sync database, extra have you use ---r

I can not use "pacman -S" in my archlinux, anyone helpes me? :idea:

while I use "pacman -S", it always warns that:
"error: could not open sync database, extra have you use ---refresh yet?"

what is the problem, it makes me confused :evil:


................................................
archlinux 0.6
dell laptop
3com 3c59x
adsl-------LAN

Offline

#2 2004-06-10 01:13:24

Dusty
Schwag Merchant
From: Medicine Hat, Alberta, Canada
Registered: 2004-01-18
Posts: 5,986
Website

Re: could not open sync database, extra have you use ---r

Try running

pacman -Sy

before

pacman -S [package]

If that doesn't work, make sure your /etc/pacman.conf is properly set up. You could post it here for people to look at if it isn't working.

Dusty

Offline

#3 2005-10-05 23:06:20

ambalex
Member
Registered: 2004-11-17
Posts: 87

Re: could not open sync database, extra have you use ---r

Hi!

I have the same problem if I try

pacman -S anypackage

could not open sync database: extra
have you used --refresh yet?

If I try

pacman -Sy

I get

:: Syncronizing package database...
segmentation fault


here is my pacman.conf:

#
# /etc/pacman.conf
#
# NOTE: If you find a mirror that is geographically close to you, please
#       move it to the top of the server list, so pacman will choose it
#       first.
#
# To re-sort your mirror lists by ping/traceroute results, use the
# /usr/bin/sortmirrors script.  It requires the "netselect" package.
#

# See the pacman manpage for option directives

#
# GENERAL OPTIONS
#
[options]
LogFile     = /var/log/pacman.log
NoUpgrade   = etc/passwd etc/group etc/shadow etc/sudoers
NoUpgrade   = etc/fstab etc/raidtab etc/ld.so.conf
NoUpgrade   = etc/rc.conf etc/rc.local
NoUpgrade   = etc/modprobe.conf etc/modules.conf
NoUpgrade   = etc/lilo.conf boot/grub/menu.lst
HoldPkg     = pacman glibc
#ProxyServer = <proxy.tuwien.ac.at>:[1080]
#XferCommand = /usr/bin/wget --passive-ftp -c -O %o %u

#
# REPOSITORIES
#   - can be defined here or included from another file
#   - pacman will search repositories in the order defined here.
#   - local/custom mirrors can be added here or in separate files
#

#[testing]
#Server = ftp://gd.tuwien.ac.at/opsys/linux/archlinux/testing/

[current]
# Add your preferred servers here, they will be used first
Server = ftp://gd.tuwien.ac.at/opsys/linux/archl … nt/os/i686
Include = /etc/pacman.d/current

[extra]
# Add your preferred servers here, they will be used first
Server = ftp://gd.tuwien.ac.at/opsys/linux/archl … ra/os/i686
Include = /etc/pacman.d/extra

#[unstable]
# Add your preferred servers here, they will be used first
#Server = ftp://gd.tuwien.ac.at/opsys/linux/archlinux/unstable/
#Include = /etc/pacman.d/unstable

#[community]
# Add your preferred servers here, they will be used first
Server = ftp://gd.tuwien.ac.at/opsys/linux/archl … ty/os/i686
#Include = /etc/pacman.d/community

# An example of a custom package repository.  See the pacman manpage for
# tips on creating your own repositories.
#[custom]
#Server = file:///home/custompkgs

thanks for the help.

Offline

#4 2005-10-06 00:56:20

Snowman
Developer/Forum Fellow
From: Montreal, Canada
Registered: 2004-08-20
Posts: 5,212

Re: could not open sync database, extra have you use ---r

Not sure if it's the cause of the problem, but remove the # in front of [community] and try again.

Also, I see that you're using both the Server and Include lines. Usually, only one of these is used.   If you want to use the ftp://gd.tuwien.ac.at mirror, you can comment the Include line in pacman.conf or move the server at the top of the files in /etc/pacman.d/

Offline

#5 2005-10-06 02:25:00

Dusty
Schwag Merchant
From: Medicine Hat, Alberta, Canada
Registered: 2004-01-18
Posts: 5,986
Website

Re: could not open sync database, extra have you use ---r

Snowman wrote:

Also, I see that you're using both the Server and Include lines. Usually, only one of these is used.

there's nothing wrong with that. It allows you to put preferred mirrors in pacman.conf and allow the pacman.d mirrors to be auto updated by updates to pacman package.

Dusty

Offline

#6 2005-10-09 19:18:08

ambalex
Member
Registered: 2004-11-17
Posts: 87

Re: could not open sync database, extra have you use ---r

Hi!

Thanks for the replies, but I tried commenting/uncommenting the include lines, the [community] line, and I still have the same problem...

cheers

Offline

#7 2005-10-09 20:05:26

ambalex
Member
Registered: 2004-11-17
Posts: 87

Re: could not open sync database, extra have you use ---r

got it working, commenting the 'include' lines and moving the prefered servers to the top of the pacman-d files.

Offline

#8 2005-10-10 16:57:41

ambalex
Member
Registered: 2004-11-17
Posts: 87

Re: could not open sync database, extra have you use ---r

Hello again!

I upgraded my system using

pacman -Su

and when restarting it, I got the following message on boot-up:

VFS: Cannot open root device "discs/disc0/part5" or unknown-block(0,0)
please append a correct "root=" boot option
Kernel panic - not syncing: VFS: unable to mount root fs on unknown-block (0,0)

can anyone help me?

Offline

#9 2005-10-10 17:45:50

Deciare
Member
From: UTC -8:00
Registered: 2005-05-05
Posts: 79

Re: could not open sync database, extra have you use ---r

DevFS device names are no longer supported by the new kernel. Try appending (or changing)

root=/dev/hda5

or

root=/dev/sda5

in the bootloader entry before booting.

Consider reading http://bbs.archlinux.org/viewtopic.php?t=15585 for a description of common problems associated with the most recent major update, along with their solutions.

Offline

#10 2005-10-10 18:39:32

T-Dawg
Forum Fellow
From: Charlotte, NC
Registered: 2005-01-29
Posts: 2,736

Re: could not open sync database, extra have you use ---r

you may have to change your fstab entries as well.
note that /dev/hdxy is for ide drives while /dev/sdxy is for scsi or sata drivers.

Offline

#11 2005-10-10 19:18:45

ambalex
Member
Registered: 2004-11-17
Posts: 87

Re: could not open sync database, extra have you use ---r

hi!
thanks for the help.

I've managed to change my entries in the grub file menu.lst, now it looks like

root   (hd0,4)
kernel /boot/vmlinuz26 root=/dev/hda5

and there is no kernel panic message.

Though I also changed the /etc/fstab file to something like /dev/hdx (for both swap and /) there are problems when mounting the filesystems further on the boot.  I am then allowed to login as root (on / ro but with the possibility to make it rw), and adviced to check something about the filesystems.
Could it be because my / filesystem is ext3 and not ext2 (from the message I have, it looks like that is the issue).

any clue?

Offline

#12 2005-10-10 20:53:40

ambalex
Member
Registered: 2004-11-17
Posts: 87

Re: could not open sync database, extra have you use ---r

here is the mesage I get when booting:

fsck.ext3: No such file or directory while trying to open /dev/hda5
/dev/hda5:
The superbolck could not be read or does not describe a correct filesystem. If the device is valid and it really contains an ext2 filesystem (and not swap or ufs or something else), then the superblock is corrupted and you might want to try running e2fsck with an alternative superblock: e2fsck -b 8193 <device>

I also got a look in the /dev directory, and only 4 files are present:

console initctl null zero

last but not least... I thought I had udev installed, but it turned out that I haven't...

is there still hope??

Offline

#13 2005-10-10 21:16:31

Deciare
Member
From: UTC -8:00
Registered: 2005-05-05
Posts: 79

Re: could not open sync database, extra have you use ---r

Uh, how unusual. I don't know if it'll help, but can you get to the commands in /sbin? If you can find /sbin/migrate-udev , running it should recreate the device nodes you found in /dev in a way that udev likes.

Offline

#14 2005-10-11 07:35:51

ambalex
Member
Registered: 2004-11-17
Posts: 87

Re: could not open sync database, extra have you use ---r

thanks for the help...

yeah, I can get the commands in /sbin, but unfortunately I haven't that one.
Could the migrate-udev command be found elsewhere?

Offline

#15 2005-10-11 16:12:34

Snowman
Developer/Forum Fellow
From: Montreal, Canada
Registered: 2004-08-20
Posts: 5,212

Re: could not open sync database, extra have you use ---r

migrate-udev is in /sbin. It's just a shell script included with udev. You can get it from abs.

Offline

#16 2005-10-11 21:54:01

ambalex
Member
Registered: 2004-11-17
Posts: 87

Re: could not open sync database, extra have you use ---r

As I said, I haven't udev installed, so I copied the code of migrate-udev found in

http://cvs.archlinux.org/cgi-bin/viewcv … cvs-markup

and after running the script the results were not what I was wainting for...

mktemp command not found
mount: special device /dev/hda5 does not exist
creating device nodes: mknod: 'dev/console' : No such file or directory
console mknod: 'dev/null' : No such file or directory
nullmknod: 'dev/zero' : No such file or directory
zero

... any light? someone?

Offline

#17 2005-10-11 22:04:23

Deciare
Member
From: UTC -8:00
Registered: 2005-05-05
Posts: 79

Re: could not open sync database, extra have you use ---r

You literally don't have the udev package installed? I thought you meant it figuratively...

You might still be able to use a livecd/rescue/install disc or somesuch to mount your hard drives. cmp's first post in http://bbs.archlinux.org/viewtopic.php?t=15802 gives instructions on how to do that. You could try installing udev (instead of initscripts) that way.

Offline

#18 2005-10-14 07:57:16

ambalex
Member
Registered: 2004-11-17
Posts: 87

Re: could not open sync database, extra have you use ---r

Well,

it was realy an silly thing to do.
I managed to back-up my data and made a new install.

thanks for all the help.

Offline

Board footer

Powered by FluxBB