[Solved] rebuild a currently installed package

hey everyone! a while ago, i accidentally pacman -Scc rather than just -Sc because i was being dumb and not paying attention, and now it turns out that i actually need one of those packages i deleted. is it possible to re-make a currently installed package from the the files scattered around my system?
Last edited by shmibs (2013-09-16 15:19:45)

@OP - Not what you asked, but be aware that you can look for the package and build an older version yourself.  Example for [extra]/vim:
https://www.archlinux.org/packages/extra/x86_64/vim/
*Click 'view changes'
*Let's say I want to build package version 7.3.515-1 for some reason
*Click 'upgpkg: vim 7.3.515-1'
*Click the link next to 'Download' to grab the tarball
*Extract it and go into '/path/to/archive/trunk'
*There you will find all the needed files to build said package

Similar Messages

  • [SOLVED] Pacman unable to install packages due to invalid or corrup...

    Hullo,
    I know this is a common error judging by the results google lists for that subject. But all sollutions I found don't work for my specific case.
    My battery died on my laptop and when I rebooted and tried to install a package pacman complained the database was locked (can't remember if I was installing something or else while my battery died, happend while I was away).
    So since I've just rebooted I deleted the lock-file by hand. Now when ever I tried to install something it would complain:
    error: xyz: signature from "xyz @ zyx" is unknown trust
    :: File /var/cache/pacman/pkg/packagexyz.pkg.tar.xz is corrupted (invalid or corrupted package (PGP signature)).
    Do you want to delete it? [Y/n] y
    error: failed to commit transaction (invalid or corrupted package (PGP signature))
    So I removed /etc/pacman.d/gnupg, cleared the package-cache and ran pacman-key --init:
    gpg: /etc/pacman.d/gnupg/trustdb.gpg: trustdb created
    gpg: no ultimately trusted keys found
    gpg: Generating pacman keyring master key...
    gpg: key B99666F8 marked as ultimately trusted
    gpg: Done
    ==> Updating trust database...
    gpg: 3 marginal(s) needed, 1 complete(s) needed, PGP trust model
    gpg: depth: 0 valid: 1 signed: 0 trust: 0-, 0q, 0n, 0m, 0f, 1u
    followed by pacman-key --populate archlinux:
    ==> Appending keys from archlinux.gpg...
    gpg: no valid OpenPGP data found.
    ==> Updating trust database...
    gpg: no need for a trustdb check
    and pacman-key --refresh-keys:
    gpg: refreshing 1 key from hkp://pool.sks-keyservers.net
    gpg: requesting key B99666F8 from hkp server pool.sks-keyservers.net
    gpgkeys: key AA3E1E751B31AB9C2E6CDA64F2A911E7B99666F8 can't be retrieved
    gpg: no valid OpenPGP data found.
    gpg: Total number processed: 0
    ==> ERROR: A specified local key could not be updated from a keyserver.
    It looks like it's not doing much. Anyway, trying to install packages or upgrading the system results in me having to import a bunch of keys and then failing with the before mentioned error.
    Anything I can do?
    Thanks
    Last edited by hachel (2014-02-24 11:50:56)

    Rexilion wrote:Reinstall archlinux-keyring maybe? And then perform the commands you listed earlier.
    Worked, thank you!

  • [SOLVED] script to backup installed packages

    Hi guys,
    I know it should be easy, but I keep failing...
    I can generate the list of installed packages with:
    comm -23 <(pacman -Qeq|sort) <(pacman -Qmq|sort) > pkglist.txt
    and I woudl like to integrate into my backup script.
    I was testing it with a script with only two lines:
    #! /bin/bash
    comm -23 <(pacman -Qeq|sort) <(pacman -Qmq|sort) > pkglist.txt
    but I get:
    mkpklist: line 3: syntax error near unexpected token `('
    mkpklist: line 3: `comm -23 <(pacman -Qeq|sort) <(pacman -Qmq|sort) > pkglist.txt '"
    I tried different options with brackets in different places, but me being useless with these things I have no idea of what I am doing...
    could anyone point me in the right direction?
    Thanks a lot
    M
    Last edited by mcarni (2013-01-09 22:26:34)

    @mcarni, you know that when you use "sh <script>" you are specifying sh as the shell the script will be run with.  In otherwords, you are overriding the shebang (#!/bin/bash) with /bin/sh.  On our systems, we actually don't have an actual /bin/sh, as it is a symlink to bash.  But when it is called via that symlink, it actually does its best to act like the old bourne shell.

  • [SOLVED] Files corrupted when installing packages

    I've been using arch for about six months now, I like it very much but I've run into a problem. I suspect it could be that coming from Ubuntu, I'm not used to Arch's "rolling release" approach and I've let things get out of date, but I'd like to have that confirmed before I update my whole system.
    I am having trouble installing the apache web server, specifically the download seems to go OK but then pacman says the files are corrupt :
    root> pacman -S apache
    warning: apache-2.4.12-2 is up to date -- reinstalling
    resolving dependencies...
    looking for conflicting packages...
    Packages (1) apache-2.4.12-2
    Total Download Size: 1.28 MiB
    Total Installed Size: 7.13 MiB
    Net Upgrade Size: 0.00 MiB
    :: Proceed with installation? [Y/n] Y
    :: Retrieving packages ...
    apache-2.4.12-2-x86_64 1309.1 KiB 2.01M/s 00:01 [############################################################] 100%
    (1/1) checking keys in keyring [############################################################] 100%
    (1/1) checking package integrity [############################################################] 100%
    error: apache: signature from "Anatol Pomozov <[email protected]>" is unknown trust
    :: File /var/cache/pacman/pkg/apache-2.4.12-2-x86_64.pkg.tar.xz is corrupted (invalid or corrupted package (PGP signature)).
    Do you want to delete it? [Y/n] Y
    error: failed to commit transaction (invalid or corrupted package (PGP signature))
    Errors occurred, no packages were upgraded.
    I got a similar result a couple of days ago when trying to install 'gdb'. I tried making http://mirror.rit.edu/archlinux/$repo/os/$arch the first server in my mirrorlist file, but no change. I'm wondering if maybe my version of arch is just outdated and I need to upgrade with 'pacman -Syu' ? Currently uname -a shows "Linux bigsalad 3.18.5-1-ARCH #1 SMP PREEMPT Fri Jan 30 07:31:50 CET 2015 x86_64 GNU/Linux". As far as I can see, it's either that I'm out of date, or for some random reason the two packages I've happened to try in the last few days have issues. If it's the latter, I'd rather not over react with "pacman -Syu".
    Anyone have any thoughts? This is my first post here so apologies in advance if it isn't quite right.
    Thanks,
    Niles.
    Last edited by nilesOien (2015-05-09 04:55:36)

    OK, now I'm super confused.
    I tried both "pacman-key --refresh-keys", and after that failed, "pacman -Syu". Neither worked. The full output from refreshing the keys is below :
    root> pacman-key --refresh-keys
    gpg: refreshing 77 keys from hkp://pool.sks-keyservers.net
    gpg: connecting dirmngr at '/root/.gnupg/S.dirmngr' failed: IPC connect call failed
    gpg: keyserver refresh failed: No dirmngr
    ==> ERROR: A specified local key could not be updated from a keyserver.
    Not being very experienced with keys, I didn't pursue that further.
    And pacman -Syu failed - it seemed to download everything, but then convince itself that the keys were invalid (see below). I'm not at all experienced with keys, so that may be the problem. Please help!!! My arch systems have been running fine, but I don't seem to be able to upgrade, which seems to be a requisite for installing new packages? I'm lost!!
    (361/361) checking keys in keyring [################################] 100%
    (361/361) checking package integrity [################################] 100%
    error: lzo: signature from "Anatol Pomozov <[email protected]>" is unknown trust
    :: File /var/cache/pacman/pkg/lzo-2.09-1-x86_64.pkg.tar.xz is corrupted (invalid or corrupted package (PGP signature)).
    Do you want to delete it? [Y/n]
    error: alsa-lib: signature from "Anatol Pomozov <[email protected]>" is unknown trust
    :: File /var/cache/pacman/pkg/alsa-lib-1.0.29-1-x86_64.pkg.tar.xz is corrupted (invalid or corrupted package (PGP signature)).
    Do you want to delete it? [Y/n]
    error: alsa-plugins: signature from "Anatol Pomozov <[email protected]>" is unknown trust
    :: File /var/cache/pacman/pkg/alsa-plugins-1.0.29-2-x86_64.pkg.tar.xz is corrupted (invalid or corrupted package (PGP signature)).
    Do you want to delete it? [Y/n]
    error: alsa-utils: signature from "Anatol Pomozov <[email protected]>" is unknown trust
    :: File /var/cache/pacman/pkg/alsa-utils-1.0.29-1-x86_64.pkg.tar.xz is corrupted (invalid or corrupted package (PGP signature)).
    Do you want to delete it? [Y/n]
    error: apr: signature from "Anatol Pomozov <[email protected]>" is unknown trust
    :: File /var/cache/pacman/pkg/apr-1.5.2-1-x86_64.pkg.tar.xz is corrupted (invalid or corrupted package (PGP signature)).
    Do you want to delete it? [Y/n]
    error: v4l-utils: signature from "Anatol Pomozov <[email protected]>" is unknown trust
    :: File /var/cache/pacman/pkg/v4l-utils-1.6.2-1-x86_64.pkg.tar.xz is corrupted (invalid or corrupted package (PGP signature)).
    Do you want to delete it? [Y/n]
    error: dhcpcd: signature from "Anatol Pomozov <[email protected]>" is unknown trust
    :: File /var/cache/pacman/pkg/dhcpcd-6.8.2-1-x86_64.pkg.tar.xz is corrupted (invalid or corrupted package (PGP signature)).
    Do you want to delete it? [Y/n]
    error: dhclient: signature from "Anatol Pomozov <[email protected]>" is unknown trust
    :: File /var/cache/pacman/pkg/dhclient-4.3.2-1-x86_64.pkg.tar.xz is corrupted (invalid or corrupted package (PGP signature)).
    Do you want to delete it? [Y/n]
    error: talloc: signature from "Anatol Pomozov <[email protected]>" is unknown trust
    :: File /var/cache/pacman/pkg/talloc-2.1.2-1-x86_64.pkg.tar.xz is corrupted (invalid or corrupted package (PGP signature)).
    Do you want to delete it? [Y/n]
    error: syslinux: signature from "Anatol Pomozov <[email protected]>" is unknown trust
    :: File /var/cache/pacman/pkg/syslinux-6.03-3-x86_64.pkg.tar.xz is corrupted (invalid or corrupted package (PGP signature)).
    Do you want to delete it? [Y/n]
    error: failed to commit transaction (invalid or corrupted package)
    Errors occurred, no packages were upgraded.
    Last edited by nilesOien (2015-05-09 04:31:41)

  • [SOLVED] how to query which packages installed on /opt

    Does anyone know if there's a quick way to find a list of installed packages that touch /opt? My local machine was mounting /opt by autofs, and I didn't realize that a lot of packages actually install to /opt (such as kde). So after installing kde, I realized that I can't really run it unless I free up /opt. But after that, I still need to find out which package(s) need to be installed again. Any help is appreciated.
    Last edited by oringo (2008-05-12 16:19:40)

    This will list all currently installed packages that are in /opt
    pacman -Ql | grep " /opt" | cut -f1 -d' ' | uniq
    Is that what you wanted?

  • Need to redownload all installed packages [SOLVED]

    I found the redownloading all installed packages wiki page, but when I attempt either of the suggested commands on the page, pacman chokes on the first package that I installed out of the AUR.  Can someone recommend how I can simply download all of my currently installed packages to my local db?
    Thanks!
    # pacman -Sdw --noconfirm `pacman -Q | awk '{ print $1 }'`
    # wget $(pacman -Sdp `pacman -Q | awk '{ print $1 }'`)
    Last edited by graysky (2009-08-18 19:26:57)

    I actually think it does... when I use your shell command after all my packages are populated, I get a line that reads, "checking package integrity..." then a fresh shell.
    VERIFIED: it does indeed.  I removed /var/cache/pacman/pkg/zvbi-0.2.33-1-x86_64.pkg.tar.gz then touched an empty file of the same name.  After re-running your command, pacman detected the problem, removed the offending package and re-downloaded when I ran it a second time.  Smart
    checking package integrity...
    :: File zvbi-0.2.33-1-x86_64.pkg.tar.gz is corrupted. Do you want to delete it? [Y/n]
    error: failed to commit transaction (invalid or corrupted package)
    zvbi-0.2.33-1-x86_64.pkg.tar.gz is invalid or corrupted
    Errors occurred, no packages were upgraded.
    Last edited by graysky (2009-08-18 21:14:48)

  • Sharing my script to show version difference of installed packages

    Hi all.
    Sometimes I don't want to just pacman -Syu. There are many packages that are big but introduce only minor bugfixes (usually libreoffice packages* are the culprits), so I don't want to have to install those.
    This is something I cooked up a while ago to show version difference of currently installed packages with the latest packages in repository.
    It's in python3, and uses python-termcolor.
    It outputs something like this:
    acl : 2.2.52-1 --> 2.2.52-2
    archlinux-keyring : 20130926-1 --> 20131027-1
    bison : 3.0-1 --> 3.0.1-1
    cracklib : 2.9.0-1 --> 2.9.0-2
    Here is the script:
    #!/usr/bin/python3
    from subprocess import check_output
    from termcolor import colored
    pacman_out=check_output(["pacman","-Sl"], universal_newlines=True).split("\n")
    outlist = []
    len_pkgname = 0
    len_majver = 0
    len_newver = 0
    len_oldver = 0
    for pkgs in pacman_out:
    if not "[installed" in pkgs:
    continue
    if "[installed]" in pkgs:
    continue
    pkg_split = pkgs.split(" ")
    newver = pkg_split[2]
    oldver = pkg_split[4].rstrip("]")
    for i in range(min(len(newver),len(oldver))):
    if newver[i] != oldver[i]:
    break
    pkgname = pkg_split[1]
    majver = newver[:i]
    oldver = oldver[i:]
    newver = newver[i:]
    outlist.append((pkgname, majver, newver, oldver))
    len_pkgname = max(len_pkgname, len(pkgname))
    len_majver = max(len_majver, len(majver))
    len_newver = max(len_newver, len(newver))
    len_oldver = max(len_oldver, len(oldver))
    for (pkgname, majver, newver, oldver) in outlist:
    print("{}: {}{} --> {}{}".format(
    pkgname.ljust(len_pkgname),
    colored(majver.rjust(len_majver),"cyan"),
    colored(oldver.ljust(len_oldver),"cyan",attrs=["bold"]),
    colored(majver.rjust(len_majver),"magenta"),
    colored(newver.ljust(len_newver),"magenta",attrs=["bold"])))
    I hope pkgbrowser will include something like this in the future.
    P/S: * these packages will break anyway in the event the dependencies has had some ABI changes.
    EDIT: swapped new and old version columns. Thanks, karol!
    Last edited by syockit (2013-12-04 17:55:42)

    syockit wrote:I hope pkgbrowser will include something like this in the future.
    Why not suggest adding this feature?
    Currently it shows only the version that is going to be installed https://bbs.archlinux.org/viewtopic.php … 3#p1316573
    I've mated pacman's checkupdates with my old script https://bbs.archlinux.org/viewtopic.php … 80#p829780
    $ diff -Naur /usr/bin/checkupdates ch
    --- /usr/bin/checkupdates 2013-10-21 14:04:37.000000000 +0000
    +++ ch 2013-12-04 18:46:52.792101792 +0000
    @@ -37,7 +37,11 @@
    mkdir -p "$CHECKUPDATES_DB"
    ln -s "${DBPath}/local" "$CHECKUPDATES_DB" &> /dev/null
    fakeroot pacman -Sy --dbpath "$CHECKUPDATES_DB" --logfile /dev/null &> /dev/null
    -pacman -Qqu --dbpath "$CHECKUPDATES_DB" 2> /dev/null
    +
    +conf=${TMPDIR:-/tmp}/checkup-db-${USER}/pacman.conf
    +grep -v "^Ignore" /etc/pacman.conf > $conf
    +
    +/usr/bin/paste -d " " <(/usr/bin/printf "%-20.20s %-12s => \n" $(/usr/bin/pacman -Qu)) <(/usr/bin/pacman -Sdp --config $conf --print-format "%v" $(/usr/bin/pacman -Qqu --dbpath "$CHECKUPDATES_DB" 2> /dev/null))
    exit 0
    $ ./ch
    libpipeline 1.2.4-1 => 1.2.5-1
    No colors though.
    Last edited by karol (2013-12-04 18:55:03)

  • Clyde can't install packages [SOLVED]

    Whenever I try to install a package from clyde (in this case chromium-stable-libpdf), I am returned the following:
    :: chromium-stable-libpdf package not found, searching for group...
    :: chromium-stable-libpdf group not found, searching AUR...
    error: 'chromium-stable-libpdf': not found in sync db
    A quick forum search returns quite a few threads with people experiencing the same issue, but these all were solved by simply running pacman -Syy (which I have tried).  Pacman seems to work just fine and clyde gives same error when I try with other packages in AUR.  I don't install things from AUR very often (last time was probably ~ 2 weeks ago) so I am not certain what package upgrade (if any) would have caused this/when this error started occurring.  I know that mirrorlist was updated a little earlier today.  Please find my pacman and clyde conf files below (with relevant parts included) and my mirrorlist (I have tried changing to different mirrors).  Thank you in advance.
    /etc/pacman.d/mirrorlist
    # United States
    Server = http://mirrors.cat.pdx.edu/archlinux/$repo/os/x86_64
    Server = http://mirror.ece.vt.edu/archlinux/$repo/os/x86_64
    Server = ftp://mirrors.hosef.org/archlinux/$repo/os/x86_64
    Server = http://mirrors.hosef.org/archlinux/$repo/os/x86_64
    Server = http://hpc.arc.georgetown.edu/mirror/archlinux/$repo/os/x86_64
    Server = ftp://ftp.archlinux.org/$repo/os/x86_64
    /etc/pacman.conf
    # 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
    [core]
    # Add your preferred servers here, they will be used first
    Include = /etc/pacman.d/mirrorlist
    [extra]
    # Add your preferred servers here, they will be used first
    Include = /etc/pacman.d/mirrorlist
    [community]
    # Add your preferred servers here, they will be used first
    Include = /etc/pacman.d/mirrorlist
    [multilib]
    # Add your preferred servers here, they will be used first
    Include = /etc/pacman.d/mirrorlist
    /etc/clyde.conf
    # CLYDE OPTIONS
    [clydeoptions]
    Editor = vim
    #Colors are enabled by default. To disable them, uncomment the following line
    #NoColor
    #Searching AUR is enabled by default. Uncomment the following line to only search with --aur
    #ReposOnly
    #You must set this to a normal user to install packages from AUR safely while running without sudo
    BuildUser = tripsun
    #Modify the following line to specify the directory in which clyde should build packages from AUR
    #BuildDir = /var/cache/clyde
    # /etc/clyde.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
    [core]
    # Add your preferred servers here, they will be used first
    Include = /etc/pacman.d/mirrorlist
    [extra]
    # Add your preferred servers here, they will be used first
    Include = /etc/pacman.d/mirrorlist
    [community]
    # Add your preferred servers here, they will be used first
    Include = /etc/pacman.d/mirrorlist
    [multilib]
    # Add your preferred servers here, they will be used first
    Include = /etc/pacman.d/mirrorlist
    Last edited by Tripsun (2011-03-15 17:23:45)

    Thanks, rebuilding clyde-git worked. Is there a particular reason why it broke all of the sudden?
    Last edited by Tripsun (2011-03-15 19:29:02)

  • [SOLVED by xyne] Search for packages I have but are NOT installed?

    Hi all,
    I run a couple of computers on Arch (both 64-bit), was just wondering if I could copy the /var/cache/pacman/pkg from one computer to the other, and then run some command to install from the cache all packages that are not currently installed. Basically it would be something like "go through all the packages in /var/cache/pacman/pkg, if any are installed ignore them, if a newer version is installed ignore them, but if no version of this package is installed then install it.
    Last edited by ngoonee (2009-06-26 05:17:35)

    Try this:
    #!/usr/bin/perl
    use strict;
    use warnings;
    exit(1) if not @ARGV;
    my $cachedir = $ARGV[0];
    $cachedir = substr($cachedir,0,-1) if substr($cachedir,-1) eq '/';
    opendir(my $dh, $ARGV[0]) or die $!;
    my @cache_pkgs = map { s/-[^-]+-[^-]+(?:-i686|-x86_64|-any)?\.pkg\.tar\.gz$//; $_ }
    grep {/\.pkg\.tar\.gz$/}
    readdir($dh);
    closedir($dh);
    my @installed_pkgs = split(/\s*\n\s*/, `pacman -Qq`);
    my %cache_pkgs;
    $cache_pkgs{$_} = 1 foreach @cache_pkgs;
    my %installed_pkgs;
    $installed_pkgs{$_} = 1 foreach @installed_pkgs;
    foreach (keys(%cache_pkgs))
    delete($cache_pkgs{$_}) if exists($installed_pkgs{$_});
    # uncomment these lines if you just want a list of uninstalled packages
    # without filtering dependencies
    # @cache_pkgs = keys(%cache_pkgs);
    # print "$_\n" foreach @cache_pkgs;
    # exit();
    my $pkg_files;
    foreach my $pkg (keys(%cache_pkgs))
    opendir(my $dh, $cachedir) or die $!;
    my @pkg_files = grep {/^\Q$pkg\E/} readdir($dh);
    closedir($dh);
    foreach my $pkg_file (@pkg_files)
    if ( $pkg_file =~ m/^(.+)-([^-]+-[^-]+)(?:-i686|-x86_64|-any)?\.pkg\.tar\.gz$/ )
    $pkg_file = $cachedir . '/' . $pkg_file;
    if (not exists($pkg_files->{$1}))
    $pkg_files->{$1}->{'ver'} = $2;
    $pkg_files->{$1}->{'file'} = $pkg_file;
    else
    my $ver = $pkg_files->{$1}->{'ver'};
    if (&compare_versions($2,$ver))
    $pkg_files->{$1}->{'ver'} = $2;
    $pkg_files->{$1}->{'file'} = $pkg_file;
    foreach my $pkg (keys(%{$pkg_files}))
    my $pkg_file = $pkg_files->{$pkg}->{'file'};
    my $pkginfo = `tar -O -zxf $pkg_file .PKGINFO`;
    foreach my $line (split(/\s*\n\s*/, $pkginfo))
    if ($line =~ /^depend\s+=\s+([^>=\s]+)/)
    delete($cache_pkgs{$1}) if exists($installed_pkgs{$1});
    @cache_pkgs = keys(%cache_pkgs);
    print "$_\n" foreach @cache_pkgs;
    sub compare_versions
    my ($a,$b) = @_;
    return -1 if not defined($a) and defined($b);
    return 1 if defined($a) and not defined($b);
    return 0 if not defined($a) and not defined($b);
    my ($rel_a,$rel_b) = (0,0);
    if ($a =~ m/(.*)-(.+)$/) {($a,$rel_a)=($1,$2);}
    if ($b =~ m/(.*)-(.+)$/) {($b,$rel_b)=($1,$2);}
    my @a = split(/\./,$a);
    my @b = split(/\./,$b);
    my $len_a = scalar @a;
    my $len_b = scalar @b;
    my $n = ($len_a < $len_b) ? $len_a : $len_b;
    for (my $i=0; $i<$n; $i++)
    my ($int_a,$alph_a,$dash_a) = ($a[$i] =~ m/^(\d*)(.*?)(_.*)?$/);
    my ($int_b,$alph_b,$dash_b) = ($b[$i] =~ m/^(\d*)(.*?)(_.*)?$/);
    $int_a = 0 if $int_a eq '';
    $int_b = 0 if $int_b eq '';
    if ($int_a != $int_b)
    return $int_a <=> $int_b;
    if (length($alph_a) and not length($alph_b))
    return -1;
    if (not length($alph_a) and length($alph_b))
    return 1;
    if ($alph_a ne $alph_b)
    return $alph_a cmp $alph_b;
    return 1 if defined($dash_a) and not defined($dash_b);
    return -1 if not defined($dash_a) and defined($dash_b);
    if (defined($dash_a) and defined($dash_b))
    my $dash_cmp = $dash_a cmp $dash_b;
    return $dash_cmp if $dash_cmp != 0;
    return $len_a <=> $len_b if not $len_a == $len_b;
    return $rel_a <=> $rel_b;
    Save it as "list_pkgs", make it executable and then run it with
    ./list_pkgs /var/cache/pacman/pkg
    It should spit back a list which contains all packages in the cache which are currently uninstalled, minus any packages which are dependencies of others. To install those packages, combine it with pacman:
    pacman -S $(./list_pkgs /var/cache/pacman/pkg)
    This doesn't completely solve the issue of explicit versus implicit installation, but I expect that this would be more manageable than installing everything explicitly. I've commented on lines which can be uncommented to get a simple list which ignores dependency relationships.
    Btw, the script isn't really as long as it might look. The compare_versions function, which I copied over from another module, nearly doubles the size of the script.
    *edited for typos*
    Last edited by Xyne (2009-06-26 04:30:12)

  • The current iTunes 10.5 upgrade does not install on Windows 7 and indicates a faulty install package (error 2324). Advice or details on the release date for a proper fix?

    The current iTunes 10.5 upgrade does not install on Windows 7 and indicates a faulty install package (error 2324). Advice or details on the release date for a proper fix? I'm not able to roll back to the prior version, so I'm stuck in limbo.

    There have been a number of problems with installing the latest iTunes on Windows 7 64-bit machines during the last couple of weeks.  You might want to do a search on that topic and see if anyone has a solution.  There have been various versions of the problem but a lot related to errors in the download package or failure to download.

  • [SOLVED] cannot install package query

    I want to install yaourt, but I can't seem to install package query. I acquired the tarball from here and followed all the steps here
    [maarten@maarten ~]$ cd ~/src
    [maarten@maarten src]$ tar -zxvf package-query.tar.gz
    package-query/
    package-query/PKGBUILD
    [maarten@maarten src]$ cd ~/src/package-query
    [maarten@maarten package-query]$ makepkg -s
    ==> Making package: package-query 1.0.1-1 (Sun Jul 8 11:09:03 CEST 2012)
    ==> Checking runtime dependencies...
    ==> Checking buildtime dependencies...
    ==> Retrieving Sources...
    -> Downloading package-query-1.0.1.tar.gz...
    % Total % Received % Xferd Average Speed Time Time Time Current
    Dload Upload Total Spent Left Speed
    100 361k 100 361k 0 0 205k 0 0:00:01 0:00:01 --:--:-- 226k
    ==> Validating source files with md5sums...
    package-query-1.0.1.tar.gz ... Passed
    ==> Extracting Sources...
    -> Extracting package-query-1.0.1.tar.gz with bsdtar
    ==> Starting build()...
    checking for a BSD-compatible install... /usr/bin/install -c
    checking whether build environment is sane... yes
    checking for a thread-safe mkdir -p... /bin/mkdir -p
    checking for gawk... gawk
    checking whether make sets $(MAKE)... yes
    checking for gcc... gcc
    checking whether the C compiler works... yes
    checking for C compiler default output file name... a.out
    checking for suffix of executables...
    checking whether we are cross compiling... no
    checking for suffix of object files... o
    checking whether we are using the GNU C compiler... yes
    checking whether gcc accepts -g... yes
    checking for gcc option to accept ISO C89... none needed
    checking for style of include used by make... GNU
    checking dependency style of gcc... gcc3
    checking build system type... i686-pc-linux-gnu
    checking host system type... i686-pc-linux-gnu
    checking how to print strings... printf
    checking for a sed that does not truncate output... /bin/sed
    checking for grep that handles long lines and -e... /usr/bin/grep
    checking for egrep... /usr/bin/grep -E
    checking for fgrep... /usr/bin/grep -F
    checking for ld used by gcc... /usr/bin/ld
    checking if the linker (/usr/bin/ld) is GNU ld... yes
    checking for BSD- or MS-compatible name lister (nm)... /usr/bin/nm -B
    checking the name lister (/usr/bin/nm -B) interface... BSD nm
    checking whether ln -s works... yes
    checking the maximum length of command line arguments... 1572864
    checking whether the shell understands some XSI constructs... yes
    checking whether the shell understands "+="... yes
    checking how to convert i686-pc-linux-gnu file names to i686-pc-linux-gnu format... func_convert_file_noop
    checking how to convert i686-pc-linux-gnu file names to toolchain format... func_convert_file_noop
    checking for /usr/bin/ld option to reload object files... -r
    checking for objdump... objdump
    checking how to recognize dependent libraries... pass_all
    checking for dlltool... no
    checking how to associate runtime and link libraries... printf %s\n
    checking for ar... ar
    checking for archiver @FILE support... @
    checking for strip... strip
    checking for ranlib... ranlib
    checking command to parse /usr/bin/nm -B output from gcc object... ok
    checking for sysroot... no
    checking for mt... no
    checking if : is a manifest tool... no
    checking how to run the C preprocessor... gcc -E
    checking for ANSI C header files... yes
    checking for sys/types.h... yes
    checking for sys/stat.h... yes
    checking for stdlib.h... yes
    checking for string.h... yes
    checking for memory.h... yes
    checking for strings.h... yes
    checking for inttypes.h... yes
    checking for stdint.h... yes
    checking for unistd.h... yes
    checking for dlfcn.h... yes
    checking for objdir... .libs
    checking if gcc supports -fno-rtti -fno-exceptions... no
    checking for gcc option to produce PIC... -fPIC -DPIC
    checking if gcc PIC flag -fPIC -DPIC works... yes
    checking if gcc static flag -static works... yes
    checking if gcc supports -c -o file.o... yes
    checking if gcc supports -c -o file.o... (cached) yes
    checking whether the gcc linker (/usr/bin/ld) supports shared libraries... yes
    checking whether -lc should be explicitly linked in... no
    checking dynamic linker characteristics... GNU/Linux ld.so
    checking how to hardcode library paths into programs... immediate
    checking whether stripping libraries is possible... yes
    checking if libtool supports shared libraries... yes
    checking whether to build shared libraries... yes
    checking whether to build static libraries... yes
    checking ctype.h usability... yes
    checking ctype.h presence... yes
    checking for ctype.h... yes
    checking getopt.h usability... yes
    checking getopt.h presence... yes
    checking for getopt.h... yes
    checking libintl.h usability... yes
    checking libintl.h presence... yes
    checking for libintl.h... yes
    checking limits.h usability... yes
    checking limits.h presence... yes
    checking for limits.h... yes
    checking locale.h usability... yes
    checking locale.h presence... yes
    checking for locale.h... yes
    checking sys/ioctl.h usability... yes
    checking sys/ioctl.h presence... yes
    checking for sys/ioctl.h... yes
    checking sys/utsname.h usability... yes
    checking sys/utsname.h presence... yes
    checking for sys/utsname.h... yes
    checking for alpm_version in -lalpm... yes
    checking for yajl_free in -lyajl... yes
    checking for gawk... (cached) gawk
    checking for curl-config... /usr/bin/curl-config
    checking for the version of libcurl... 7.26.0
    checking for libcurl >= version 7.19.4... yes
    checking whether libcurl is usable... yes
    checking for curl_free... yes
    checking whether NLS is requested... yes
    checking for msgfmt... /usr/bin/msgfmt
    checking for gmsgfmt... /usr/bin/msgfmt
    checking for xgettext... /usr/bin/xgettext
    checking for msgmerge... /usr/bin/msgmerge
    checking for ld used by GCC... /usr/bin/ld
    checking if the linker (/usr/bin/ld) is GNU ld... yes
    checking for shared library run path origin... done
    checking for CFPreferencesCopyAppValue... no
    checking for CFLocaleCopyCurrent... no
    checking for GNU gettext in libc... yes
    checking whether to use NLS... yes
    checking where the gettext function comes from... libc
    checking for git... git
    checking for .git/... no
    configure: creating ./config.status
    config.status: creating src/Makefile
    config.status: creating doc/Makefile
    config.status: creating Makefile
    config.status: creating config.h
    config.status: executing depfiles commands
    config.status: executing libtool commands
    config.status: executing po-directories commands
    package-query:
    Build information:
    source code location : .
    prefix : /usr
    sysconfdir : /etc
    conf file : /etc/pacman.conf
    localstatedir : /var
    database dir : /var/lib/pacman/
    compiler : gcc
    compiler flags : -march=i686 -mtune=generic -O2 -pipe -fstack-protector --param=ssp-buffer-size=4 -D_FORTIFY_SOURCE=2
    package-query version : 1.0.1
    using git version : no
    git ver :
    Variable information:
    root working directory : /
    aur base url : [url]http://aur.archlinux.org[/url]
    make all-recursive
    make[1]: Entering directory `/home/maarten/src/package-query/src/package-query-1.0.1'
    Making all in src
    make[2]: Entering directory `/home/maarten/src/package-query/src/package-query-1.0.1/src'
    gcc -DLOCALEDIR=\"/usr/share/locale\" -DCONFFILE=\"/etc/pacman.conf\" -DROOTDIR=\"/\" -DDBPATH=\"/var/lib/pacman/\" -DAUR_BASE_URL=\"http://aur.archlinux.org\" -DHAVE_CONFIG_H -I. -I.. -D_GNU_SOURCE -march=i686 -mtune=generic -O2 -pipe -fstack-protector --param=ssp-buffer-size=4 -D_FORTIFY_SOURCE=2 -MT aur.o -MD -MP -MF .deps/aur.Tpo -c -o aur.o aur.c
    mv -f .deps/aur.Tpo .deps/aur.Po
    gcc -DLOCALEDIR=\"/usr/share/locale\" -DCONFFILE=\"/etc/pacman.conf\" -DROOTDIR=\"/\" -DDBPATH=\"/var/lib/pacman/\" -DAUR_BASE_URL=\"http://aur.archlinux.org\" -DHAVE_CONFIG_H -I. -I.. -D_GNU_SOURCE -march=i686 -mtune=generic -O2 -pipe -fstack-protector --param=ssp-buffer-size=4 -D_FORTIFY_SOURCE=2 -MT alpm-query.o -MD -MP -MF .deps/alpm-query.Tpo -c -o alpm-query.o alpm-query.c
    alpm-query.c: In function 'alpm_pkg_get_realsize':
    alpm-query.c:486:9: warning: ignoring return value of 'chdir', declared with attribute warn_unused_result [-Wunused-result]
    mv -f .deps/alpm-query.Tpo .deps/alpm-query.Po
    gcc -DLOCALEDIR=\"/usr/share/locale\" -DCONFFILE=\"/etc/pacman.conf\" -DROOTDIR=\"/\" -DDBPATH=\"/var/lib/pacman/\" -DAUR_BASE_URL=\"http://aur.archlinux.org\" -DHAVE_CONFIG_H -I. -I.. -D_GNU_SOURCE -march=i686 -mtune=generic -O2 -pipe -fstack-protector --param=ssp-buffer-size=4 -D_FORTIFY_SOURCE=2 -MT util.o -MD -MP -MF .deps/util.Tpo -c -o util.o util.c
    util.c: In function 'ltostr':
    util.c:532:11: warning: ignoring return value of 'asprintf', declared with attribute warn_unused_result [-Wunused-result]
    util.c: In function 'itostr':
    util.c:525:11: warning: ignoring return value of 'asprintf', declared with attribute warn_unused_result [-Wunused-result]
    util.c: In function 'concat_backup_list':
    util.c:480:12: warning: ignoring return value of 'asprintf', declared with attribute warn_unused_result [-Wunused-result]
    util.c: In function 'string_fcat':
    util.c:342:11: warning: ignoring return value of 'vasprintf', declared with attribute warn_unused_result [-Wunused-result]
    mv -f .deps/util.Tpo .deps/util.Po
    gcc -DLOCALEDIR=\"/usr/share/locale\" -DCONFFILE=\"/etc/pacman.conf\" -DROOTDIR=\"/\" -DDBPATH=\"/var/lib/pacman/\" -DAUR_BASE_URL=\"http://aur.archlinux.org\" -DHAVE_CONFIG_H -I. -I.. -D_GNU_SOURCE -march=i686 -mtune=generic -O2 -pipe -fstack-protector --param=ssp-buffer-size=4 -D_FORTIFY_SOURCE=2 -MT color.o -MD -MP -MF .deps/color.Tpo -c -o color.o color.c
    mv -f .deps/color.Tpo .deps/color.Po
    gcc -DLOCALEDIR=\"/usr/share/locale\" -DCONFFILE=\"/etc/pacman.conf\" -DROOTDIR=\"/\" -DDBPATH=\"/var/lib/pacman/\" -DAUR_BASE_URL=\"http://aur.archlinux.org\" -DHAVE_CONFIG_H -I. -I.. -D_GNU_SOURCE -march=i686 -mtune=generic -O2 -pipe -fstack-protector --param=ssp-buffer-size=4 -D_FORTIFY_SOURCE=2 -MT package-query.o -MD -MP -MF .deps/package-query.Tpo -c -o package-query.o package-query.c
    mv -f .deps/package-query.Tpo .deps/package-query.Po
    /bin/sh ../libtool --tag=CC --mode=link gcc -D_GNU_SOURCE -march=i686 -mtune=generic -O2 -pipe -fstack-protector --param=ssp-buffer-size=4 -D_FORTIFY_SOURCE=2 -lcurl -Wl,-O1,--sort-common,--as-needed,-z,relro -o package-query aur.o alpm-query.o util.o color.o package-query.o -lyajl -lalpm
    libtool: link: gcc -D_GNU_SOURCE -march=i686 -mtune=generic -O2 -pipe -fstack-protector --param=ssp-buffer-size=4 -D_FORTIFY_SOURCE=2 -Wl,-O1 -Wl,--sort-common -Wl,--as-needed -Wl,-z -Wl,relro -o package-query aur.o alpm-query.o util.o color.o package-query.o -lcurl -lyajl -lalpm
    make[2]: Leaving directory `/home/maarten/src/package-query/src/package-query-1.0.1/src'
    Making all in doc
    make[2]: Entering directory `/home/maarten/src/package-query/src/package-query-1.0.1/doc'
    make[2]: Nothing to be done for `all'.
    make[2]: Leaving directory `/home/maarten/src/package-query/src/package-query-1.0.1/doc'
    make[2]: Entering directory `/home/maarten/src/package-query/src/package-query-1.0.1'
    make[2]: Leaving directory `/home/maarten/src/package-query/src/package-query-1.0.1'
    make[1]: Leaving directory `/home/maarten/src/package-query/src/package-query-1.0.1'
    ==> Entering fakeroot environment...
    ==> Starting package()...
    Making install in src
    make[1]: Entering directory `/home/maarten/src/package-query/src/package-query-1.0.1/src'
    make[2]: Entering directory `/home/maarten/src/package-query/src/package-query-1.0.1/src'
    test -z "/usr/bin" || /bin/mkdir -p "/home/maarten/src/package-query/pkg/usr/bin"
    /bin/sh ../libtool --mode=install /usr/bin/install -c package-query '/home/maarten/src/package-query/pkg/usr/bin'
    libtool: install: /usr/bin/install -c package-query /home/maarten/src/package-query/pkg/usr/bin/package-query
    make[2]: Nothing to be done for `install-data-am'.
    make[2]: Leaving directory `/home/maarten/src/package-query/src/package-query-1.0.1/src'
    make[1]: Leaving directory `/home/maarten/src/package-query/src/package-query-1.0.1/src'
    Making install in doc
    make[1]: Entering directory `/home/maarten/src/package-query/src/package-query-1.0.1/doc'
    make[2]: Entering directory `/home/maarten/src/package-query/src/package-query-1.0.1/doc'
    make[2]: Nothing to be done for `install-exec-am'.
    test -z "/usr/share/man/man8" || /bin/mkdir -p "/home/maarten/src/package-query/pkg/usr/share/man/man8"
    /usr/bin/install -c -m 644 package-query.8 '/home/maarten/src/package-query/pkg/usr/share/man/man8'
    make[2]: Leaving directory `/home/maarten/src/package-query/src/package-query-1.0.1/doc'
    make[1]: Leaving directory `/home/maarten/src/package-query/src/package-query-1.0.1/doc'
    make[1]: Entering directory `/home/maarten/src/package-query/src/package-query-1.0.1'
    make[2]: Entering directory `/home/maarten/src/package-query/src/package-query-1.0.1'
    make[2]: Nothing to be done for `install-exec-am'.
    make[2]: Nothing to be done for `install-data-am'.
    make[2]: Leaving directory `/home/maarten/src/package-query/src/package-query-1.0.1'
    make[1]: Leaving directory `/home/maarten/src/package-query/src/package-query-1.0.1'
    ==> Tidying install...
    -> Purging unwanted files...
    -> Compressing man and info pages...
    -> Stripping unneeded symbols from binaries and libraries...
    ==> Creating package...
    -> Generating .PKGINFO file...
    -> Compressing package...
    ==> Leaving fakeroot environment.
    ==> Finished making: package-query 1.0.1-1 (Sun Jul 8 11:09:18 CEST 2012)
    [maarten@maarten package-query]$ dir
    PKGBUILD package-query-1.0.1.tar.gz src
    package-query-1.0.1-1-i686.pkg.tar.xz pkg
    [maarten@maarten package-query]$ sudo pacman -U package-query-1.0.1-1-i686.pkg.tar.xz
    Password:
    loading packages...
    error: 'package-query-1.0.1-1-i686.pkg.tar.xz': invalid or corrupted package (PGP signature)
    I already reran pacman-key --init and pacman-key --populate archlinux after removing the allready acquired signatures (/etc/pacman.d/gnupg). But it keeps returning the same error.
    Do I need to add another key manually to install packages manually from the AUR?
    Last edited by maartennnnnnn (2012-07-08 09:44:01)

    I edited your post to change the \[quote\] tags to \[code\] tags - it makes for a much easier to read post
    https://wiki.archlinux.org/index.php/Fo … s_and_Code
    Two options are to change your SigLevel or sign your own key...

  • [SOLVED] install package from aur via yaourt

    Hi,
    i installed yaourt and tried to install from the aur.
    it keeps asking me to continue bulding and then restart building. it just wont install any packages.
    for none-aur packages it works fine btw.
    any help?
    alex
    Last edited by alext (2011-10-11 23:13:53)

    me too and it didnt.
    [xxx@xxx pcmanfm-mod]$ yaourt ntfs-config
    1 aur/ntfs-config 1.0.1-7 (200)
    Enable/disable NTFS write support with a simple click
    ==> Enter n° of packages to be installed (ex: 1 2 3 or 1-3)
    ==> -------------------------------------------------------
    ==> 1
    ==> Downloading ntfs-config PKGBUILD from AUR...
    x PKGBUILD
    x python-2.7.patch
    Comment by: loleg on Sat, 25 Jun 2011 10:07:14 +0000
    Compiles installs OK using yaourt, however does not work on my up-to-date system with the issue discussed here: http://ubuntuforums.org/archive/index.php/t-1497399.html
    Comment by: jlcordeiro on Mon, 27 Jun 2011 08:56:12 +0000
    Can you check if:
    sudo mkdir /etc/hal/fdi
    sudo touch /etc/hal/fdi/policy
    solves the problem?
    Comment by: mr430 on Tue, 04 Oct 2011 15:56:44 +0000
    jlcordeiro, same problem and making /etc/hal/fdi directory solve it, thanks
    Comment by: jlcordeiro on Sat, 08 Oct 2011 08:17:08 +0000
    Updated with the solution to the mentioned problem.
    Comment by: archdria on Tue, 11 Oct 2011 12:04:43 +0000
    Please, add perl-xml-parser as makedep :)
    Comment by: jlcordeiro on Tue, 11 Oct 2011 21:36:05 +0000
    Done. Thank you :)
    First Submitted: Fri, 19 Jan 2007 21:10:44 +0000
    ntfs-config 1.0.1-7
    ( Unsupported package: Potentially dangerous ! )
    ==> Edit PKGBUILD ? [Y/n] ("A" to abort)
    ==> ------------------------------------
    ==> n
    ==> ntfs-config dependencies:
    - python2 (already installed)
    - pygtk (already installed)
    - udev (already installed)
    - ntfs-3g (already installed)
    - perl-xml-parser (already installed)
    - warning: (building from AUR)
    - config (building from AUR)
    - file (package found)
    - /etc/pacman.d/mirrorlist, (building from AUR)
    - line (building from AUR)
    - 82: (building from AUR)
    - directive (building from AUR)
    - 'Germany' (building from AUR)
    - in (building from AUR)
    - section (building from AUR)
    - 'testing' (building from AUR)
    - not (building from AUR)
    - recognized. (building from AUR)
    - warning: (building from AUR)
    - config (building from AUR)
    - file (package found)
    - /etc/pacman.d/mirrorlist, (building from AUR)
    - line (building from AUR)
    - 82: (building from AUR)
    - directive (building from AUR)
    - 'Germany' (building from AUR)
    - in (building from AUR)
    - section (building from AUR)
    - 'core' (building from AUR)
    - not (building from AUR)
    - recognized. (building from AUR)
    - warning: (building from AUR)
    - config (building from AUR)
    - file (package found)
    - /etc/pacman.d/mirrorlist, (building from AUR)
    - line (building from AUR)
    - 82: (building from AUR)
    - directive (building from AUR)
    - 'Germany' (building from AUR)
    - in (building from AUR)
    - section (building from AUR)
    - 'extra' (building from AUR)
    - not (building from AUR)
    - recognized. (building from AUR)
    - warning: (building from AUR)
    - config (building from AUR)
    - file (package found)
    - /etc/pacman.d/mirrorlist, (building from AUR)
    - line (building from AUR)
    - 82: (building from AUR)
    - directive (building from AUR)
    - 'Germany' (building from AUR)
    - in (building from AUR)
    - section (building from AUR)
    - 'community-testing' (building from AUR)
    - not (building from AUR)
    - recognized. (building from AUR)
    - warning: (building from AUR)
    - config (building from AUR)
    - file (package found)
    - /etc/pacman.d/mirrorlist, (building from AUR)
    - line (building from AUR)
    - 82: (building from AUR)
    - directive (building from AUR)
    - 'Germany' (building from AUR)
    - in (building from AUR)
    - section (building from AUR)
    - 'community' (building from AUR)
    - not (building from AUR)
    - recognized. (building from AUR)
    - warning: (building from AUR)
    - config (building from AUR)
    - file (package found)
    - /etc/pacman.d/mirrorlist, (building from AUR)
    - line (building from AUR)
    - 82: (building from AUR)
    - directive (building from AUR)
    - 'Germany' (building from AUR)
    - in (building from AUR)
    - section (building from AUR)
    - 'multilib' (building from AUR)
    - not (building from AUR)
    - recognized. (building from AUR)
    ==> Continue building ntfs-config ? [Y/n]
    ==> -------------------------------------
    ==>
    ==> Building and installing package
    ==> Install or build missing dependencies for ntfs-config:
    Password:
    warning: config file /etc/pacman.d/mirrorlist, line 82: directive 'Germany' in section 'testing' not recognized.
    warning: config file /etc/pacman.d/mirrorlist, line 82: directive 'Germany' in section 'core' not recognized.
    warning: config file /etc/pacman.d/mirrorlist, line 82: directive 'Germany' in section 'extra' not recognized.
    warning: config file /etc/pacman.d/mirrorlist, line 82: directive 'Germany' in section 'community-testing' not recognized.
    warning: config file /etc/pacman.d/mirrorlist, line 82: directive 'Germany' in section 'community' not recognized.
    warning: config file /etc/pacman.d/mirrorlist, line 82: directive 'Germany' in section 'multilib' not recognized.
    error: target not found: recognized.
    ==> Restart building ntfs-config ? [y/N]
    ==> ------------------------------------
    ==>
    ==> Edit PKGBUILD ? [Y/n] ("A" to abort)
    ==> ------------------------------------
    ==> n
    ==> ntfs-config dependencies:
    - python2 (already installed)
    - pygtk (already installed)
    - udev (already installed)
    - ntfs-3g (already installed)
    - perl-xml-parser (already installed)
    - warning: (building from AUR)
    - config (building from AUR)
    - file (package found)
    - /etc/pacman.d/mirrorlist, (building from AUR)
    - line (building from AUR)
    - 82: (building from AUR)
    - directive (building from AUR)
    - 'Germany' (building from AUR)
    - in (building from AUR)
    - section (building from AUR)
    - 'testing' (building from AUR)
    - not (building from AUR)
    - recognized. (building from AUR)
    - warning: (building from AUR)
    - config (building from AUR)
    - file (package found)
    - /etc/pacman.d/mirrorlist, (building from AUR)
    - line (building from AUR)
    - 82: (building from AUR)
    - directive (building from AUR)
    - 'Germany' (building from AUR)
    - in (building from AUR)
    - section (building from AUR)
    - 'core' (building from AUR)
    - not (building from AUR)
    - recognized. (building from AUR)
    - warning: (building from AUR)
    - config (building from AUR)
    - file (package found)
    - /etc/pacman.d/mirrorlist, (building from AUR)
    - line (building from AUR)
    - 82: (building from AUR)
    - directive (building from AUR)
    - 'Germany' (building from AUR)
    - in (building from AUR)
    - section (building from AUR)
    - 'extra' (building from AUR)
    - not (building from AUR)
    - recognized. (building from AUR)
    - warning: (building from AUR)
    - config (building from AUR)
    - file (package found)
    - /etc/pacman.d/mirrorlist, (building from AUR)
    - line (building from AUR)
    - 82: (building from AUR)
    - directive (building from AUR)
    - 'Germany' (building from AUR)
    - in (building from AUR)
    - section (building from AUR)
    - 'community-testing' (building from AUR)
    - not (building from AUR)
    - recognized. (building from AUR)
    - warning: (building from AUR)
    - config (building from AUR)
    - file (package found)
    - /etc/pacman.d/mirrorlist, (building from AUR)
    - line (building from AUR)
    - 82: (building from AUR)
    - directive (building from AUR)
    - 'Germany' (building from AUR)
    - in (building from AUR)
    - section (building from AUR)
    - 'community' (building from AUR)
    - not (building from AUR)
    - recognized. (building from AUR)
    - warning: (building from AUR)
    - config (building from AUR)
    - file (package found)
    - /etc/pacman.d/mirrorlist, (building from AUR)
    - line (building from AUR)
    - 82: (building from AUR)
    - directive (building from AUR)
    - 'Germany' (building from AUR)
    - in (building from AUR)
    - section (building from AUR)
    - 'multilib' (building from AUR)
    - not (building from AUR)
    - recognized. (building from AUR)
    ==> Continue building ntfs-config ? [Y/n]
    ==> -------------------------------------
    ==>
    ==> Building and installing package
    ==> Install or build missing dependencies for ntfs-config:
    warning: config file /etc/pacman.d/mirrorlist, line 82: directive 'Germany' in section 'testing' not recognized.
    warning: config file /etc/pacman.d/mirrorlist, line 82: directive 'Germany' in section 'core' not recognized.
    warning: config file /etc/pacman.d/mirrorlist, line 82: directive 'Germany' in section 'extra' not recognized.
    warning: config file /etc/pacman.d/mirrorlist, line 82: directive 'Germany' in section 'community-testing' not recognized.
    warning: config file /etc/pacman.d/mirrorlist, line 82: directive 'Germany' in section 'community' not recognized.
    warning: config file /etc/pacman.d/mirrorlist, line 82: directive 'Germany' in section 'multilib' not recognized.
    error: target not found: recognized.
    ==> Restart building ntfs-config ? [y/N]
    ==> ------------------------------------
    ==>
    ==> WARNING: Following packages have not been installed:
    ntfs-config
    Edit: now ive just seen that i forgot about the warnings. i am not sure about what they mean and how to fix it.
    Last edited by alext (2011-10-11 22:16:58)

  • [SOLVED] Unable to install packages in lxc container

    tl;dr: lxc-console should be used for logging in, not lxc-attach. Also, I had to do some additional work to get the tty to work in systemd, and I plan to update the wiki soon.
    I created a container using the following command:
    # lxc-create -n test -t archlinux
    Once created and configured, I started the container daemonized, and attached:
    # lxc-start -n test -d
    # lxc-attach --clear-env -n test -- su - root
    However, I am unable to install any software packages because GPG isn't working properly
    [root@test ~]# pacman -Syu openssh
    :: Synchronizing package databases...
    core is up to date
    extra is up to date
    community is up to date
    multilib is up to date
    :: Starting full system upgrade...
    resolving dependencies...
    looking for inter-conflicts...
    Packages (3): ldns-1.6.17-1 libedit-20130601_3.1-1 openssh-6.5p1-2
    Total Installed Size: 6.08 MiB
    :: Proceed with installation? [Y/n]
    (3/3) checking keys in keyring [###########################] 100%
    (3/3) checking package integrity [###########################] 100%
    error: GPGME error: Inappropriate ioctl for device
    error: GPGME error: Inappropriate ioctl for device
    error: GPGME error: Inappropriate ioctl for device
    error: libedit: missing required signature
    :: File /var/cache/pacman/pkg/libedit-20130601_3.1-1-x86_64.pkg.tar.xz is corrupted (invalid or corrupted package (PGP signature)).
    Do you want to delete it? [Y/n]
    error: ldns: missing required signature
    :: File /var/cache/pacman/pkg/ldns-1.6.17-1-x86_64.pkg.tar.xz is corrupted (invalid or corrupted package (PGP signature)).
    Do you want to delete it? [Y/n]
    error: openssh: missing required signature
    :: File /var/cache/pacman/pkg/openssh-6.5p1-2-x86_64.pkg.tar.xz is corrupted (invalid or corrupted package (PGP signature)).
    Do you want to delete it? [Y/n]
    error: failed to commit transaction (invalid or corrupted package (PGP signature))
    Errors occurred, no packages were upgraded.
    error: segmentation fault
    Please submit a full bug report with --debug if appropriate.
    The container config is as follows:
    lxc.utsname=test
    lxc.autodev=1
    lxc.tty=1
    lxc.pts=1024
    lxc.rootfs=/var/lib/lxc/test/rootfs
    lxc.mount=/var/lib/lxc/test/fstab
    lxc.cap.drop=mknod sys_module mac_admin mac_override
    lxc.kmsg=0
    lxc.stopsignal=SIGRTMIN+4
    #networking
    lxc.network.type=veth
    lxc.network.link=br0
    lxc.network.flags=up
    lxc.network.name=eth0
    lxc.network.ipv4=10.10.209.2/24
    lxc.network.ipv4.gateway=10.10.209.1
    lxc.network.mtu=1500
    #cgroups
    lxc.cgroup.devices.deny = a
    lxc.cgroup.devices.allow = c *:* m
    lxc.cgroup.devices.allow = b *:* m
    lxc.cgroup.devices.allow = c 1:3 rwm
    lxc.cgroup.devices.allow = c 1:5 rwm
    lxc.cgroup.devices.allow = c 1:7 rwm
    lxc.cgroup.devices.allow = c 1:8 rwm
    lxc.cgroup.devices.allow = c 1:9 rwm
    lxc.cgroup.devices.allow = c 1:9 rwm
    lxc.cgroup.devices.allow = c 4:1 rwm
    lxc.cgroup.devices.allow = c 5:0 rwm
    lxc.cgroup.devices.allow = c 5:1 rwm
    lxc.cgroup.devices.allow = c 5:2 rwm
    lxc.cgroup.devices.allow = c 136:* rwm
    Has anyone else experienced this? I've searched the web for solutions to the GPG error, and most of them relate to GPG not working in a chroot because the right things don't exist in /dev. However, I was under the impression that lxc.autodev=1 would take care of this, and indeed /dev/pts, etc. all exist in the container.
    Last edited by archtaku (2014-02-07 23:19:12)

    x33a wrote:
    Try
    # pacman-key --refresh-keys
    from within the container. Though, I do notice a segmentation fault, so I am not sure if it'll work.
    I just did this, and the command succeeded:
    gpg: refreshing 75 keys from hkp://pool.sks-keyservers.net
    gpg: requesting key 5263801D from hkp server pool.sks-keyservers.net
    gpg: requesting key FFF979E7 from hkp server pool.sks-keyservers.net
    gpg: requesting key CDFD6BB0 from hkp server pool.sks-keyservers.net
    gpg: requesting key 4C7EA887 from hkp server pool.sks-keyservers.net
    ... snip ...
    gpg: Total number processed: 74
    gpg: unchanged: 74
    However, the installation still failed.
    I was able to get pacman to install openssh by turning off signature verification. I then ssh'ed into the container, turned signature verification back on, and was able to install other packages just fine.
    So the issue seems to be with how lxc-attach connects to the container. A temporary solution would be:
    Add openssh to the list of packages installed when running lxc-create.
    # lxc-create -n test -t archlinux -- -P vim,openssh
    Attach to the container and run systemctl enable sshd.service, and set a root password
    Detach, then ssh into container and go about your business.
    However, I'd rather have the option of not using sshd on the container, and still be able to install packages, so I don't necessarily consider this problem solved yet.
    Can anyone shed some light on what I might be doing wrong when I attach to the container?
    Last edited by archtaku (2014-02-07 16:46:52)

  • Script to rebuild all installed packages from ABS

    I realize pacbuilder is for that, but it doesn't seem to work properly for me. Skipping a lot of packages etc.
    Anyway, I've made this very simple script to just rebuild every installed package from core/extra/community. Sorry for the localized echo output, but I think it's all very simple and straightforward to understand.
    Edit:
    I've improved it a bit, now it should work flawlessly and remember what stuff it has to finish no matter when you ^C out of it. Also it installs all compiled packages, if you want to avoid that, remove -i switch from makepkg.
    #!/bin/sh
    # user configuration
    absdir="/home/mateusz/abs/autobuild"
    pkgdir="/home/mateusz/abs/packages"
    pkgfile="/home/mateusz/abs/autobuild.list"
    # end of user configuration
    topabs="/var/abs"
    if [ ! -d $absdir ]; then
    mkdir -pv $absdir
    fi
    if [ ! -d $pkgdir ]; then
    mkdir -pv $pkgdir
    fi
    echo "(autobuild) Uaktualnianie bazy abs..."
    sudo abs
    if [ ! -f $pkgfile ]; then
    echo "(autobuild) Tworzę listę pakietów do zbudowania..."
    pacman -Qq > $pkgfile
    else
    echo "(autobuild) Znaleziono poprzedni build."
    echo "(autobuild) Jeżeli nie chcesz go wykorzystać, skasuj $pkgfile"
    fi
    for pkgname in $(cat $pkgfile); do
    echo "(autobuild) Szukanie pakietu $pkgname..."
    find $topabs -type d -name "$pkgname" -exec cp -R {} $absdir \; 2> /dev/null
    if [ -d "$absdir/$pkgname" ]; then
    echo "(autobuild) Budowanie pakietu $pkgname..."
    cd "$absdir/$pkgname"
    makepkg -csir --noconfirm > /dev/null
    if [ $? -eq 0 ]; then
    echo "(autobuild) Pakiet zbudowany."
    cat $pkgfile | grep -vx $pkgname > "$pkgfile.tmp"
    mv $pkgfile.tmp $pkgfile
    else
    echo "(autobuild) Błąd budowania pakietu!"
    fi
    else
    echo "(autobuild) Pakiet nieodnaleziony!"
    cat $pkgfile | grep -vx $pkgname > "$pkgfile.tmp"
    mv $pkgfile.tmp $pkgfile
    fi
    done
    echo "(autobuild) Linkowanie pakietów do $pkgdir..."
    find $absdir -name "*`uname -m`.pkg.tar.gz" -exec ln -v {} $pkgdir \; >/dev/null
    echo "(autobuild) Zakończono."
    exit 0
    Last edited by xaff (2009-05-03 13:47:17)

    Here is the script translated into English (with a bit of help from Google Translate, as well as grammar cleanup).
    #!/bin/sh
    # user configuration
    absdir="/home/aabbott/abs/autobuild"
    pkgdir="/home/aabbott/abs/packages"
    pkgfile="/home/aabbott/abs/autobuild.list"
    # end of user configuration
    topabs="/var/abs"
    if [ ! -d $absdir ]; then
    mkdir -pv $absdir
    fi
    if [ ! -d $pkgdir ]; then
    mkdir -pv $pkgdir
    fi
    echo "(autobuild) Updating the ABS database..."
    sudo abs
    if [ ! -f $pkgfile ]; then
    echo "(autobuild) Creating a list of packages to build..."
    pacman -Qq > $pkgfile
    else
    echo "(autobuild) Found a previous build."
    echo "(autobuild) If you don't want to use this build, delete ${pkgfile}."
    fi
    for pkgname in $(cat $pkgfile); do
    echo "(autobuild) Searching for $pkgname..."
    find $topabs -type d -name "$pkgname" -exec cp -R {} $absdir \; 2> /dev/null
    if [ -d "$absdir/$pkgname" ]; then
    echo "(autobuild) Building $pkgname..."
    cd "$absdir/$pkgname"
    makepkg -csir --noconfirm > /dev/null
    if [ $? -eq 0 ]; then
    echo "(autobuild) $pkgname built."
    cat $pkgfile | grep -vx $pkgname > "$pkgfile.tmp"
    mv $pkgfile.tmp $pkgfile
    else
    echo "(autobuild) There was an error when building ${pkgname}!"
    fi
    else
    echo "(autobuild) $pkgname not found!"
    cat $pkgfile | grep -vx $pkgname > "$pkgfile.tmp"
    mv $pkgfile.tmp $pkgfile
    fi
    done
    echo "(autobuild) Linking to $pkgdir..."
    find $absdir -name "*`uname -m`.pkg.tar.gz" -exec ln -v {} $pkgdir \; >/dev/null
    echo "(autobuild) Finished."
    exit 0

  • [SOLVED] gotmail. cant install package

    Hi i want to download my hotmail mails to close that account, but find myself unable to install gotmail, any ideas?
    Thanks!
    [aleyscha@aleyscha ~]$ yaourt -S gotmail
    ==> Continue the building of 'gotmail'? [Y/n]
    ==> ----------------------------------------------
    ==>
    ==> Building and installing package
    ==> Making package: gotmail 0.9.0-2 (Fri Jan 25 08:38:31 PST 2008)
    ==> Checking Runtime Dependencies...
    ==> Checking Buildtime Dependencies...
    ==> Retrieving Sources...
    -> Found gotmail-0.9.0.tar.bz2 in build dir
    ==> Validating source files with md5sums...
    gotmail-0.9.0.tar.bz2 ... Passed
    ==> Extracting Sources...
    -> bsdtar -x -f gotmail-0.9.0.tar.bz2
    gotmail-0.9.0/COPYING: Can't create 'gotmail-0.9.0/COPYING': Permission denied
    gotmail-0.9.0/Makefile: Can't create 'gotmail-0.9.0/Makefile': Permission denied
    gotmail-0.9.0/VERSION: Can't create 'gotmail-0.9.0/VERSION': Permission denied
    gotmail-0.9.0/gotmail.spec: Can't create 'gotmail-0.9.0/gotmail.spec': Permission denied
    gotmail-0.9.0/gotmail.1.gz: Can't create 'gotmail-0.9.0/gotmail.1.gz': Permission denied
    gotmail-0.9.0/gotmail.man: Can't create 'gotmail-0.9.0/gotmail.man': Permission denied
    gotmail-0.9.0/gotmail: Can't create 'gotmail-0.9.0/gotmail': Permission denied
    gotmail-0.9.0/ChangeLog: Can't create 'gotmail-0.9.0/ChangeLog': Permission denied
    gotmail-0.9.0/README: Can't create 'gotmail-0.9.0/README': Permission denied
    gotmail-0.9.0/sample.gotmailrc: Can't create 'gotmail-0.9.0/sample.gotmailrc': Permission denied
    gotmail-0.9.0/gotmail4evolution: Can't create 'gotmail-0.9.0/gotmail4evolution': Permission denied
    bsdtar: Error exit delayed from previous errors.
    ==> ERROR: Failed to extract gotmail-0.9.0.tar.bz2
    Aborting...
    Error: Makepkg was unable to build gotmail package.
    Last edited by leo2501 (2008-01-25 22:59:44)

    solved!! i download GetLive and is retrieving all my messages! what a wonderful script here it is:
    http://sourceforge.net/projects/getlive/
    Now i can close that damn account

Maybe you are looking for

  • Quicktime 7.1.3 not showing the Flash FLV Exporter option.

    I have a macbook with FCP 5.1.2, Quicktime 7.1.3 and Flash Pro 8 installed. The same as with my G5, but different release of FCP (FCP 4.5 HD in G5) On my G5 all is fine. I see the FLV export plug in. The problem is in my Macbook : I can't see the FLV

  • Can you get iTunes match without a credit card because i don't have one

    i want itunes match but i don't have a credit card can somebody help me?

  • E-Mail alerts for queues in SMQ2

    Hi, In a asynchronous IDOC->ABAP Proxy scenario, some of the  messages are getting stucked in the transaction SMQ2 in PI system.This happens only when we send 100 IDOCs to PI at the same time and only 5-10 messages are getting stucked with status as

  • User exit for FF68

    Does anyone know of a way to take a value from FF68 and use it to post an accounting document. We require to put the Issuer value into ref Key 3. A substitution does not work, as it is not called. There do not seem to be any user exits in the standar

  • How to process records in a block without navigating (forms45)

    Hi. I use multi-record block with check boxes to allow operator select row they want to update. How can I process this task? Do I have to use: First_Record; loop when../*record doesn't exist */... exit; If /*checkbox selected */ then process_record e