Pacman not functioning in Arch


 
Thread Tools Search this Thread
Operating Systems Linux Pacman not functioning in Arch
# 1  
Old 10-24-2011
Pacman not functioning in Arch

Currently in a fresh install of arch linux and I have been trying to install some stuff with pacman. Every operation returns multiple errors such as no address record when using -Sy and unable to retrieve file when trying to install something. I have tried so many different configurations of pacman.conf and pacman.d/mirrors and none have worked. What should it look like, or how should I fix it? Currently running in virtualbox ose.

Last edited by a sandwhich; 10-25-2011 at 11:06 AM..
# 2  
Old 10-30-2011
Seeing as how I probably did not give enough detail for anything to be done, could any one direct me to a page instructing pacman best practices and or configuration?
# 3  
Old 10-31-2011
The "no address record" error you've specified is interesting. Are you sure that the network has been correctly configured? What's the NIC setting in VirtualBox, what are the network settings in /etc/rc.conf (or /etc/network.d/* if you're using netcfg), what's in /etc/resolv.conf?
# 4  
Old 11-01-2011
Here is the rc.conf file(only the uncommented parts):
Code:
LOCALE="en_US.UTF-8"
DAEMON_LOCALE="no"
HARDWARECLOCK="localtime"
TIMEZONE="America/Chicago"
KEYMAP="us"
CONSOLEFONT=
CONSOLEMAP=
USECOLOR="yes"
MODULES=()
UDEV_TIMEOUT=30
USEDMRAID="no"
USEBTRFS="no"
USELVM="no"
HOSTNAME="myhost"
interface=
address=
netmask=
broadcast=
gateway=
NETWORK_PERSIST="no"
DAEMONS=(hwclock syslog-ng network netfs crond)

This is resolv.conf
Code:
#
#/etc/resolv.conf
#
#search <yourdomain.tld>
#nameserver<ip>
# End of file


Last edited by pludi; 11-02-2011 at 05:41 AM..
# 5  
Old 11-02-2011
Quote:
Originally Posted by a sandwhich
Code:
HOSTNAME="myhost"
interface=
address=
netmask=
broadcast=
gateway=
NETWORK_PERSIST="no"
DAEMONS=(hwclock syslog-ng network netfs crond)

This is resolv.conf
Code:
#
#/etc/resolv.conf
#
#search <yourdomain.tld>
#nameserver<ip>
# End of file

Well, there's your problem. Your network isn't defined, so the machine can't connect to anywhere. And even if it could, your resolv.conf is empty, so it wouldn't know about any DNS servers for name resolution.

If a dynamic address is enough, set the entries in rc.conf like this:
Code:
interface="eth0"
address=
netmask=
broadcast=
gateway=

Run /etc/rc.d/network restart, and try a ping to 8.8.8.8. If that works, try a ping to any URL you'd like.

More information here.
This User Gave Thanks to pludi For This Post:
# 6  
Old 11-02-2011
Yes, thank you. Worked very well. It makes sense, but I am not entirely familiar with network configuration in linux.
Login or Register to Ask a Question

Previous Thread | Next Thread

8 More Discussions You Might Find Interesting

1. Infrastructure Monitoring

Failed to read from eventlog: 31: A device attached to the system is not functioning.

Hello Team, I am getting below error on nagios to monitor windows Server 2012. Failed to read from eventlog: 31: A device attached to the system is not functioning. basically we are monitoring Eventlog file for server reboot or unexpected shutdown. Could you please help here. What could be... (0 Replies)
Discussion started by: ghpradeep
0 Replies

2. Red Hat

Functioning of 'cat' command

I need to display file, given on the command line to 'stdout' in Linux( not in red-hat )..Just like how 'cat' command is working! Basically I need to develop that command's coding part! Can somebody suggest some algorithm? (2 Replies)
Discussion started by: Mathew Antony
2 Replies

3. Shell Programming and Scripting

Expect not functioning

Hello, I plan on building an expect script and a ksh script to acquire some information and pass to the expect script. I'm very new with expect and figured I would start off slow. However, I use the spawn telnet command, run the script, and it prints out "spawn telnet" rather than doing... (3 Replies)
Discussion started by: Neqtor
3 Replies

4. Shell Programming and Scripting

cp command not functioning regularly

I have written a korn shell script . I copy a file from one mounted directory to other using cp command. This script runs daily at a time. But sporidally it fails to copy the files. So I have missing files at the destination directory for some days. Is my method a good one or is there some... (5 Replies)
Discussion started by: Golden Egg
5 Replies

5. Ubuntu

Can't find arch directory

I am using ubuntu server, and while i am trying to configure lan bonding, i could not find the directory /etc/modprobe.d/arch , what i need to install ?! (1 Reply)
Discussion started by: XP_2600
1 Replies

6. AIX

Advice - X11 not functioning

Hello Folks We have following software installed on our AIX box X11.vfb - Virtual Frame Buffer Software We also see its process running root 528406 1 0 06:27:18 - 0:00 /usr/bin/X11/X -force -vfb -x abx -x dbe -x GLX :1 Following is the o/p of 'lslpp' X11.vfb 5.3.0.50... (4 Replies)
Discussion started by: ak835
4 Replies

7. Ubuntu

Needs for installing Arch/Linux?

I'm pretty new to *nix systems and been using Ubuntu and Debian for a while but think it's pretty much 'overkill' lauching any of these systems. I've always been in need of a simple system, with a simple X where I can get the necessary programs myself. Yesterday I read about Arch (and it got me).... (1 Reply)
Discussion started by: riwa
1 Replies

8. UNIX for Advanced & Expert Users

Ultra 5 Arch (URGENT)

I was trying to migrate a DB into an Ultra 5 and it was easy for me to buy a new 80GB ide disk but OS (Solaris 2.6) does not recognize the disk. OS belives that it is a 8GB disk, my point of view is to try to update the OBP to a newer version. (3.25.3 is the current one ) Does anyone knows if... (3 Replies)
Discussion started by: alex blanco
3 Replies
Login or Register to Ask a Question