You are not logged in.

#1 2010-05-18 00:07:16

i7920
Member
From: Ottawa
Registered: 2010-05-17
Posts: 19

Help with pacman please! (SOLVED)

I've just installed arch about 10 times now in virtual box and vmware and I'm still stuck on the same issue. I've researched about 4-5 installation guides and I've seen this same issue discussed on this board many times.

when I type:
pacman -Syu 
it says:
th_bitch.jpg

I've edited the /etc/pacman.d/mirrorlist file so that it only has the Canadian ftp servers but still no luck. I don't know what I'm doing wrong, I've RTFM a dozen times now on the archwiki site.

My PC:
http://h20000.www2.hp.com/bizsupport/Te … nvOID=1093
(my user name is the CPU I'm going to be getting ;-) )

At a glance: p4/2.4, intel chipset/nic, soundmax/ac97, nvidia 7300gt, 1 GB ddr
My hardware should be fine, it's mostly generic Intel.

please help!

Last edited by i7920 (2010-05-24 04:46:33)

Offline

#2 2010-05-18 00:13:27

rb
Member
From: Argentina
Registered: 2010-05-07
Posts: 143

Re: Help with pacman please! (SOLVED)

What's in your /etc/pacman.d/mirrorlist?


Sorry for my English. Feel free to point out my errors.

Offline

#3 2010-05-18 00:43:34

schen
Member
Registered: 2009-06-06
Posts: 468

Re: Help with pacman please! (SOLVED)

You have to configure your server for each repo in your /etc/pacman.conf. For example, here's my pacman.conf:

#
# /etc/pacman.conf
#
# See the pacman.conf(5) manpage for option and repository directives

#
# GENERAL OPTIONS
#
[options]
# The following paths are commented out with their default values listed.
# If you wish to use different paths, uncomment and update the paths.
#RootDir     = /
#DBPath      = /var/lib/pacman/
#CacheDir    = /var/cache/pacman/pkg/
#LogFile     = /var/log/pacman.log
HoldPkg     = pacman glibc
# If upgrades are available for these packages they will be asked for first
SyncFirst   = pacman
#XferCommand = /usr/bin/wget --passive-ftp -c -O %o %u
#XferCommand = /usr/bin/curl %u > %o
#CleanMethod = KeepInstalled

# Pacman won't upgrade packages listed in IgnorePkg and members of IgnoreGroup
#IgnorePkg   =
#IgnoreGroup =

#NoUpgrade   =
#NoExtract   =

# Misc options (all disabled by default)
UseSyslog
ShowSize
UseDelta
#TotalDownload
ILoveCandy
#
# 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
#   - repositories listed first will take precedence when packages
#     have identical names, regardless of version number
#   - URLs will have $repo replaced by the name of the current repo
#
# Repository entries are of the format:
#       [repo-name]
#       Server = ServerName
#       Include = IncludePath
#
# The header [repo-name] is crucial - it must be present and
# uncommented to enable the repo.
#

# The testing repositories are disabled by default. To enable, uncomment the
# repo name header and Include lines. You can add preferred servers immediately
# after the header, and they will be used before the default mirrors.

#[testing]
## Add your preferred servers here, they will be used first
#Include = /etc/pacman.d/mirrorlist

[core]
Server = http://mirror.rit.edu/archlinux/core/os/x86_64
Include = /etc/pacman.d/mirrorlist

[extra]
Server = http://mirror.rit.edu/archlinux/extra/os/x86_64
Include = /etc/pacman.d/mirrorlist

#[community-testing]
## Add your preferred servers here, they will be used first
#Include = /etc/pacman.d/mirrorlist

[community]
Server = http://mirror.rit.edu/archlinux/community/os/x86_64
Include = /etc/pacman.d/mirrorlist

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

The bottom part is very important!

Last edited by schen (2010-05-18 00:44:04)

Offline

#4 2010-05-18 00:43:57

i7920
Member
From: Ottawa
Registered: 2010-05-17
Posts: 19

Re: Help with pacman please! (SOLVED)

Offline

#5 2010-05-18 00:49:49

falconindy
Developer
From: New York, USA
Registered: 2009-10-22
Posts: 4,111
Website

Re: Help with pacman please! (SOLVED)

You need to uncomment the mirrors you want to use in /etc/pacman.d/mirrorlist.

Why has this been so common recently?

Offline

#6 2010-05-18 01:10:06

i7920
Member
From: Ottawa
Registered: 2010-05-17
Posts: 19

Re: Help with pacman please! (SOLVED)

Ok I've edited my pacman.conf file so that it's the same mirror as the one you have listed and I got a little bit further but it doesn't finish the update.

th_1.jpg

Offline

#7 2010-05-18 01:11:09

i7920
Member
From: Ottawa
Registered: 2010-05-17
Posts: 19

Re: Help with pacman please! (SOLVED)

falconindy wrote:

You need to uncomment the mirrors you want to use in /etc/pacman.d/mirrorlist.

Why has this been so common recently?

yeap, I've read that in another post, and I basically just deleted the original mirrolist file and recreated it with only the one entry.

Offline

#8 2010-05-18 01:13:16

rb
Member
From: Argentina
Registered: 2010-05-07
Posts: 143

Re: Help with pacman please! (SOLVED)

Did you try with other mirrors?


Sorry for my English. Feel free to point out my errors.

Offline

#9 2010-05-18 01:19:15

i7920
Member
From: Ottawa
Registered: 2010-05-17
Posts: 19

Re: Help with pacman please! (SOLVED)

ya, I've tried a few different ones. Which one works for you?

Offline

#10 2010-05-18 01:25:24

a_priori_mouse
Member
Registered: 2010-05-16
Posts: 38

Re: Help with pacman please! (SOLVED)

sorry but what will tell

cat /etc/pacman.d/mirrorlist | grep -v '\#' | sed '/^$/d'

Offline

#11 2010-05-18 01:31:11

schen
Member
Registered: 2009-06-06
Posts: 468

Re: Help with pacman please! (SOLVED)

Did you configure your /etc/pacman.d/mirrorlist like this?

# Server list generated by rankmirrors on 2010-01-18
# Server list generated by rankmirrors on 2009-12-05
# Mirror used during installation

#
# Arch Linux repository mirrorlist
# Generated on 2009-06-16
#

# United States

Server = http://mirror.rit.edu/archlinux/$repo/os/x86_64

Offline

#12 2010-05-18 01:33:16

i7920
Member
From: Ottawa
Registered: 2010-05-17
Posts: 19

Re: Help with pacman please! (SOLVED)

that literally accomplished nothing lol... it just went to the next line. What was that command supposed to do exactly?

Offline

#13 2010-05-18 01:36:23

i7920
Member
From: Ottawa
Registered: 2010-05-17
Posts: 19

Re: Help with pacman please! (SOLVED)

this is what I have:

th_2.jpg

should I include the very first part "#serverlist generated etc etc'?

Last edited by i7920 (2010-05-18 01:37:46)

Offline

#14 2010-05-18 01:38:36

rb
Member
From: Argentina
Registered: 2010-05-07
Posts: 143

Re: Help with pacman please! (SOLVED)

As falconindy said, you need to uncomment the servers. If they're commented, they're skipped.


Sorry for my English. Feel free to point out my errors.

Offline

#15 2010-05-18 01:39:35

a_priori_mouse
Member
Registered: 2010-05-16
Posts: 38

Re: Help with pacman please! (SOLVED)

now, delete both "#", look at result of my command and upgrade with "pacman -Syu" smile

Last edited by a_priori_mouse (2010-05-18 01:40:16)

Offline

#16 2010-05-18 01:46:56

i7920
Member
From: Ottawa
Registered: 2010-05-17
Posts: 19

Re: Help with pacman please! (SOLVED)

Signs that pacman needs a local database restoration:
pacman -Q gives absolutely no output, and pacman -Syu erroneously reports that the system is up to date.
When trying to install a package using pacman -S package it outputs a list of already satisfied dependencies.
Most likely, pacman's database of installed software, /var/lib/pacman/local, has been corrupted or deleted. While this is a serious problem, it can be restored by following the instructions below.
Instructions
Firstly, make sure pacman's log file is present:
$ ls /var/log/pacman.log
If it does not exist, it is not possible to continue with this method. You may be able to use Xyne's package detection script to recreate the database. If not, then your only option is to re-install the entire system.
Create the pkglist.sh file with the following content [1]:
awk '
  $3 == "installed" || $3 == "upgraded" { pkg[$4] = 1 }
  $3 == "removed" { pkg[$4] = 0 }
  END { for (i in pkg) if ( pkg[i] == 1 ) print i; }
' /var/log/pacman.log
Make the script executable:
$ chmod +x pkglist.sh
Now, run pkglist.sh and pipe the output to pkglist-orig.
$ ./pkglist.sh > pkglist-orig
pkglist now contains a list of all the software installed or upgraded. Edit pkglist and remove anything that shouldn't be re-installed (optional). This might be the situation with custom packages made with ABS, for example. Here is a way to automatically restrict the list to packages available in a repository:
$ (cat pkglist-orig ; pacman -Slq | sort | uniq) | sort | uniq -d > pkglist
Check if some important base package are missing, and add them to the list:
$ pacman -Sgq base | grep -v "$(cat pkglist)"
Once the contents of pkglist are satisfactory, use it to re-install the programs, and restore /var/lib/pacman/local.
There is no need to check for dependencies, and the install needs to be "forced" because the programs already exist:
# pacman -Sdf --needed $(cat pkglist)
pacman will now present a long list of software to be installed. Say Yes and wait for pacman to finish.
Finally, find all the configuration files that have changed. Do this by first updating the locate database:
# updatedb
Then search for all the configuration files that have changed:
# locate pacorig
This will give a list of all the configuration files that have been replaced. The original file will have .pacorig appended to it. Delete the new files, and rename the .pacorig files to restore the original configuration for each software package that may be affected. Some directory permissions may also have been changed. Check this if something refuses to start.

-http://wiki.archlinux.org/index.php/Pacman_Tips

I guess pacman's database is corrupt or deleted? But I've freshly installed Arch many times now, how could it come corrupted?

Offline

#17 2010-05-18 01:49:05

skottish
Forum Fellow
From: Here
Registered: 2006-06-16
Posts: 7,942

Re: Help with pacman please! (SOLVED)

i7920 wrote:

this is what I have:

http://i976.photobucket.com/albums/ae25 … t/th_2.jpg

should I include the very first part "#serverlist generated etc etc'?

Are you still using this?

Both are wrong and kernel doesn't have an 'a'.

In your mirrorlist file for 64bit, use this:

Server = http://mirror.rit.edu/archlinux/$repo/os/x86_64
Server = http://mirrors.kernel.org/archlinux/$repo/os/x86_64

For 32 bit, use i686 instead of x86_64.

Offline

#18 2010-05-18 01:51:37

i7920
Member
From: Ottawa
Registered: 2010-05-17
Posts: 19

Re: Help with pacman please! (SOLVED)

a_priori_mouse wrote:

now, delete both "#", look at result of my command and upgrade with "pacman -Syu" smile

HEY! It worked! nice work, thanks a lot. that's great

Offline

#19 2010-05-18 01:56:38

i7920
Member
From: Ottawa
Registered: 2010-05-17
Posts: 19

Re: Help with pacman please! (SOLVED)

So basically I all have to do after the default install (that wasn't shown in the installation guides I've read) is just remove the pound signs before the servers I wish pacman to search. that's what 'uncommented' means. I see...

Offline

#20 2010-05-18 01:59:55

a_priori_mouse
Member
Registered: 2010-05-16
Posts: 38

Re: Help with pacman please! (SOLVED)

yep. And edit mirrorlist as skottish has said

Offline

#21 2010-05-18 02:06:58

fsckd
Forum Fellow
Registered: 2009-06-15
Posts: 4,173

Re: Help with pacman please! (SOLVED)

The # allows you to add comments into your mirror list to clarify sections or just as notes. It is also used to have parts ignored by the parser. You'll find several other languages (mostly shell scripts) also use a # to indicate comments.


aur S & M :: forum rules :: Community Ethos
Resources for Women, POC, LGBT*, and allies

Offline

#22 2010-05-18 02:10:20

i7920
Member
From: Ottawa
Registered: 2010-05-17
Posts: 19

Re: Help with pacman please! (SOLVED)

ok cool, now is there any thing special I have to do in order to install compiz-fusion-kde? any other commands or files that must be edited in order for it to run automatically in the boot sequence? it just goes in to x11 after I've typed 'pacman -S compiz-fusion-kde'
I got this code directly from: http://wiki.archlinux.org/index.php/Compiz_fusion
but still not working. I'm currently trying pacman -S compiz-fusion..

Last edited by i7920 (2010-05-18 02:14:04)

Offline

#23 2010-05-18 02:16:15

i7920
Member
From: Ottawa
Registered: 2010-05-17
Posts: 19

Re: Help with pacman please! (SOLVED)

also this is a fairly simple question, but does anybody know of a way of copying text from XP i.e. arch commands, and pasting it in to vmware? that would make things a lot easier and I could avoid spelling mistakes. thanks!

Offline

#24 2010-06-02 01:21:27

Fungyo
Member
Registered: 2009-04-13
Posts: 42

Re: Help with pacman please! (SOLVED)

I know this is solved, however I wish to add for anyone else who may come across this thread, that when modifying your pacman files, afterwards ALWAYS do a

pacman -Syy

(notice the double yy)
I have run into troubles not doing this.

Offline

#25 2010-06-02 02:39:09

sand_man
Member
From: Australia
Registered: 2008-06-10
Posts: 2,164

Re: Help with pacman please! (SOLVED)

Fungyo wrote:

I know this is solved, however I wish to add for anyone else who may come across this thread, that when modifying your pacman files, afterwards ALWAYS do a

pacman -Syy

(notice the double yy)
I have run into troubles not doing this.

This should never be done without a full system upgrade also (unless you are 100% certain everything is up to date).

pacman -Syyu would be a safer option.


neutral

Offline

Board footer

Powered by FluxBB