You are not logged in.
Hi,
I've trawled the Wiki and forums for answers, changed, edited, everything but post a plea for help (until now!) about this... any help would be really appreciated!
Everytime I type "pacman --sync" (and other types of sync, refresh, etc) it comes up with "could not open sync database:extra have you used --refresh yet?" ... everytime I type "pacman --refresh" it just comes up with "root@christianpurefoy-]#
so i tried the network...
(/etc/rc.d/network start)
Failed
(ping 20744.144.16)
unknown
so it must be a network problem (as was kindly pointed out on these boards)
Here are the files i think are most relevant as they look now (with most relevant bits- I can't type everything!)....
(/etc/rc.conf)
HOSTNAME="christianpurefoy"
MODULES=(!usbserial !ide-scsi sis900)
lo="lo 10.68.2.164"
eth0="eth0 10.68.2.164 netmask 255.255.255.224 broadcast 10.68.2.161"
INTERFACES=(lo eth0)
gateway="default gw 212.100.67.195 dev eth0"
ROUTES=(gateway)
DAEMONS=(syslog-ng hotplug !pcmcia network netfs crond)
(/etc/hosts)
<ip-address> <hostname.doman.org>
10.68.2.164 christianpurefoy.localdomain christianpurefoy
(route)
Destination Gateway Genmask Flags Metric Ref Use Iface
10.68.2.160 * 255.255.255.224 U 0 0 0 ethn0
default christianpurefo 0.0.0.0 UG 0 0 0 ethn0
(ifconfig)
ethn0
Link encap:Ethernet HWaddr 00:03:25:1D:05:34
inet addr:10.68.2.164 Bcast:10.68.2.161 Mask:255.255.255.224
UP BORADCAST MULTICAST MTU:1500 Metric:1
RX packets:1630 errors:0 dropped:0 overruns:0 frame:0
TX packets:12 errors:0 dropped:0 overruns:0 carrier:0
collisions:0 txqueuelen:1000
RX bytes:98180 (95.8kb) TX:1064 (1.0Kb)
Interrupt:19 Base address:0xd800
lo
Link encap:local Loopback
inet addr:127.0.0.1 Mask:255.0.0.0
inet6 addr: : :1/128 Scope:Host
UP LOOPBACK RUNNING MTU:16436 Metric:1
RX packets:640 errors:0 dropped:0 overruns:0 frame:0
TX packets:640 errors:0 dropped:0 overruns:0 carrier:0
collisions:0 txqueuelen:0
RX bytes:49584 (48.4kb) TX:49584 (48.4Kb)
any help would be more than appreciated!
thanks,
christian
Offline
shouldn't your loopback be lo="lo 127.0.0.1"??
Offline
Okay several things have changed and it now all looks like this- but still after "exec /etc/rc.d/network start" it says network unreachable...
(/etc/rc.conf)
HOSTNAME="christianpurefoy"
MODULES=(!usbserial !ide-scsi sis900)
lo="lo 127.0.0.1"
eth0="eth0 10.68.2.164 netmask 255.255.255.224 broadcast 10.68.2.161"
INTERFACES=(lo eth0)
gateway="default gw 212.100.67.195 dev eth0"
ROUTES=(gateway)
DAEMONS=(syslog-ng hotplug !pcmcia network netfs crond)
(/etc/hosts)
<ip-address> <hostname.doman.org>
10.68.2.164 christianpurefoy.localdomain christianpurefoy
(route)
Destination Gateway Genmask Flags Metric Ref Use Iface
10.68.2.160 * 255.255.255.224 U 0 0 0 ethn0
(ifconfig)
ethn0
Link encap:Ethernet HWaddr 00:03:25:1D:05:34
inet addr:10.68.2.164 Bcast:10.68.2.161 Mask:255.255.255.224
UP BORADCAST MULTICAST MTU:1500 Metric:1
RX packets:278 errors:0 dropped:0 overruns:0 frame:0
TX packets:12 errors:0 dropped:0 overruns:0 carrier:0
collisions:0 txqueuelen:1000
RX bytes:16680 (16.2kb) TX:0 (0.0Kb)
Interrupt:19 Base address:0xd800
lo
Link encap:local Loopback
inet addr:127.0.0.1 Mask:255.0.0.0
inet6 addr: : :1/128 Scope:Host
UP LOOPBACK RUNNING MTU:16436 Metric:1
RX packets:0 errors:0 dropped:0 overruns:0 frame:0
TX packets:0 errors:0 dropped:0 overruns:0 carrier:0
collisions:0 txqueuelen:0
RX bytes:0 (0.0kb) TX:0 (0.0Kb)
thanks!
Offline
(/etc/hosts)
<ip-address> <hostname.doman.org>
10.68.2.164 christianpurefoy.localdomain christianpurefoy
127.0.0.1 here too. Please tell me you do have a static IP.
Offline
i was pretty sure i did until you said that... okay- in previous OS's I'd put those numbers into me' comp (eg. originally in Windows they'd be in my Internet Protocol (TCP/IP), or similiar places in Ubuntu, etc)
I'm sounding real newbie here but this would be one of those holes in my background knowledge :oops:
thanks!
Offline
change your hosts file to what I mentioned above. and change this line:
lo="lo 127.0.0.1"
eth0="eth0 10.68.2.164 netmask 255.255.255.224 broadcast 10.68.2.161"
INTERFACES=(lo eth0)
gateway="default gw 212.100.67.195 dev eth0"
ROUTES=(gateway)
to:
lo="lo 127.0.0.1"
eth0="dhcp"
#eth0="eth0 10.68.2.164 netmask 255.255.255.224 broadcast 10.68.2.161"
INTERFACES=(lo eth0)
gateway="default gw 212.100.67.195 dev eth0"
ROUTES=(!gateway)
that will used dhcp to setup your network (automatic configuration)
Offline
OKAY! I had been simply replacing my ethn0 numbers with ethn0="dchp"
okay- so what it NOW says when I exec /etc/rc.d/network start is... (though it says it real fast!)
/etc/rc.conf ethn0 line42: command not found
down:error fetching interface information:device not found
i have a suspicion what this might be refering to but no idea how to sort it...?! Thanks so much for putting the time into this (hopefully it'll help some others as well!)
christian
Offline
I dont understand. Why areyou using ethn0 instead of eth0?
Offline
sorry typo. it's:
/etc/rc.conf eth0 line42: command not found
/etc/rc.conf eth0 line42: command not found
down:error fetching interface information:device not found
Offline
post your rc.conf ....
Mr Green
Offline
okay- it's stopped saying device not found. Now what's happening is after exec /etc/rc.d/network start it goes busy for about 30seconds then says failed.
This is my /etc/rc.conf:
HOSTNAME="christianpurefoy"
MODULES=(!usbserial !ide-scsi sis900)
lo="lo 127.0.0.1"
eth0="dhcp"
#eth0="eth0 10.68.2.164 netmask 255.255.255.224 broadcast 10.68.2.161"
INTERFACES=(lo eth0)
gateway="default gw 10.68.2.161 dev eth0"
ROUTES=(!gateway)
DAEMONS=(syslog-ng hotplug !pcmcia network netfs crond)
(do i have my IP numbers mixed up? they normally run:
IP 10.68.2.163
subnet 255.255.255.224
default 10.68.2.161
Prefered DNS 212.100.72.2)
or is it something else? thanks!
Offline
I think it has something to do with which number i put where... eg. how does broadcast correspond to prefered DNS??
Also, my /etc/hosts looks like this:
#<ip-address> <hostname.domain.org>
10.68.2.164 christianpurefoy.localdomain christianpurefoy
is this number in the right place (see above for which is my IP, DNS, etc)? Or is it just a exclamation mark that i need to remove somewhere?
thanks!
christian
Offline
you tried /etc/rc.d/network restart
does ping works...
nameserver & hosts are set up....
etc...
Mr Green
Offline
#<ip-address> <hostname.domain.org> <hostname>
127.0.0.1 localhost.localdomain localhost Arch
my hosts file...
Mr Green
Offline
okay- i managed to get the network to go DONE when asked to connect.
i did this by removing the # by my eth0 details and the ! by Gateway- is this okay? so my config file now looks like:
MODULES=(!usbserial !ide-scsi sis900)
lo="lo 127.0.0.1"
eth0="dhcp"
eth0="eth0 10.68.2.164 netmask 255.255.255.224 broadcast 212.100.67.195"
INTERFACES=(lo eth0)
gateway="default gw 10.68.2.161 dev eth0"
ROUTES=(gateway)
DAEMONS=(syslog-ng hotplug !pcmcia network netfs crond)
Is this okay or is removing those two things generally seen as a bad idea?
(where my IP numbers are::
IP 10.68.2.163
subnet 255.255.255.224
default 10.68.2.161
Prefered DNS 212.100.72.2)
I then ping 207.44.144.16 and the pings pop up!
However, I then type pacman --refresh and it goes straight into #
I then type pacman -S, or pacman --sync, or pacman -Sy and it says "error: could not open sync database:extra have you used refresh yet?"
Is this now a pacman problem??
Offline
pacman -Sy should never give you that error
Offline
I don't know how you're getting any network with eth0 set as dhcp and static. Its either one or the other.
Simply.....amazing.
Offline
Agree with penguin, better comment the dhcp line.
About your network settings :
it looks as though 10.68.2.161 is the private ip-address for your router/adsl modem/cable modem .
if that is the case, try this :
gateway="default gw 10.68.2.161"
Disliking systemd intensely, but not satisfied with alternatives so focusing on taming systemd.
(A works at time B) && (time C > time B ) ≠ (A works at time C)
Offline
haha! well i don't know either but when i ping something it comes up with
"64 bytes from ...etc, etc"
regards pacman -Sy:
it comes up with a list of these:
gethostbyname: resource temporarily unavailable
error cannot connect to ... (eg. ftp.parrswood.net)
and at the end of the list it says:
failed to synchonise extra
error could not open sync database: extra
have you used --refresh yet?
do i need to change part of pacman's file, or something, or is my connection actually just a facade?
thanks!
Offline
Agree with penguin, better comment the dhcp line.
About your network settings :
it looks as though 10.68.2.161 is the private ip-address for your router/adsl modem/cable modem .
if that is the case, try this :
gateway="default gw 10.68.2.161"
double posted because christian probably hasn't seen it
Disliking systemd intensely, but not satisfied with alternatives so focusing on taming systemd.
(A works at time B) && (time C > time B ) ≠ (A works at time C)
Offline
I've #'d out the eth0="dhcp" line and put in the numbers you said... it now tells me that network is unreachable...
my /etc/rc.conf file now looks like this....
(/etc/rc.conf)
HOSTNAME="christianpurefoy"
MODULES=(!usbserial !ide-scsi sis900)
lo="lo 10.68.2.164"
#eth0="dhcp"
eth0="eth0 10.68.2.164 netmask 255.255.255.224 broadcast 212.100.67.195"
INTERFACES=(lo eth0)
gateway="default gw 10.68.2.61"
ROUTES=(gateway)
DAEMONS=(syslog-ng hotplug !pcmcia network netfs crond)
...?! thanks!
Offline
Ok , time to get back to basics.
try ping 127.0.0.1 (to make sure the network card is recognized correctly)
what is the device that has 10.68.2.161 as ip-address ?
Disliking systemd intensely, but not satisfied with alternatives so focusing on taming systemd.
(A works at time B) && (time C > time B ) ≠ (A works at time C)
Offline
when i ping 127.0.0.1 it pings fine (5 packets sent, 5 packets received)
the 10.68. 2.161 i have up through sis900 in my /etc/rc.conf file, which is my "SiS 900 based PCI fast ethernet adapter" (there is another piece of hardware which is "conexant SoftK56 data fax modem")...
Offline
(sounds like you're running on a laptop)
what other pcs / devices are on your network ?
edited :
what ip address are you using for that pc :
what devices are on 10.68.2.161 and 10.68.2.164 ?
Disliking systemd intensely, but not satisfied with alternatives so focusing on taming systemd.
(A works at time B) && (time C > time B ) ≠ (A works at time C)
Offline
yeah it's a laptop
ummm- okay I'm not quite following you ... on the IP address 10.68.2.163 my connection is going through the office network- the rest of the computers on the network are running on windows (and they are set to detect the IP automatically, but because of my penchant for linux I have my own IP,etc through that system)... I was ubuntu before this and no problems...
hope that's enough?
Offline