Pacman update and mirrorlist

With the upgrade to pacman-3.2.1-2, we have split the mirrorlist into the pacman-mirrorlist package. This will allow us to push more frequent updates to the mirrorlist, instead of only updating it with pacman releases.  As part of this upgrade, your current /etc/pacman.d/mirrorlist file will be saved as mirrorlist.pacorig and the default mirrorlist put in its place.  Remember to merge these files in order to keep using your mirror(s) of choice.

This is somewhat less generic than what I had in mind because I realized that the order of the mirrors need to be preserved. Anyway, the script does the following:
read in uncommented mirrors from mirrorlist.pacorig
check them against the new mirrorlist
for each one that's not in the new list, ask if the user would like to keep it
create a new file with the previously selected mirrors appended to the top followed by the complete new mirrorlist with the server lines commented out
usage:
merge_pacorig_mirrors.pl /path/to/output_file
Check the output file then move it to /etc/pacman.d/mirrorlist if you're happy with it. The script will not overwrite your mirrorlists (unless you specify them as the output file, but I do not recommend that).
#!/usr/bin/perl
use strict;
use warnings;
sub read_file
my $file = shift;
my $text;
open(my $fh,'<',$file) or die "unable to open $file: $!\n";
local $/;
$text = <$fh>;
close $fh;
return $text;
sub save_file
my ($file,$text) = @_;
open(my $fh,'>',$file) or die "unable to open $file: $!\n";
print $fh $text;
close $fh;
sub confirm
my ($question,$default_answer) = @_;
print "$question ";
if (defined($default_answer) and $default_answer eq 'y')
print '[Y/n] ';
elsif (defined($default_answer) and $default_answer eq 'n')
print '[y/N] ';
else
print '[y/n] ';
my $answer = lc(<STDIN>);
chomp $answer;
$answer = $default_answer if (defined($default_answer) and $answer eq '');
while ($answer ne 'y' and $answer ne 'n')
print "Please enter 'y' or 'n': ";
$answer = lc(<STDIN>);
chomp $answer;
return ($answer eq 'y') ? 1 : 0;
my $output = shift @ARGV;
die "Please specify an output file.\n" if (not defined($output));
my $new = &read_file('/etc/pacman.d/mirrorlist');
my $orig = &read_file('/etc/pacman.d/mirrorlist.pacorig');
my @new_servers = map {/^Server\s*=\s*(.+)\s*$/} grep {/^[#\s]*Server/} split "\n",$new;
my @orig_servers = map {/^Server\s*=\s*(.+)\s*$/} grep {/^Server/} split "\n",$orig;
my %servers = ();
foreach my $server(@new_servers,@orig_servers)
$servers{$server}++;
my $mirrorlist = '';
foreach my $server (@orig_servers)
if ($servers{$server}>1)
$mirrorlist .= "Server = $server\n";
else
print "The following server is no longer in the mirror list:\n\t$server\n";
if (&confirm("Would you like to remove it?", "y"))
next;
else
$mirrorlist .= "Server = $server\n";
$mirrorlist .= "\n\n";
$new =~ s/^Server/#Server/gm;
$mirrorlist .= $new;
&save_file($output,$mirrorlist);
Last edited by Xyne (2008-12-23 21:07:20)

Similar Messages

  • Alsa not working anymore after pacman update

    I had problems with my sound in arch linux. But then I uninstall pulseaudio and then my sound worked.
    However, two weeks ago I performed an pacman update and now the sound isn't working anymore.
    I provide my configuration data. I did all the obvious stuff like unmute, aplay -L etc. and checking sound with root account.
    Can someone help with this problem?
    [root@st]# aplay -D sysdefault *.wav
    ## ==> NO SOUND
    # lspci | grep "Audio"
    00:1b.0 Audio device: Intel Corporation 7 Series/C210 Series Chipset Family High Definition Audio Controller (rev 04)
    01:00.1 Audio device: NVIDIA Corporation GK107 HDMI Audio Controller (rev a1)
    ## aplay -L
    aplay -L
    null
    Discard all samples (playback) or generate zero samples (capture)
    pulse
    PulseAudio Sound Server
    sysdefault:CARD=PCH
    HDA Intel PCH, ALC269VC Analog
    Default Audio Device
    front:CARD=PCH,DEV=0
    HDA Intel PCH, ALC269VC Analog
    Front speakers
    surround40:CARD=PCH,DEV=0
    HDA Intel PCH, ALC269VC Analog
    4.0 Surround output to Front and Rear speakers
    surround41:CARD=PCH,DEV=0
    HDA Intel PCH, ALC269VC Analog
    4.1 Surround output to Front, Rear and Subwoofer speakers
    surround50:CARD=PCH,DEV=0
    HDA Intel PCH, ALC269VC Analog
    5.0 Surround output to Front, Center and Rear speakers
    surround51:CARD=PCH,DEV=0
    HDA Intel PCH, ALC269VC Analog
    5.1 Surround output to Front, Center, Rear and Subwoofer speakers
    surround71:CARD=PCH,DEV=0
    HDA Intel PCH, ALC269VC Analog
    7.1 Surround output to Front, Center, Side, Rear and Woofer speakers
    hdmi:CARD=NVidia,DEV=0
    HDA NVidia, HDMI 0
    HDMI Audio Output
    hdmi:CARD=NVidia,DEV=1
    HDA NVidia, HDMI 1
    HDMI Audio Output
    hdmi:CARD=NVidia,DEV=2
    HDA NVidia, HDMI 2
    HDMI Audio Output
    ## cat /etc/asound.conf
    pcm.!default {
    type hw
    card 0
    ctl.!default {
    type hw
    card 0
    ## cat /proc/asound/modules
    0 snd_hda_intel
    1 snd_hda_intel
    ## lsmod | grep snd
    snd_hda_codec_hdmi 30098 1
    snd_hda_codec_realtek 39515 1
    snd_hda_intel 36904 0
    snd_hda_codec 149569 3 snd_hda_codec_realtek,snd_hda_codec_hdmi,snd_hda_intel
    snd_hwdep 6340 1 snd_hda_codec
    snd_pcm 77709 3 snd_hda_codec_hdmi,snd_hda_codec,snd_hda_intel
    snd_page_alloc 7242 2 snd_pcm,snd_hda_intel
    snd_timer 18726 1 snd_pcm
    snd 59173 7 snd_hda_codec_realtek,snd_hwdep,snd_timer,snd_hda_codec_hdmi,snd_pcm,snd_hda_codec,snd_hda_intel
    soundcore 5450 1 snd
    ## ls /dev/snd/
    by-path controlC0 controlC1 hwC0D0 hwC1D0 pcmC0D0c pcmC0D0p pcmC1D3p pcmC1D7p pcmC1D
    Last edited by stevebach (2013-11-26 23:12:02)

    type hw
    Remove your ill-advised /etc/asound.conf - it's bypassing dmix.
    To make the correct soundcard the default, there's various methods - google it.

  • Howto: Pacman Updates on your Awesome3 bar

    So in my boredom one day, I decided to add a textbox to my Awesome wibox bar (formerly referred to as a statusbar) that displayed the number of updates available for my system.  I see many users getting this info from Conky, but I wanted to get better acquainted with LUA and the rc.lua awesome syntax.
    This guide assumes the user has a fresh Awesome installation with a default rc.lua file.
    Thanks to Xyne for the pacman perl scripts (Shown later).
    What you will need:
    Awesome 3.4 (pacman version)
    perl
    Files you will need:
    pacman-updates: Necessary to provide the user-readable output to awesome-client
    #! /usr/bin/perl
    ## script by Xyne
    ## output format tweaked slightly
    ## http://bbs.archlinux.org/viewtopic.php?id=57291
    use strict;
    use warnings;
    my $n = (`pacman -Qu | wc -l`);
    chomp ($n);
    if ($n == 0)
    print "\" [ No new packages ] \""
    elsif ($n == 1)
    print "\" [ 1 new package ] \""
    else
    print "\" [ $n new packages ] \""
    pacman-updater: A basic way of keeping your pacman package list refreshed.
    #! /bin/bash
    # Script to update pacman database
    # Will be put in /etc/cron.hourly
    pacman -Sy 1>/dev/null 2>&1
    pacman-widget: Executes the pacman-updates script and passes it to awesome-client for display
    #! /bin/bash
    ## Script to update awesome-client widget with pacman package information
    ## Script belongs in /etc/cron.hourly
    echo mytextbox.text = `perl /path/to/script/pacman-updates` | awesome-client
    Place the files in the script folder of your choice.  Then, ensure all files have adequate permissions so that they can be executed. (chmod)
    Open your rc.lua file with your favorite text editor.  Create a textbox widget by adding the following:
    mytextbox = widget({ type = "textbox", name = "mytextbox" })
    mytextbox.text = " [ Pacman Updates ] "
    Now that the code for created the widget has been added, we need to add the widget to the existing wibox.  Find the section of your rc.lua file that looks like this:
    -- Create the wibox
    mywibox[s] = awful.wibox({ position = "top", screen = s })
    -- Add widgets to the wibox - order matters
    mywibox[s].widgets = {
    mylauncher,
    mytaglist[s],
    mypromptbox[s],
    layout = awful.widget.layout.horizontal.leftright
    mylayoutbox[s],
    mytextclock,
    s == 1 and mysystray or nil,
    mytasklist[s],
    layout = awful.widget.layout.horizontal.rightleft
    end
    Add the line "mytextbox," underneath the default textclock widget:
    -- Create the wibox
    mywibox[s] = awful.wibox({ position = "top", screen = s })
    -- Add widgets to the wibox - order matters
    mywibox[s].widgets = {
    mylauncher,
    mytaglist[s],
    mypromptbox[s],
    layout = awful.widget.layout.horizontal.leftright
    mylayoutbox[s],
    mytextclock,
    mytextbox,
    s == 1 and mysystray or nil,
    mytasklist[s],
    layout = awful.widget.layout.horizontal.rightleft
    end
    Copy pacman-updater and pacman-widget scripts into your /etc/cron.hourly folder:
    sudo cp pacman-updater /etc/cron.hourly
    If everything went smoothly, you should see package information updated hourly on your wibox in the top right corner, such as:
    I hope this guide has proven useful.  Please post if you see any errors or could suggest improvements, as I will update the guide.
    Thanks
    Last edited by trann (2009-11-05 20:03:45)

    Oh cool, I never realized that vicious was basically an upgraded wicked.  I had an old rc.lua that used wicked, and when they got rid of wicked no sooner than I made a config using it; I just moved on to another WM rather than try to read about and choose between vicious, obvious and bashets.  If I had spent 5 secs learning that my old config would've worked for what I was doing simply by replacing the word 'wicked' with the word 'vicious' everywhere, I might have not been so distraught.
    But yes, thanks for the snippet using vicious.  It works great.  I modified it a little (I didn't feel like being informed when there were 0 updates, only when there were some):
    local pacupdates = widget({type="textbox"})
    vicious.register(pacupdates,vicious.widgets.pacman,
    function (widget, args)
    if args[1] == 0 then
    return ''
    else
    return ' <span color="red">'..args[1]..' Updates</span> '
    end
    end)
    You obviously have to require("vicious") somewhere and put pacupdates in your mywibox[s].widgets (or some other bar, I suppose), but it is quite simple.
    I suppose I could make that better by adding in an 'else if args[1] == 1 then return ' <span color="white">'..args[1]..' Update</span> ' or something, so it doesn't say "Updates" when there is only one.  I suppose there is an else if in lua, but I haven't read that programming in lua thing yet, as I was planning on using xmonad instead of awesome, but seem to be experiencing some difficulties with the multi-screen setup on my tower and xmonad. 
    Right now, I'm thinking maybe I'll use xmonad on the laptop and awesome on the desktop, just so I have a good reason to tinker in both programming languages.
    Works great and doesn't require any weird background stuff or cron.

  • Delayed Pacman Update

    I'm installing Linux on my parents' computer, and they need a distro that "just works". I've been through dozens of distros on my personal computer, and I've never had a distro which "just works" like Arch.
    The only "problem" I've ever had with Arch was once when I did a pacman update and got a bad kernel. This was no problem, since I just reverted by running pacman on the live CD. Plus, the package was fixed within a day (go, Arch developers!).  However, if this ever happened to my parents, they'd be stranded until I had time to come over to fix it.
    Is there any way of "avoiding" bad packages? Is it possible to tell pacman to only upgrade if the packages are a couple days old? (No faulty package would live in the repos that long).
    Any ideas how I might go about doing this?
    Thanks!

    brebs wrote:There isn't a distro in existence which is that good.
    This is sad to me, though undeniably true.
    Because the entire structure of the open source, or, more specifically, the GNU/Linux model, is under such heavy development, a stable, up-to-date and low maintenance desktop is virtually nonexistent.
    This is the number one obstacle to GNU/Linux dominating the desktop in the foreseeable future. Hobbyists, enthusiasts, programmers, admins, and computer scientists don't care, because they typically enjoy a good challenge. To Joe sixpack, though, this is a problem.
    I can't think of any distros that even come close to a Windows-type model of "install once and update for 5-7 years with virtually no user intervention". Like Brebs said, "There isn't a distro in existence which is that good.."
    OpenSolaris Project Indiana looks promising, but it is not aimed toward Joe sixpack.
    Arch is perfect for me, but I feel bad for average users who will be put off GNU/Linux the minute their Ubuntu upgrade goes badly.

  • Pacman update failing (openjdk7 and rhino?)

    hi,
    I am getting the following error when doing pacman -Syu:
    :: Starting full system upgrade...
    resolving dependencies...
    warning: dependency cycle detected:
    warning: rhino will be installed before its jre7-openjdk-headless dependency
    looking for inter-conflicts...
    error: unresolvable package conflicts detected
    error: failed to prepare transaction (conflicting dependencies)
    :: openjdk6 and jre7-openjdk-headless are in conflict
    I had openjdk7 (+ headless) and rhino installed, but I uninstalled them all and installed openjdk6 (cos 7 is incompatible with a lot of programs I use).
    Does anyone have an idea how to get rid of this error? I don't even remember what rhino is or what I needed it for.
    thanks

    eclipse, maven3 for sure
    and maybe minecraft.
    first time I installed eclipse and maven3 I installed them with openjdk7. after removing opnejdk7 I uninstalled all of them and reinstalled them (with openjdk6). I have no problems besides the pacman update.
    Last edited by dynamo (2012-02-10 22:19:58)

  • [Solved] errors with keys after pacman update?

    Hi,
    I installed pacman 4.0.1-4, but now this is what happens when I try and update.
    Proceed with installation? [Y/n] Y
    (28/28) checking package integrity [######################] 100%
    error: binutils-multilib: signature from "Jan Alexander Steffens (heftig) <[email protected]>" is unknown trust
    error: libcap-ng: signature from "Ionut Biru <[email protected]>" is unknown trust
    error: cifs-utils: signature from "Tobias Powalowski <[email protected]>" is unknown trust
    error: cmake: signature from "Dave Reisner <[email protected]>" is unknown trust
    error: colord: signature from "Ionut Biru <[email protected]>" is unknown trust
    error: lib32-glibc: signature from "Jan Alexander Steffens (heftig) <[email protected]>" is unknown trust
    error: lib32-gcc-libs: signature from "Jan Alexander Steffens (heftig) <[email protected]>" is unknown trust
    error: gcc-libs-multilib: signature from "Jan Alexander Steffens (heftig) <[email protected]>" is unknown trust
    error: gcc-multilib: signature from "Jan Alexander Steffens (heftig) <[email protected]>" is unknown trust
    error: perl: key "6D1655C14CE1C13E" is unknown
    error: key "6D1655C14CE1C13E" could not be looked up remotely
    error: openssl: signature from "Pierre Schmitz <[email protected]>" is unknown trust
    error: git: signature from "Dan McGee <[email protected]>" is unknown trust
    error: gpgme: signature from "Dave Reisner <[email protected]>" is unknown trust
    error: gvfs: signature from "Dave Reisner <[email protected]>" is unknown trust
    error: inetutils: key "FCF2CB179205AC90" is unknown
    :: Import PGP key 9205AC90, "Eric Belanger <[email protected]>", created 2011-04-19? [Y/n] Y
    error: key "Eric Belanger <[email protected]>" could not be imported
    error: intltool: key "FCF2CB179205AC90" is unknown
    :: Import PGP key 9205AC90, "Eric Belanger <[email protected]>", created 2011-04-19? [Y/n] ^C
    Interrupt signal received
    When pacman updated it suggested that I run this command,
    sudo pacman-key --init
    I know that usually I would say yes to a key and pacman should remember it, but what are all the errors?
    Last edited by mich04 (2012-01-20 17:19:26)

    # /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 -C - -f %u > %o
    #CleanMethod = KeepInstalled
    Architecture = auto
    # 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
    #CheckSpace
    # 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
    # - URLs will have $arch replaced by the name of the architecture
    # 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]
    #Include = /etc/pacman.d/mirrorlist
    [core]
    Include = /etc/pacman.d/mirrorlist
    [extra]
    Include = /etc/pacman.d/mirrorlist
    #[community-testing]
    #Include = /etc/pacman.d/mirrorlist
    [community]
    Include = /etc/pacman.d/mirrorlist
    # If you want to run 32 bit applications on your x86_64 system,
    # enable the multilib repositories as required here.
    #[multilib-testing]
    #Include = /etc/pacman.d/mirrorlist
    [multilib]
    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
    Here it is.

  • Script to update your mirrorlist based on up2date mirrors

    I got tired of manually updating my mirrorlist file so I wrote a small script today to update my mirrorlist, you might find it useful as well:
    NOTE: I assume ZERO responsibility whatsoever for any harm caused by this script and by using it you agree to these terms and conditions. The script assumes you are based in the US, if you are in another country, adjust your URL below.
    #!/bin/bash
    # Define tmpfile
    tmpfile=/tmp/mirrorlisttmp
    # Determine architecture type
    archtype=$(uname -m)
    # Get latest mirror list and save to tmpfile
    wget -O $tmpfile "http://www.archlinux.org/mirrorlist/?country=United+States&protocol=ftp&protocol \
    =http&ip_version=4&use_mirror_status=on" >/dev/null 2>&1
    # Wrangle txt in saved file
    sed -i -e "s/^#Server/Server/g" -e "s/\$arch/"$archtype"/g" $tmpfile
    # Backup and replace current mirrorlist file
    if [[ ! -f /etc/pacman.d/mirrorlist.orig ]]; then
    mv /etc/pacman.d/mirrorlist /etc/pacman.d/mirrorlist.orig && echo "Successfully backed up original mirrorlist!"
    cp $tmpfile /etc/pacman.d/mirrorlist && echo "Successfully applied new mirrorlist!"
    else
    mv /etc/pacman.d/mirrorlist /etc/pacman.d/mirrorlist.bak && echo "Successfully backed up current mirrorlist!"
    cp $tmpfile /etc/pacman.d/mirrorlist && echo "Successfully applied new mirrorlist!"
    fi
    exit
    NOTE: You will need to copy the text above, place it into a file (call it updatemirrors.sh), run chmod +x on the file and then run it with sudo/root privileges.
    Last edited by Archieman (2011-06-01 01:03:22)

    karol wrote:
    You can use [ code ] tags when pasting code https://bbs.archlinux.org/help.php#bbcode
    For it to really auto-update the mirrorlist it has to be put in a cronjob :-)
    If I run it twice, will the original mirrorlist (moved to mirrorlist.bak after the first run) be irrevocably lost?
    Just nitpicking: you don't have to use 'g' for global changes in the sed substitutions as there is only one occurrence per line.
    Thanks Karol - I made the adjustments above to address both comments. The 'g' for sed I think is OK to leave in :-)
    Last edited by Archieman (2011-05-31 04:00:55)

  • [SOLVED] pacman: -Syy and -Syu reports system up to date

    Hi,
    I ran pacman -Syy and pacman -Syu and it updated my one system to the Sept 9 kernel etc.
    I ran the same on my other system, and it reports all is up to date (local database up to date) but it is stil on the Aug 17 kernel etc.
    Any suggestions would be appreciated.
    Thanks
    Willem
    Last edited by Willem (2009-11-06 21:46:28)

    Thanks, that was it, used the mirrorlist from the other box.
    Thanks again, didn't think the mirrors would be that unsynced.

  • [SOLVED] After pacman update, system no longer boots

    Updated pacman packages, and half-way through the upgrade proces fails (it mentions not being able to find package-control).  Upon investigating, I notice no programs are working.  I ls /usr/bin and it is empty!  In a panic, I restart the machine, and it no longer boots up. 
    My boot is on sda3 and /root is sda5.
    When bash starts up, it loads the kernel fine, and then after a second it panics and exclaims: "No init found. Try passing init=bootarg". 
    I load up my trusty Arch livecd and fsck the partitions.  Fsck claims both partitions are clean.  I am able to mount them and examine the file structure: all files look like they are there.  I then try to chroot the mounted partition (sda5, my /root), and get the error that "/bin/bash" is not found, even though it is there in the correct directory.  Not sure what to do now.
    My grub entry, which has always worked fine prior to this:
    legacy_kernel '/linux344-ck' 'acpi_osi=Linux' 'root=/dev/sda5' 'rootfstype=ext4' 'init=/sbin/init' 'pcie_aspm=force' 'acpi_backlight=vendor' 'i915.i915_enable_rc6=1' 'i915.i915_enable_fbc=1' 'i915.lvds_downclock=1' 'ipv6.disable=1' 'i915.semaphores=1' 'modprobe.blacklist=bluetooth,uvcvideo' 'ro'
    legacy_initrd '/initramfs-linux-fallback.img' '/initramfs-linux-fallback.img'
    UPDATE: solved issue.  I didn't read the news.  Upgrading via pacman broke my system because of this.  Now I know!  System is running smooth again.
    Last edited by corruptz0r (2012-07-15 20:26:53)

    Huh. I guess the problem was a couple of stale and crusty {,f}getty .service files, and an obsolete slim.service file I created a while back.
    Removing them fixed my problem, although tty1 still shows boot messages (not a problem, and may not even be "new" behaviour)
    Cheers Tomegun.

  • [solved] flash in firefox not working after pacman update

    Hi everyone,
    I updated my system today using pacman -Syu and now flash isn't working in firefox.  In fact, opening a youtube video causes firefox to crash.  Before the update it worked fine.  I have flashplugin-11.2.202.406-1 installed.  I don't know where to start to fix this.
    I've already checked the about:plugins in firefox and it says that I have the flash plugin installed and its on always activate setting.
    Does anyone know where I can start to look for errors?
    Last edited by hamhamt (2014-10-02 05:55:45)

    hamhamt wrote:Does anyone know where I can start to look for errors?
    https://wiki.archlinux.org/index.php/St … _Guide#Gdb

  • [solved]gcc broken after pacman update - libcloog-isl.2.so

    Hi,
    After a pacman update my gcc broke. When compiling it gives this error:
    /usr/lib/gcc/x86_64-unknown-linux-gnu/4.6.2/cc1: error while loading shared libraries: libcloog-isl.so.2: cannot open shared object file: No such file or directory
    gcc -v output:
    Using built-in specs.
    COLLECT_GCC=gcc
    COLLECT_LTO_WRAPPER=/usr/lib/gcc/x86_64-unknown-linux-gnu/4.6.2/lto-wrapper
    Target: x86_64-unknown-linux-gnu
    Configured with: /build/src/gcc-4.6-20111223/configure --prefix=/usr --libdir=/usr/lib --libexecdir=/usr/lib --mandir=/usr/share/man --infodir=/usr/share/info --with-bugurl=https://bugs.archlinux.org/ --enable-languages=c,c++,ada,fortran,go,lto,objc,obj-c++ --enable-shared --enable-threads=posix --with-system-zlib --enable-__cxa_atexit --disable-libunwind-exceptions --enable-clocale=gnu --enable-gnu-unique-object --enable-linker-build-id --with-ppl --enable-cloog-backend=isl --enable-lto --enable-gold --enable-ld=default --enable-plugin --with-plugin-ld=ld.gold --enable-multilib --disable-libssp --disable-libstdcxx-pch --enable-checking=release --with-fpmath=sse
    Thread model: posix
    gcc version 4.6.2 20111223 (prerelease) (GCC)
    and ls /usr/lib/*cloog* output:
    /usr/lib/libcloog-isl.a  /usr/lib/libcloog-isl.so  /usr/lib/libcloog-isl.so.3  /usr/lib/libcloog-isl.so.3.0.0
    uname -a:
    Linux willem-arch 3.2.4-1-ARCH #1 SMP PREEMPT Sat Feb 4 10:53:01 CET 2012 x86_64 Intel(R) Core(TM) i5 CPU 750 @ 2.67GHz GenuineIntel GNU/Linux
    How can I fix this? I already tried installen cloog with pacman but that doesn't help.
    edit:
    I solved the problem. There was an issue with my pacman.conf. Multilib wasn't properly enabled after the pacman4 transition.
    Last edited by pientertje (2012-02-08 09:47:25)

    I'm using multilib.
    @Allan
    more fully than pacman -Syu? Or is my mirror not up to date?
    edit:
    I solved the problem. There was an issue with my pacman.conf. Multilib wasn't properly enabled after the pacman4 transition.
    Last edited by pientertje (2012-02-08 09:46:40)

  • /boot not being mounted after pacman update

    I just updated my system and upon reboot I've found myself in emergency mode. journalctl -xb tells me among other things that /boot could not be mounted. Following this thread https://bbs.archlinux.org/viewtopic.php?id=171880, I tried downgrading my kernel to 3.18.2 using pacman -U, and while it did downgrade, I am still not able to boot normally. Thinking the kernel upgrade process just caught a glitch, I tried reupdating my kernel, which caused the mkinitcpio script to run.
    It said /boot appeared to be a separate partition but was not mounted. Rebooting, I still found myself in the same boat.
    This is a dm-crypt+LUKS EFI system using gummiboot. The line currently in my fstab is LABEL=EFI /boot vfat rw,relatime,fmask=0022,dmask=0022,code page=437,iocharset=iso8859-1,short name=mixed,errors=remount-ro 0 2
    uname -r tells me the emergency mode is using Linux kernel 3.18.2 instead of the 3.18.6 kernel I updated to. pacman -Q says Linux 3.18.6-1.
    Journalctl -xb | grep -I failed | less shows that systemd failed to load display manager and failed to start Load Kernel Modules. Two units failed according to systemctl --state=failed.
    When I startup and when I try and connect to the internet with netctl, I get the codepage cp437 error and am prompted again for my root password. Further investigation reveals that is in my /etc/fstab. I don't remember putting that in there. How can I see if any software modified it during the update?
    I'd really appreciate suggestions for restoring my system. Thanks in advance.
    Last edited by kandrews (2015-02-27 01:35:08)

    Please remember to mark your thread as [Solved] by editing your first post and prepending it to the title.

  • [SOLVED] Compiz crashes Gnome after pacman update

    Hardware: Nvidia NVS 3100M, latest drivers 260.19.36
    Software: latest pacman -Suy
    On startup, right after the login, X (or Gnome?) crashes and I see the login screen again.
    After I disable compiz, I am able to use Gnome desktop.
    When I start compiz via fusion-icon, it crashes everything again.
    Has anyone seen this?
    Any clues?
    ==== Update =====
    I solved this by re-installing the same nvidia driver I had. During install it detected that the original installation "has been altered".
    Last edited by softtower (2011-02-16 22:09:49)

    That's a scary thought: what if I'm the only one with this problem... :-)
    Let me answer your questions guys (and thank you for replying).
    First of all, I don't have anything monitor-related in my xorg.conf.d directory. Here is what I have there:
    t510 ~: ll /etc/X11/xorg.conf.d/
    total 20K
    -rw-r--r-- 1 root root 1.1K Aug 24 06:45 10-evdev.conf
    -rw-r--r-- 1 root root 377 Jun 21 2010 10-quirks.conf
    -rw-r--r-- 1 root root 443 Nov 13 10:36 10-synaptics.conf
    -rw-r--r-- 1 root root 267 Nov 19 03:48 10-synaptics.conf.pacnew
    -rw-r--r-- 1 root root 107 Sep 2 19:39 20-nouveau.conf
    Second, I do pacman updates maybe once a month. So I had 600+ MB of downloads and something like a hundred packages, including xorg itself. However, I do know that the kernel and nvidia's proprietary driver are both latest and haven't changed.
    If I delete xorg.conf, arch will try to look for noveau open-source driver and will fail because I do not have it installed: it doesn't manage power well to be used on a laptop.
    Looking into Xorg.log I see this:
    [ 102.032] (EE) NVIDIA(0): Failed to initialize the GLX module; please check in your X
    [ 102.032] (EE) NVIDIA(0): log file that the GLX module has been loaded in your X
    [ 102.032] (EE) NVIDIA(0): server, and that the module is the NVIDIA GLX module. If
    [ 102.032] (EE) NVIDIA(0): you continue to encounter problems, Please try
    [ 102.032] (EE) NVIDIA(0): reinstalling the NVIDIA driver.
    [ 102.582] (II) NVIDIA(0): NVIDIA GPU NVS 3100M (GT218) at PCI:1:0:0 (GPU-0)
    I will try to reinstall the same nvidia driver I have to see what happens.

  • KDEMod 3.5: problems after pacman update

    I did a pacman update of KDEMod 3.5, and now, several things don't work anymore:
    -there's no desktop background, it's just black
    -there's no icons on the desktop: as mentioned above, it's just black (so I think the component that displays wallpaper and icons doesn't work)
    -when just starting KDE, there's a "report crash" window (I don't know which the thing that crashes is, it just shows the crash window and I can click it away)
    -when choosing "lock session" in the start menu, nothing happens. It used to show screensaver and require password to continue, now it does nothing at all
    -maybe some other things I didn't discover yet are also broken...
    How can I fix all this? I'd like my system to work properly, like it used to. KDEMod 3.5 appears to have some difficulties after pacman updates these days...
    Thanks.
    Last edited by aardwolf (2009-08-17 16:37:21)

    Hmm, I just realized that the wallpaper is a jpeg, and it could be related to the fix I did in my previous post: http://bbs.archlinux.org/viewtopic.php?id=78076
    Are they going to fix those jpeg issues soon? I think this is something vital.
    EDIT: FYI: this fixed it: tar -C / -zxvf /var/cache/pacman/pkg/libjpeg-6b-6-i686.pkg.tar.gz usr/lib/libjpeg.so.62 usr/lib/libjpeg.so.62.0.0
    Last edited by aardwolf (2009-08-17 16:43:14)

  • Fast Pacman Update Checker for bash/zsh

    I saw some fancy notifiers using Desktop Notification or the systray on this forum, but nothing suitable for my arch server.
    The following snippet check for updates once a day, whenever you spawn a new shell.
    #!/bin/bash
    # add this to your bashrc/zshrc
    function _current_epoch {
    echo "$(($(date +%s) / 60 / 60 / 24))"
    function _check_updates {
    flock -n 9 || return # one concurrent update process at the time
    local ignored_pkgs="^linux"
    #local updates=`wc -l < /var/log/pacman-updates.log`
    local updates=`grep -Ev $ignored_pkgs /var/log/pacman-updates.log | wc -l`
    if [ $updates -gt 0 ]; then
    echo -n "There are $updates updates. Upgrade? (y/n) [n] "
    read line
    if [ "$line" = Y ] || [ "$line" = y ]; then
    yaourt -Syu --aur
    pacman -Qu | sudo tee /var/log/pacman-updates.log >/dev/null
    fi
    fi
    echo "$(_current_epoch)" > $HOME/.pacman-update
    ) 9> ~/.pacman-update.lck
    if [[ $- == *i* ]] && # only interactive shells
    [ -e /var/log/pacman-updates.log ] && # only after first update
    [ ! -e /var/lib/pacman/db.lck ]; then # not if pacman is running
    if [ -e .pacman-update ]; then
    read last_epoch < $HOME/.pacman-update
    if [[ -n "$last_epoch" ]]; then
    if [ $(($(_current_epoch) - $last_epoch)) -ge 1 ]; then
    _check_updates
    fi
    fi
    unset last_epoch
    else
    _check_updates
    fi
    fi
    To keep my package cache up to date I use a systemd.timer unit.
    It prefetchs all new packages without installing them or touching the database
    #/etc/systemd/timer-daily.timer
    [Unit]
    Description=Daily Timer
    [Timer]
    OnBootSec=10min
    OnUnitActiveSec=1d
    Unit=timer-daily.target
    [Install]
    WantedBy=basic.target
    #/etc/systemd/timer-daily.target
    [Unit]
    Description=Daily Timer Target
    StopWhenUnneeded=yes
    #/etc/systemd/timer-daily.target.wants/pacman-update.service
    [Unit]
    Description=Update pacman's package cache
    [Service]
    Type=oneshot
    Nice=19
    IOSchedulingClass=2
    IOSchedulingPriority=7
    Environment=CHECKUPDATE_DB=/var/lib/pacman/checkupdate
    ExecStartPre=/bin/sh -c "/usr/bin/checkupdates > /var/log/pacman-updates.log"
    ExecStart=/usr/bin/pacman --sync --upgrades --downloadonly --noconfirm --dbpath=/var/lib/pacman/checkupdate
    Have fun.
    UPDATE
    Use the safer checkupdates script, so it will not touch the sync database, which prevents dangerous partial system upgrades
    UPDATE 2
    Do not check for updates if pacman is running. Use Type=oneshot to prevent timeout.
    Last edited by Mic92 (2013-07-20 05:04:33)

    Tip, look into pacaur philosophy.
    Shell helpers seem strange to mix with automation. My habit at shell is to enter pacaur -Syu and say no to the updates unless/until I want what I see, or the update list gets big. In that case I plan a restaurant break to coincide with my manual update.
    Autoupdates can run at a particular time like early AM before working hours, when nightowls finally sleep but before morning office rush.

Maybe you are looking for

  • PPro CS4 - half of audio is missing from exported files

    Hi all. I'm currently working on a project in PPro CS4, and by that I mean that I've already completed the project. It was exported and uploaded to youtube for my boss, no problems. Then he asked me to combine the two videos, so I copied the second h

  • Need help with Resource Mapping from Application Deployment to VC:virtualMachine

    Hi, I've built a number of vCO Workflows and hooked them up to Resource Actions in vRA. However, the Workflows I've built all take a VC:VirtualMachine as the input and therefore,they only "hookup" to VMs in the Machines list in the Items tab in vRA.

  • ITunesSetup[1].exe not valid Win32 application

    i bought a fifth gen. on Feb 17, i try to download iTunes 7.0.2, after i click on either RUN or SAVE, the next box says "The publisher could not be verified. Are you sure you want to RUN/SAVE this software?" I keep going and then a warning box comes

  • Passing hashtable to a method

    Can anyone show me the syntax to pass Hashtable to a method??? c.buildHT(cal, ht); //where ht is the hashtable... buildHT(Calendar cal, Hashtable ht) { Is this OK? I tried....but I am getting errors...Can anyone clarify me about this?????

  • Very Slow rendering

    I just started tinkering with LT and even for small simple renders it seems to take so long. Is there a setting I should change? I know I do not have the fastest processor but it seems to work fine in FCEHD. Thanks in advance! RB