Ruby-cairo upgrade file conflicts [solved]

I did a 'pacman -Su' and it tried to upgrade ruby-cairo but it then bombed out due to file conflicts. If I do a 'pacman -Qu ruby-cairo' it says the package does not exist, even though I'm pretty sure I installed it in the past and hence why there are file conflicts. Should I force the upgrade or are there better ways to solve this?
Here's the output from pacman -Su
Targets (5): bluez-4.79-2 libx11-1.3.5-2 pixman-0.20.0-1 ruby-cairo-1.10.0-1 ruby-pango-0.90.5-3
Total Download Size: 0.00 MB
Total Installed Size: 18.27 MB
Proceed with installation? [Y/n] y
checking package integrity...
(5/5) checking for file conflicts [#######################################################################################################] 100%
error: failed to commit transaction (conflicting files)
ruby-cairo: /usr/lib/ruby/site_ruby/1.9.1/cairo.rb exists in filesystem
ruby-cairo: /usr/lib/ruby/site_ruby/1.9.1/cairo/color.rb exists in filesystem
ruby-cairo: /usr/lib/ruby/site_ruby/1.9.1/cairo/colors.rb exists in filesystem
ruby-cairo: /usr/lib/ruby/site_ruby/1.9.1/cairo/constants.rb exists in filesystem
ruby-cairo: /usr/lib/ruby/site_ruby/1.9.1/cairo/context.rb exists in filesystem
ruby-cairo: /usr/lib/ruby/site_ruby/1.9.1/cairo/context/blur.rb exists in filesystem
ruby-cairo: /usr/lib/ruby/site_ruby/1.9.1/cairo/context/circle.rb exists in filesystem
ruby-cairo: /usr/lib/ruby/site_ruby/1.9.1/cairo/context/color.rb exists in filesystem
ruby-cairo: /usr/lib/ruby/site_ruby/1.9.1/cairo/context/path.rb exists in filesystem
ruby-cairo: /usr/lib/ruby/site_ruby/1.9.1/cairo/context/rectangle.rb exists in filesystem
ruby-cairo: /usr/lib/ruby/site_ruby/1.9.1/cairo/context/triangle.rb exists in filesystem
ruby-cairo: /usr/lib/ruby/site_ruby/1.9.1/cairo/paper.rb exists in filesystem
ruby-cairo: /usr/lib/ruby/site_ruby/1.9.1/cairo/papers.rb exists in filesystem
ruby-cairo: /usr/lib/ruby/site_ruby/1.9.1/cairo/path.rb exists in filesystem
ruby-cairo: /usr/lib/ruby/site_ruby/1.9.1/cairo/point.rb exists in filesystem
ruby-cairo: /usr/lib/ruby/site_ruby/1.9.1/x86_64-linux/cairo.so exists in filesystem
ruby-cairo: /usr/lib/ruby/site_ruby/1.9.1/x86_64-linux/rb_cairo.h exists in filesystem
Errors occurred, no packages were upgraded.
Last edited by skip (2010-11-19 11:04:03)

farrel@ages ~ $ pacman -Qo /usr/lib/ruby/site_ruby/1.9.1/cairo.rb
/usr/lib/ruby/site_ruby/1.9.1/cairo.rb is owned by ruby-rcairo 1.8.0-2
So there's ruby-rcairo (what I have installed) and ruby-cairo which is what it's trying to install. I can probably just remove ruby-rcairo and install ruby-cairo.
Last edited by skip (2010-11-19 10:59:05)

Similar Messages

  • Pacman upgrade - file conflict on lorcon

    On last upgrade, pacman stopped because of a file conflict:
    lorcon: /usr/share/man/man3/lorcon.3.gz exists in filesystem
    What I did:
    # pacman -R lorcon-old-svn pylorcon aircrack-ng-scripts
    # pacman -S lorcon python2-pylorcon aircrack-ng-scripts
    Then everything worked out properly.
    I guess theese packages were renamed, but pacman did not ask me "Do you want to replace lorcon-old-svn with lorcon?", unlike other times.
    Don't know if this was the expected behavior, anyway I'm posting in case someone needs.
    Regards
    Davide

    Hello I'm facing a problem..
    I just installed archlinux
    i ran
    # pacman -Syu command
    pacman has downloaded the packages but it is not installing the packages...
    it showing error msg...
    error: failed to commit transaction(conflicting files)
    file system: /etc/mtab exists in filesystem
    initscripts: /etc/profile.d/locale.sh exists in filesystem
    Errors occurred,no package were upgraded
    Plz tell me what to do...
    Last edited by imk (2012-02-11 18:42:41)

  • Upgrade File Conflicts (with Pacman -Syu)

    When I do a pacman -Syu, I get the following error message:
    checking for file conflicts...
    error: the following file conflicts were found:
       ncurses:  /usr/share/terminfo/s/screen-256color: exists in filesystem
       ncurses:  /usr/share/terminfo/s/screen-256color-bce: exists in filesystem
    errors occurred, no packages were upgraded.
    Hmm.. Any ideas on how to get around this error?
    Rob

    I just saw the answer in the News.  Upgrade screen first.  Then upgrade ncurses.  I will give that a try.
    Rob

  • [Solved] Dovecot upgrade failed due to file conflicts

    yaourt -Syu failed this morning do to file conflicts with dovecot.  Here is the output:
    :: Starting full system upgrade...
    warning: iscan: local (2.15.0.3-1) is newer than archlinuxfr (2.8.0-3)
    resolving dependencies...
    looking for inter-conflicts...
    Targets (10): libcups-1.3.10-1 cups-1.3.10-1 libmysqlclient-5.1.34-1 dovecot-1.1.14-1
    ffmpegthumbnailer-1.5.0-1 mysql-clients-5.1.34-1 mysql-5.1.34-1 recordproto-1.13.2-2
    renderproto-0.9.3-2 subversion-1.6.1-3
    Total Download Size: 51.88 MB
    Total Installed Size: 148.31 MB
    Proceed with installation? [Y/n]
    :: Retrieving packages from extra...
    libcups-1.3.10-1-x86_64 185.2K 106.8K/s 00:00:02 [#########################################################] 100%
    cups-1.3.10-1-x86_64 3.0M 121.0K/s 00:00:26 [#########################################################] 100%
    libmysqlclient-5.1.... 12.2M 120.9K/s 00:01:44 [#########################################################] 100%
    dovecot-1.1.14-1-x86_64 3.2M 120.2K/s 00:00:28 [#########################################################] 100%
    mysql-clients-5.1.3... 278.2K 122.2K/s 00:00:02 [#########################################################] 100%
    mysql-5.1.34-1-x86_64 25.9M 122.4K/s 00:03:36 [#########################################################] 100%
    recordproto-1.13.2-... 4.0K 226.0K/s 00:00:00 [#########################################################] 100%
    renderproto-0.9.3-2... 16.7K 86.4K/s 00:00:00 [#########################################################] 100%
    subversion-1.6.1-3-... 6.9M 118.3K/s 00:01:00 [#########################################################] 100%
    :: Retrieving packages from community...
    ffmpegthumbnailer-1... 64.9K 119.1K/s 00:00:01 [#########################################################] 100%
    checking package integrity...
    (10/10) checking for file conflicts [#########################################################] 100%
    error: could not prepare transaction
    error: failed to commit transaction (conflicting files)
    dovecot: /usr/lib/dovecot/imap exists in filesystem
    dovecot: /usr/lib/dovecot/pop3 exists in filesystem
    Errors occurred, no packages were upgraded.
    Should I remove /usr/lib/dovecot/imap and /usr/libdovecot/pop3 and continue the upgrade, or is there a problem with a package?
    Jay
    Last edited by jt512 (2009-04-18 17:32:31)

    Abelian wrote:
    http://www.archlinux.org/news/444/
    yaourt -Syuf should do it
    next time don't do it again.
    just pacman -Sf package and then pacman -Su

  • [SOLVED] Error at upgrade KDE4 - Conflict with kdelibs3

    I'm using KDE 4, and when i tried to upgrade the system, this happens:
    bash-3.2# pacman -Syu
    :: Synchronizing package databases...
    core is up to date
    extra 406,8K 170,2K/s 00:00:02 [##########################################################################################################################################################] 100%
    community 355,1K 42,3K/s 00:00:08 [##########################################################################################################################################################] 100%
    :: Starting full system upgrade...
    resolving dependencies...
    looking for inter-conflicts...
    Targets: kdelibs-4.1.0-4 qtcurve-gtk2-0.59.7-1 qt3-3.3.8-8 kdelibs3-3.5.9-2.1 qtcurve-kde3-0.59.5-1 qtcurve-kde4-0.59.6-1
    Total Download Size: 45,19 MB
    Total Installed Size: 140,78 MB
    Proceed with installation? [Y/n] Y
    :: Retrieving packages from extra...
    kdelibs-4.1.0-4-i686 14,4M 131,4K/s 00:01:52 [#################################]100%
    qtcurve-gtk2-0.59.7... 92,7K 95,1K/s 00:00:01 [#################################]100%
    qt3-3.3.8-8-i686 10,1M 151,9K/s 00:01:08 [#################################] 100%
    kdelibs3-3.5.9-2.1-i686 20,1M 134,5K/s 00:02:33 [################################] 100%
    qtcurve-kde3-0.59.5... 235,7K 148,5K/s 00:00:02 [###############################] 100%
    qtcurve-kde4-0.59.6... 268,0K 152,2K/s 00:00:02 [###############################] 100%
    checking package integrity...
    (6/6) checking for file conflicts [#####################################] 100%
    error: could not prepare transaction
    error: failed to commit transaction (conflicting files)
    kdelibs3: /opt/kde/share/apps/kdeui/about/bar-bottom-left.png exists in filesystem
    kdelibs3: /opt/kde/share/apps/kdeui/about/bar-bottom-middle.png exists in filesystem
    kdelibs3: /opt/kde/share/apps/kdeui/about/bar-bottom-right.png exists in filesystem
    kdelibs3: /opt/kde/share/apps/kdeui/about/bar-middle-left.png exists in filesystem
    kdelibs3: /opt/kde/share/apps/kdeui/about/bar-middle-right.png exists in filesystem
    kdelibs3: /opt/kde/share/apps/kdeui/about/bar-top-left.png exists in filesystem
    kdelibs3: /opt/kde/share/apps/kdeui/about/bar-top-middle.png exists in filesystem
    kdelibs3: /opt/kde/share/apps/kdeui/about/bar-top-right.png exists in filesystem
    kdelibs3: /opt/kde/share/apps/kdeui/about/bottom-left.png exists in filesystem
    kdelibs3: /opt/kde/share/apps/kdeui/about/bottom-middle.png exists in filesystem
    kdelibs3: /opt/kde/share/apps/kdeui/about/bottom-right.png exists in filesystem
    kdelibs3: /opt/kde/share/apps/kdeui/about/box-bottom-left.png exists in filesystem
    kdelibs3: /opt/kde/share/apps/kdeui/about/box-bottom-middle.png exists in filesystem
    kdelibs3: /opt/kde/share/apps/kdeui/about/box-bottom-right.png exists in filesystem
    kdelibs3: /opt/kde/share/apps/kdeui/about/box-middle-left.png exists in filesystem
    kdelibs3: /opt/kde/share/apps/kdeui/about/box-middle-right.png exists in filesystem
    kdelibs3: /opt/kde/share/apps/kdeui/about/box-top-left.png exists in filesystem
    kdelibs3: /opt/kde/share/apps/kdeui/about/box-top-middle.png exists in filesystem
    kdelibs3: /opt/kde/share/apps/kdeui/about/box-top-right.png exists in filesystem
    kdelibs3: /opt/kde/share/apps/kdeui/about/kde_infopage.css exists in filesystem
    kdelibs3: /opt/kde/share/apps/kdeui/about/kde_infopage_rtl.css exists in filesystem
    kdelibs3: /opt/kde/share/apps/kdeui/about/top-left.png exists in filesystem
    kdelibs3: /opt/kde/share/apps/kdeui/about/top-middle.png exists in filesystem
    Errors occurred, no packages were upgraded.
    Last edited by leokolln (2008-08-02 18:36:29)

    All them belongs to kde-mod-ui-kde.
    Eg:
    bash-3.2# pacman -Qo /opt/kde/share/apps/kdeui/about/bar-bottom-left.png
    /opt/kde/share/apps/kdeui/about/bar-bottom-left.png is owned by kdemod-ui-kde 3.5.9-2
    My error, not correctly removed KDEMod.
    Done:
    pacman -Rd kdemod-ui-kde
    then worked fine!
    Problem solved!
    Thanks for the advice.
    Last edited by leokolln (2008-08-02 18:37:18)

  • [Solved] ABS built kernel package file conflicts

    Index» Kernel & Hardware
    Hello-
    I am starting a new thread since my previous post was to an ancient thread (sorry, I hadn't noted the date).
    I built a custom kernel using ABS, attempting to follow https://wiki.archlinux.org/index.php/Cu … n_with_ABS notes
    However the notes regarding _kernelname and pkgname don't seem to match up with the formatting or idea of the PKGBUILD file provided by abs.
    Instead of following the wiki, i followed the instruction provided by the PKGBUILD by commenting out the default line and uncommenting/modifying the second line.
    #pkgbase=linux # Build stock -ARCH kernel
    pkgbase=linux-iwlwifidebug # Build kernel with a different name
    The result was a package with conflicting files:
    loading packages...
    resolving dependencies...
    :: Proceed with installation? [Y/n]
    Packages (1): linux-iwlwifidebug-3.12.1-1
    Total Installed Size: 68.98 MiB
    checking keyring...
    checking package integrity...
    loading package files...
    checking for file conflicts...
    error: failed to commit transaction (conflicting files)
    linux-iwlwifidebug: /usr/lib/modules/3.12.1-1-ARCH/extramodules exists in filesystem
    linux-iwlwifidebug: /usr/lib/modules/3.12.1-1-ARCH/kernel/arch/x86/crypto/ablk_helper.ko.gz exists in filesystem
    linux-iwlwifidebug: /usr/lib/modules/3.12.1-1-ARCH/kernel/arch/x86/crypto/aes-x86_64.ko.gz exists in filesystem
    linux-iwlwifidebug: /usr/lib/modules/3.12.1-1-ARCH/modules.softdep exists in filesystem
    linux-iwlwifidebug: /usr/lib/modules/3.12.1-1-ARCH/modules.symbols exists in filesystem
    linux-iwlwifidebug: /usr/lib/modules/3.12.1-1-ARCH/modules.symbols.bin exists in filesystem
    linux-iwlwifidebug: /usr/src/linux-3.12.1-1-ARCH/vmlinux exists in filesystem
    Errors occurred, no packages were upgraded.
    In the thread that was closed due to being too old (https://bbs.archlinux.org/viewtopic.php?pid=234004), jasonwryan noted:
    "pkgbase is for split packages, you need pkgname:
    _kernelname="-foo"
    pkgname=linux-foo
    pkgver=3.12.1
    pkgrel=1
    _srcname=linux-3.12
    pkgdesc="The ${pkgname} kernel and modules"
    " and you can see that he also changed kernelname.
    Which jives with the doc https://wiki.archlinux.org/index.php/Cu … n_with_ABS, which notes
    Modify pkgname and _kernelname for your custom package name, e.g.:
    _kernelname="-custom" # custom suffix, eg., 3.12.1-1-custom
    pkgname=linux-custom # custom package name, eg., vmlinuz-linux-custom
    Looking at the logic that is provided by jasonwryan and the doc, I need pkgname and _kernelname to be different than default- however these are defined in PKGBUILD as being based on  pkgbase, and it is much cleaner to update the one line that the PKGBUILD maintainer seemed to want us to update.
    _kernelname=${pkgbase#linux}
    pkgname=("${pkgbase}" "${pkgbase}-headers" "${pkgbase}-docs")
    Note that the # symbol strips 'linux' from the front of pkgbase assigns it to _kernelname, while pkgname is a list
    [dylan@zenbook linux]$ pkgbase=linux-iwlwifidebug
    [dylan@zenbook linux]$ echo $pkgbase
    linux-iwlwifidebug
    [dylan@zenbook linux]$ _kernelname=${pkgbase#linux}
    [dylan@zenbook linux]$ echo $_kernelname
    -iwlwifidebug
    [dylan@zenbook linux]$ pkgname=("${pkgbase}" "${pkgbase}-headers" "${pkgbase}-docs")
    [dylan@zenbook linux]$ echo ${pkgname[@]}
    linux-iwlwifidebug linux-iwlwifidebug-headers linux-iwlwifidebug-docs
    So far so good - we have a pkgname and _kernelname which are both non default.
    And to show this, I've created a package by just changing the pkgbase, which shows that it changes both the pkgname and the _kernelname:
    Change of pkgbase:
    [dylan@zenbook linux]$ grep pkgbase= PKGBUILD
    #pkgbase=linux # Build stock -ARCH kernel
    pkgbase=linux-iwlwifidebug # Build kernel with a different name
    Package Names Set
    pkgname=("${pkgbase}" "${pkgbase}-headers" "${pkgbase}-docs")
    for _p in ${pkgname[@]}; do
    eval "package_${_p}() {
    _package${_p#${pkgbase}}
    done
    Ouput Package Name
    [dylan@zenbook linux]$ ls -l *.xz
    -rw-r--r-- 1 dylan dylan 76384600 Nov 26 18:54 linux-3.12.tar.xz
    -rw-r--r-- 1 dylan dylan 52329112 Nov 26 20:16 linux-iwlwifidebug-3.12.1-1-x86_64.pkg.tar.xz
    -rw-r--r-- 1 dylan dylan 4378564 Nov 26 20:17 linux-iwlwifidebug-docs-3.12.1-1-x86_64.pkg.tar.xz
    -rw-r--r-- 1 dylan dylan 6139092 Nov 26 20:17 linux-iwlwifidebug-headers-3.12.1-1-x86_64.pkg.tar.xz
    -rw-r--r-- 1 dylan dylan 6620 Nov 26 18:54 patch-3.12.1.xz
    _kernelname sets information in package
    [dylan@zenbook linux]$ grep -e provides PKGBUILD | grep _kernelname
    provides=("kernel26${_kernelname}=${pkgver}")
    provides=("kernel26${_kernelname}-headers=${pkgver}")
    provides=("kernel26${_kernelname}-docs=${pkgver}")
    Which can be seen here
    [dylan@zenbook linux]$ pacman -Qpi linux-iwlwifidebug-3.12.1-1-x86_64.pkg.tar.xz | grep -i provides
    Provides : kernel26-iwlwifidebug=3.12.1
    So, what is going wrong?
    So the root problem comes to the install path of the files, not the pkgname or the _kernelname, as I have shown above I believe.
    What I found is that changing the pkgrel led to a working install, with the files installed into separate directories.
    pkgrel is modified in the Makefile directly
    [dylan@zenbook linux.working]$ grep pkgrel PKGBUILD
    pkgrel=2
    # set extraversion to pkgrel
    sed -ri "s|^(EXTRAVERSION =).*|\1 -${pkgrel}|" Makefile
    This leads to a package that can be installed, because the directory path includes the -2 rather than -1
    Before changing pkgrel, i had this
    [dylan@zenbook linux]$ pacman -Qpl linux-iwlwifidebug-3.12.1-1-x86_64.pkg.tar.xz | tail -2
    linux-iwlwifidebug /usr/src/linux-3.12.1-1-ARCH/
    linux-iwlwifidebug /usr/src/linux-3.12.1-1-ARCH/vmlinux
    After changing (but keeping default name for package)
    [dylan@zenbook linux.working]$ pacman -Qpl linux-3.12.1-2-x86_64.pkg.tar.xz | tail -2
    linux /usr/src/linux-3.12.1-2-ARCH/
    linux /usr/src/linux-3.12.1-2-ARCH/vmlinux
    Where does the package directory tree get defined?
    The only place pkgrel gets touched is in a re-write of the kernel makefile:
    [dylan@zenbook linux.working]$ grep pkgrel PKGBUILD
    pkgrel=2
    # set extraversion to pkgrel
    sed -ri "s|^(EXTRAVERSION =).*|\1 -${pkgrel}|" Makefile
    Where it gets set, then tied to KERNELVERSION
    [dylan@zenbook linux.working]$ grep EXTRAVERSION src/linux-3.12/Makefile
    EXTRAVERSION = -2
    KERNELVERSION = $(VERSION)$(if $(PATCHLEVEL),.$(PATCHLEVEL)$(if $(SUBLEVEL),.$(SUBLEVEL)))$(EXTRAVERSION)
    Which appears to only be exported for some source tree stuff
    [dylan@zenbook linux.working]$ grep KERNELVERSION src/linux-3.12/Makefile
    KERNELVERSION = $(VERSION)$(if $(PATCHLEVEL),.$(PATCHLEVEL)$(if $(SUBLEVEL),.$(SUBLEVEL)))$(EXTRAVERSION)
    export VERSION PATCHLEVEL SUBLEVEL KERNELRELEASE KERNELVERSION
    echo "$(KERNELVERSION)$$($(CONFIG_SHELL) $(srctree)/scripts/setlocalversion $(srctree))"
    @echo "$(KERNELVERSION)$$($(CONFIG_SHELL) $(srctree)/scripts/setlocalversion $(srctree))"
    @echo $(KERNELVERSION)
    And not at all in pkgbuild
    [dylan@zenbook linux.working]$ grep KERNELVERSION PKGBUILD
    [dylan@zenbook linux.working]$
    What am i missing here?
    Is there a bug that should be changing some headers in the Makefile to create a different directory structure for the packages, by passing in the _kernelname, pkgname, or pkgbase?
    Last edited by thenextdon13 (2013-11-27 22:10:44)

    pkgbuild is default from abs with only pkgbase changed;
    I don't see a way to attach files, so will put entire code content here
    # $Id: PKGBUILD 200210 2013-11-22 12:19:58Z tpowa $
    # Maintainer: Tobias Powalowski <[email protected]>
    # Maintainer: Thomas Baechler <[email protected]>
    #pkgbase=linux # Build stock -ARCH kernel
    pkgbase=linux-iwlwifidebug # Build kernel with a different name
    _srcname=linux-3.12
    pkgver=3.12.1
    pkgrel=1
    arch=('i686' 'x86_64')
    url="http://www.kernel.org/"
    license=('GPL2')
    makedepends=('xmlto' 'docbook-xsl' 'kmod' 'inetutils' 'bc')
    options=('!strip')
    source=("http://www.kernel.org/pub/linux/kernel/v3.x/${_srcname}.tar.xz"
    "[url]http://www.kernel.org/pub/linux/kernel/v3.x/patch-${pkgver}.xz[/url]"
    # the main kernel config files
    'config' 'config.x86_64'
    # standard config files for mkinitcpio ramdisk
    'linux.preset'
    'change-default-console-loglevel.patch'
    'criu-no-expert.patch')
    md5sums=('cc6ee608854e0da4b64f6c1ff8b6398c'
    '5a8cb5a659baeeb6df3fe22de8d32df6'
    '798bca5d2f0a1505c9b86a5227a2b339'
    '8fa6cbb28dda5a4b38730c7f728e1845'
    'eb14dcfd80c00852ef81ded6e826826a'
    '98beb36f9b8cf16e58de2483ea9985e3'
    'd50c1ac47394e9aec637002ef3392bd1')
    _kernelname=${pkgbase#linux}
    # module.symbols md5sums
    # x86_64
    # 2fd43e3edc671c61e043a5c0b3b2a1f0 /lib/modules/3.12.0-1-ARCH/modules.symbols
    # i686
    # e98940249665dbfa380cfdbbacf6c6b8 /lib/modules/3.12.0-1-ARCH/modules.symbols
    prepare() {
    cd "${srcdir}/${_srcname}"
    # add upstream patch
    patch -p1 -i "${srcdir}/patch-${pkgver}"
    # add latest fixes from stable queue, if needed
    # [url]http://git.kernel.org/?p=linux/kernel/git/stable/stable-queue.git[/url]
    # set DEFAULT_CONSOLE_LOGLEVEL to 4 (same value as the 'quiet' kernel param)
    # remove this when a Kconfig knob is made available by upstream
    # (relevant patch sent upstream: [url]https://lkml.org/lkml/2011/7/26/227)[/url]
    patch -Np1 -i "${srcdir}/change-default-console-loglevel.patch"
    # allow criu without expert option set
    # patch from fedora
    patch -Np1 -i "${srcdir}/criu-no-expert.patch"
    if [ "${CARCH}" = "x86_64" ]; then
    cat "${srcdir}/config.x86_64" > ./.config
    else
    cat "${srcdir}/config" > ./.config
    fi
    if [ "${_kernelname}" != "" ]; then
    sed -i "s|CONFIG_LOCALVERSION=.*|CONFIG_LOCALVERSION=\"${_kernelname}\"|g" ./.config
    sed -i "s|CONFIG_LOCALVERSION_AUTO=.*|CONFIG_LOCALVERSION_AUTO=n|" ./.config
    fi
    # set extraversion to pkgrel
    sed -ri "s|^(EXTRAVERSION =).*|\1 -${pkgrel}|" Makefile
    # don't run depmod on 'make install'. We'll do this ourselves in packaging
    sed -i '2iexit 0' scripts/depmod.sh
    build() {
    cd "${srcdir}/${_srcname}"
    # get kernel version
    make prepare
    # load configuration
    # Configure the kernel. Replace the line below with one of your choice.
    make menuconfig # CLI menu for configuration
    #make nconfig # new CLI menu for configuration
    #make xconfig # X-based configuration
    #make oldconfig # using old config from previous kernel version
    # ... or manually edit .config
    # rewrite configuration
    yes "" | make config >/dev/null
    # save configuration for later reuse
    if [ "${CARCH}" = "x86_64" ]; then
    cat .config > "${startdir}/config.x86_64.last"
    else
    cat .config > "${startdir}/config.last"
    fi
    # stop here
    # this is useful to configure the kernel
    #msg "Stopping build"; return 1
    # build!
    make ${MAKEFLAGS} LOCALVERSION= bzImage modules
    _package() {
    pkgdesc="The ${pkgbase/linux/Linux} kernel and modules"
    [ "${pkgbase}" = "linux" ] && groups=('base')
    depends=('coreutils' 'linux-firmware' 'kmod' 'mkinitcpio>=0.7')
    optdepends=('crda: to set the correct wireless channels of your country')
    provides=("kernel26${_kernelname}=${pkgver}")
    conflicts=("kernel26${_kernelname}")
    replaces=("kernel26${_kernelname}")
    backup=("etc/mkinitcpio.d/${pkgbase}.preset")
    install=linux.install
    cd "${srcdir}/${_srcname}"
    KARCH=x86
    # get kernel version
    _kernver="$(make LOCALVERSION= kernelrelease)"
    _basekernel=${_kernver%%-*}
    _basekernel=${_basekernel%.*}
    mkdir -p "${pkgdir}"/{lib/modules,lib/firmware,boot}
    make LOCALVERSION= INSTALL_MOD_PATH="${pkgdir}" modules_install
    cp arch/$KARCH/boot/bzImage "${pkgdir}/boot/vmlinuz-${pkgbase}"
    # add vmlinux
    install -D -m644 vmlinux "${pkgdir}/usr/src/linux-${_kernver}/vmlinux"
    # set correct depmod command for install
    cp -f "${startdir}/${install}" "${startdir}/${install}.pkg"
    true && install=${install}.pkg
    sed \
    -e "s/KERNEL_NAME=.*/KERNEL_NAME=${_kernelname}/" \
    -e "s/KERNEL_VERSION=.*/KERNEL_VERSION=${_kernver}/" \
    -i "${startdir}/${install}"
    # install mkinitcpio preset file for kernel
    install -D -m644 "${srcdir}/linux.preset" "${pkgdir}/etc/mkinitcpio.d/${pkgbase}.preset"
    sed \
    -e "1s|'linux.*'|'${pkgbase}'|" \
    -e "s|ALL_kver=.*|ALL_kver=\"/boot/vmlinuz-${pkgbase}\"|" \
    -e "s|default_image=.*|default_image=\"/boot/initramfs-${pkgbase}.img\"|" \
    -e "s|fallback_image=.*|fallback_image=\"/boot/initramfs-${pkgbase}-fallback.img\"|" \
    -i "${pkgdir}/etc/mkinitcpio.d/${pkgbase}.preset"
    # remove build and source links
    rm -f "${pkgdir}"/lib/modules/${_kernver}/{source,build}
    # remove the firmware
    rm -rf "${pkgdir}/lib/firmware"
    # gzip -9 all modules to save 100MB of space
    find "${pkgdir}" -name '*.ko' -exec gzip -9 {} \;
    # make room for external modules
    ln -s "../extramodules-${_basekernel}${_kernelname:--ARCH}" "${pkgdir}/lib/modules/${_kernver}/extramodules"
    # add real version for building modules and running depmod from post_install/upgrade
    mkdir -p "${pkgdir}/lib/modules/extramodules-${_basekernel}${_kernelname:--ARCH}"
    echo "${_kernver}" > "${pkgdir}/lib/modules/extramodules-${_basekernel}${_kernelname:--ARCH}/version"
    # Now we call depmod...
    depmod -b "$pkgdir" -F System.map "$_kernver"
    # move module tree /lib -> /usr/lib
    mv "$pkgdir/lib" "$pkgdir/usr"
    _package-headers() {
    pkgdesc="Header files and scripts for building modules for ${pkgbase/linux/Linux} kernel"
    provides=("kernel26${_kernelname}-headers=${pkgver}")
    conflicts=("kernel26${_kernelname}-headers")
    replaces=("kernel26${_kernelname}-headers")
    install -dm755 "${pkgdir}/usr/lib/modules/${_kernver}"
    cd "${pkgdir}/usr/lib/modules/${_kernver}"
    ln -sf ../../../src/linux-${_kernver} build
    cd "${srcdir}/${_srcname}"
    install -D -m644 Makefile \
    "${pkgdir}/usr/src/linux-${_kernver}/Makefile"
    install -D -m644 kernel/Makefile \
    "${pkgdir}/usr/src/linux-${_kernver}/kernel/Makefile"
    install -D -m644 .config \
    "${pkgdir}/usr/src/linux-${_kernver}/.config"
    mkdir -p "${pkgdir}/usr/src/linux-${_kernver}/include"
    for i in acpi asm-generic config crypto drm generated keys linux math-emu \
    media net pcmcia scsi sound trace uapi video xen; do
    cp -a include/${i} "${pkgdir}/usr/src/linux-${_kernver}/include/"
    done
    # copy arch includes for external modules
    mkdir -p "${pkgdir}/usr/src/linux-${_kernver}/arch/x86"
    cp -a arch/x86/include "${pkgdir}/usr/src/linux-${_kernver}/arch/x86/"
    # copy files necessary for later builds, like nvidia and vmware
    cp Module.symvers "${pkgdir}/usr/src/linux-${_kernver}"
    cp -a scripts "${pkgdir}/usr/src/linux-${_kernver}"
    # fix permissions on scripts dir
    chmod og-w -R "${pkgdir}/usr/src/linux-${_kernver}/scripts"
    mkdir -p "${pkgdir}/usr/src/linux-${_kernver}/.tmp_versions"
    mkdir -p "${pkgdir}/usr/src/linux-${_kernver}/arch/${KARCH}/kernel"
    cp arch/${KARCH}/Makefile "${pkgdir}/usr/src/linux-${_kernver}/arch/${KARCH}/"
    if [ "${CARCH}" = "i686" ]; then
    cp arch/${KARCH}/Makefile_32.cpu "${pkgdir}/usr/src/linux-${_kernver}/arch/${KARCH}/"
    fi
    cp arch/${KARCH}/kernel/asm-offsets.s "${pkgdir}/usr/src/linux-${_kernver}/arch/${KARCH}/kernel/"
    # add headers for lirc package
    # pci
    for i in bt8xx cx88 saa7134; do
    mkdir -p "${pkgdir}/usr/src/linux-${_kernver}/drivers/media/pci/${i}"
    cp -a drivers/media/pci/${i}/*.h "${pkgdir}/usr/src/linux-${_kernver}/drivers/media/pci/${i}"
    done
    # usb
    for i in cpia2 em28xx pwc sn9c102; do
    mkdir -p "${pkgdir}/usr/src/linux-${_kernver}/drivers/media/usb/${i}"
    cp -a drivers/media/usb/${i}/*.h "${pkgdir}/usr/src/linux-${_kernver}/drivers/media/usb/${i}"
    done
    # i2c
    mkdir -p "${pkgdir}/usr/src/linux-${_kernver}/drivers/media/i2c"
    cp drivers/media/i2c/*.h "${pkgdir}/usr/src/linux-${_kernver}/drivers/media/i2c/"
    for i in cx25840; do
    mkdir -p "${pkgdir}/usr/src/linux-${_kernver}/drivers/media/i2c/${i}"
    cp -a drivers/media/i2c/${i}/*.h "${pkgdir}/usr/src/linux-${_kernver}/drivers/media/i2c/${i}"
    done
    # add docbook makefile
    install -D -m644 Documentation/DocBook/Makefile \
    "${pkgdir}/usr/src/linux-${_kernver}/Documentation/DocBook/Makefile"
    # add dm headers
    mkdir -p "${pkgdir}/usr/src/linux-${_kernver}/drivers/md"
    cp drivers/md/*.h "${pkgdir}/usr/src/linux-${_kernver}/drivers/md"
    # add inotify.h
    mkdir -p "${pkgdir}/usr/src/linux-${_kernver}/include/linux"
    cp include/linux/inotify.h "${pkgdir}/usr/src/linux-${_kernver}/include/linux/"
    # add wireless headers
    mkdir -p "${pkgdir}/usr/src/linux-${_kernver}/net/mac80211/"
    cp net/mac80211/*.h "${pkgdir}/usr/src/linux-${_kernver}/net/mac80211/"
    # add dvb headers for external modules
    # in reference to:
    # [url]http://bugs.archlinux.org/task/9912[/url]
    mkdir -p "${pkgdir}/usr/src/linux-${_kernver}/drivers/media/dvb-core"
    cp drivers/media/dvb-core/*.h "${pkgdir}/usr/src/linux-${_kernver}/drivers/media/dvb-core/"
    # and...
    # [url]http://bugs.archlinux.org/task/11194[/url]
    mkdir -p "${pkgdir}/usr/src/linux-${_kernver}/include/config/dvb/"
    cp include/config/dvb/*.h "${pkgdir}/usr/src/linux-${_kernver}/include/config/dvb/"
    # add dvb headers for [url]http://mcentral.de/hg/~mrec/em28xx-new[/url]
    # in reference to:
    # [url]http://bugs.archlinux.org/task/13146[/url]
    mkdir -p "${pkgdir}/usr/src/linux-${_kernver}/drivers/media/dvb-frontends/"
    cp drivers/media/dvb-frontends/lgdt330x.h "${pkgdir}/usr/src/linux-${_kernver}/drivers/media/dvb-frontends/"
    cp drivers/media/i2c/msp3400-driver.h "${pkgdir}/usr/src/linux-${_kernver}/drivers/media/i2c/"
    # add dvb headers
    # in reference to:
    # [url]http://bugs.archlinux.org/task/20402[/url]
    mkdir -p "${pkgdir}/usr/src/linux-${_kernver}/drivers/media/usb/dvb-usb"
    cp drivers/media/usb/dvb-usb/*.h "${pkgdir}/usr/src/linux-${_kernver}/drivers/media/usb/dvb-usb/"
    mkdir -p "${pkgdir}/usr/src/linux-${_kernver}/drivers/media/dvb-frontends"
    cp drivers/media/dvb-frontends/*.h "${pkgdir}/usr/src/linux-${_kernver}/drivers/media/dvb-frontends/"
    mkdir -p "${pkgdir}/usr/src/linux-${_kernver}/drivers/media/tuners"
    cp drivers/media/tuners/*.h "${pkgdir}/usr/src/linux-${_kernver}/drivers/media/tuners/"
    # add xfs and shmem for aufs building
    mkdir -p "${pkgdir}/usr/src/linux-${_kernver}/fs/xfs"
    mkdir -p "${pkgdir}/usr/src/linux-${_kernver}/mm"
    cp fs/xfs/xfs_sb.h "${pkgdir}/usr/src/linux-${_kernver}/fs/xfs/xfs_sb.h"
    # copy in Kconfig files
    for i in `find . -name "Kconfig*"`; do
    mkdir -p "${pkgdir}"/usr/src/linux-${_kernver}/`echo ${i} | sed 's|/Kconfig.*||'`
    cp ${i} "${pkgdir}/usr/src/linux-${_kernver}/${i}"
    done
    chown -R root.root "${pkgdir}/usr/src/linux-${_kernver}"
    find "${pkgdir}/usr/src/linux-${_kernver}" -type d -exec chmod 755 {} \;
    # strip scripts directory
    find "${pkgdir}/usr/src/linux-${_kernver}/scripts" -type f -perm -u+w 2>/dev/null | while read binary ; do
    case "$(file -bi "${binary}")" in
    *application/x-sharedlib*) # Libraries (.so)
    /usr/bin/strip ${STRIP_SHARED} "${binary}";;
    *application/x-archive*) # Libraries (.a)
    /usr/bin/strip ${STRIP_STATIC} "${binary}";;
    *application/x-executable*) # Binaries
    /usr/bin/strip ${STRIP_BINARIES} "${binary}";;
    esac
    done
    # remove unneeded architectures
    rm -rf "${pkgdir}"/usr/src/linux-${_kernver}/arch/{alpha,arc,arm,arm26,arm64,avr32,blackfin,c6x,cris,frv,h8300,hexagon,ia64,m32r,m68k,m68knommu,metag,mips,microblaze,mn10300,openrisc,parisc,powerpc,ppc,s390,score,sh,sh64,sparc,sparc64,tile,unicore32,um,v850,xtensa}
    _package-docs() {
    pkgdesc="Kernel hackers manual - HTML documentation that comes with the ${pkgbase/linux/Linux} kernel"
    provides=("kernel26${_kernelname}-docs=${pkgver}")
    conflicts=("kernel26${_kernelname}-docs")
    replaces=("kernel26${_kernelname}-docs")
    cd "${srcdir}/${_srcname}"
    mkdir -p "${pkgdir}/usr/src/linux-${_kernver}"
    cp -al Documentation "${pkgdir}/usr/src/linux-${_kernver}"
    find "${pkgdir}" -type f -exec chmod 444 {} \;
    find "${pkgdir}" -type d -exec chmod 755 {} \;
    # remove a file already in linux package
    rm -f "${pkgdir}/usr/src/linux-${_kernver}/Documentation/DocBook/Makefile"
    pkgname=("${pkgbase}" "${pkgbase}-headers" "${pkgbase}-docs")
    for _p in ${pkgname[@]}; do
    eval "package_${_p}() {
    _package${_p#${pkgbase}}
    done
    # vim:set ts=8 sts=2 sw=2 et:

  • File conflicts when upgrading pacman

    My Arch system has not been upgraded in a few months as it has been out of commission.  I turned it on today and decided I should do a full system upgrade.  When I do so, pacman prompts me to upgrade pacman itself first, so I agree, and the upgrade errors out with the following message:
    checking for file conflicts...
    error: the following file conflicts were found:
         pacman: /etc/pacman.d/testing: exists in filesystem
    What do I do?

    Move this file out of pacman way

  • [Solved] pacman 4.1 has issues with resolving file-conflicts

    Today i wanted to upgrade protobuf-python which will be replaced by python2-protobuf, but pacman ignores the fact, that protobuf-python will be removed:
    # pacman -Syu
    :: Synchronizing package databases...
    core is up to date
    extra is up to date
    community is up to date
    community-testing is up to date
    testing is up to date
    :: Starting full system upgrade...
    warning: pacman: local (4.1.0-1) is newer than core (4.0.3-7)
    :: Replace protobuf-python with community/python2-protobuf? [Y/n]
    resolving dependencies...
    looking for inter-conflicts...
    Packages (20): binutils-2.23.2-1 gcc-4.8.0-1 gcc-libs-4.8.0-1 glibc-2.17-4 libltdl-2.4.2-8 libpulse-3.0-3 libtool-2.4.2-8 libxkbcommon-0.3.0-1 linux-api-headers-3.8.4-1 protobuf-python-2.5.0-1
    protobuf-python-2.5.0-1 [removal] pulseaudio-3.0-3 python2-dirspec-4.2.0-1 python2-oauthlib-0.4.0-1 python2-protobuf-2.5.0-2 python2-ubuntuone-storageprotocol-4.2.0-1
    ubuntu-sso-client-4.2.0-1 ubuntuone-client-4.2.0-1 ubuntuone-client-gnome-4.2.0-1 ubuntuone-control-panel-4.2.0-1
    Total Installed Size: 178.39 MiB
    Net Upgrade Size: 6.89 MiB
    :: Proceed with installation? [Y/n]
    (19/19) checking keys in keyring [-----------------------------------------------------------------------------] 100%
    (19/19) checking package integrity [-----------------------------------------------------------------------------] 100%
    (19/19) loading package files [-----------------------------------------------------------------------------] 100%
    (19/19) checking for file conflicts [-----------------------------------------------------------------------------] 100%
    error: failed to commit transaction (conflicting files)
    /usr/lib/python2.7/site-packages/google/protobuf/__init__.py exists in both 'python2-protobuf' and 'protobuf-python'
    /usr/lib/python2.7/site-packages/google/protobuf/__init__.pyc exists in both 'python2-protobuf' and 'protobuf-python'
    /usr/lib/python2.7/site-packages/google/protobuf/compiler/__init__.py exists in both 'python2-protobuf' and 'protobuf-python'
    /usr/lib/python2.7/site-packages/google/protobuf/compiler/__init__.pyc exists in both 'python2-protobuf' and 'protobuf-python'
    /usr/lib/python2.7/site-packages/google/protobuf/compiler/plugin_pb2.py exists in both 'python2-protobuf' and 'protobuf-python'
    /usr/lib/python2.7/site-packages/google/protobuf/compiler/plugin_pb2.pyc exists in both 'python2-protobuf' and 'protobuf-python'
    /usr/lib/python2.7/site-packages/google/protobuf/descriptor.py exists in both 'python2-protobuf' and 'protobuf-python'
    /usr/lib/python2.7/site-packages/google/protobuf/descriptor.pyc exists in both 'python2-protobuf' and 'protobuf-python'
    /usr/lib/python2.7/site-packages/google/protobuf/descriptor_database.py exists in both 'python2-protobuf' and 'protobuf-python'
    /usr/lib/python2.7/site-packages/google/protobuf/descriptor_database.pyc exists in both 'python2-protobuf' and 'protobuf-python'
    /usr/lib/python2.7/site-packages/google/protobuf/descriptor_pb2.py exists in both 'python2-protobuf' and 'protobuf-python'
    /usr/lib/python2.7/site-packages/google/protobuf/descriptor_pb2.pyc exists in both 'python2-protobuf' and 'protobuf-python'
    /usr/lib/python2.7/site-packages/google/protobuf/descriptor_pool.py exists in both 'python2-protobuf' and 'protobuf-python'
    /usr/lib/python2.7/site-packages/google/protobuf/descriptor_pool.pyc exists in both 'python2-protobuf' and 'protobuf-python'
    /usr/lib/python2.7/site-packages/google/protobuf/internal/__init__.py exists in both 'python2-protobuf' and 'protobuf-python'
    /usr/lib/python2.7/site-packages/google/protobuf/internal/__init__.pyc exists in both 'python2-protobuf' and 'protobuf-python'
    /usr/lib/python2.7/site-packages/google/protobuf/internal/api_implementation.py exists in both 'python2-protobuf' and 'protobuf-python'
    /usr/lib/python2.7/site-packages/google/protobuf/internal/api_implementation.pyc exists in both 'python2-protobuf' and 'protobuf-python'
    /usr/lib/python2.7/site-packages/google/protobuf/internal/containers.py exists in both 'python2-protobuf' and 'protobuf-python'
    /usr/lib/python2.7/site-packages/google/protobuf/internal/containers.pyc exists in both 'python2-protobuf' and 'protobuf-python'
    /usr/lib/python2.7/site-packages/google/protobuf/internal/cpp_message.py exists in both 'python2-protobuf' and 'protobuf-python'
    /usr/lib/python2.7/site-packages/google/protobuf/internal/cpp_message.pyc exists in both 'python2-protobuf' and 'protobuf-python'
    /usr/lib/python2.7/site-packages/google/protobuf/internal/decoder.py exists in both 'python2-protobuf' and 'protobuf-python'
    /usr/lib/python2.7/site-packages/google/protobuf/internal/decoder.pyc exists in both 'python2-protobuf' and 'protobuf-python'
    /usr/lib/python2.7/site-packages/google/protobuf/internal/encoder.py exists in both 'python2-protobuf' and 'protobuf-python'
    /usr/lib/python2.7/site-packages/google/protobuf/internal/encoder.pyc exists in both 'python2-protobuf' and 'protobuf-python'
    /usr/lib/python2.7/site-packages/google/protobuf/internal/enum_type_wrapper.py exists in both 'python2-protobuf' and 'protobuf-python'
    /usr/lib/python2.7/site-packages/google/protobuf/internal/enum_type_wrapper.pyc exists in both 'python2-protobuf' and 'protobuf-python'
    /usr/lib/python2.7/site-packages/google/protobuf/internal/message_listener.py exists in both 'python2-protobuf' and 'protobuf-python'
    /usr/lib/python2.7/site-packages/google/protobuf/internal/message_listener.pyc exists in both 'python2-protobuf' and 'protobuf-python'
    /usr/lib/python2.7/site-packages/google/protobuf/internal/python_message.py exists in both 'python2-protobuf' and 'protobuf-python'
    /usr/lib/python2.7/site-packages/google/protobuf/internal/python_message.pyc exists in both 'python2-protobuf' and 'protobuf-python'
    /usr/lib/python2.7/site-packages/google/protobuf/internal/type_checkers.py exists in both 'python2-protobuf' and 'protobuf-python'
    /usr/lib/python2.7/site-packages/google/protobuf/internal/type_checkers.pyc exists in both 'python2-protobuf' and 'protobuf-python'
    /usr/lib/python2.7/site-packages/google/protobuf/internal/wire_format.py exists in both 'python2-protobuf' and 'protobuf-python'
    /usr/lib/python2.7/site-packages/google/protobuf/internal/wire_format.pyc exists in both 'python2-protobuf' and 'protobuf-python'
    /usr/lib/python2.7/site-packages/google/protobuf/message.py exists in both 'python2-protobuf' and 'protobuf-python'
    /usr/lib/python2.7/site-packages/google/protobuf/message.pyc exists in both 'python2-protobuf' and 'protobuf-python'
    /usr/lib/python2.7/site-packages/google/protobuf/message_factory.py exists in both 'python2-protobuf' and 'protobuf-python'
    /usr/lib/python2.7/site-packages/google/protobuf/message_factory.pyc exists in both 'python2-protobuf' and 'protobuf-python'
    /usr/lib/python2.7/site-packages/google/protobuf/reflection.py exists in both 'python2-protobuf' and 'protobuf-python'
    /usr/lib/python2.7/site-packages/google/protobuf/reflection.pyc exists in both 'python2-protobuf' and 'protobuf-python'
    /usr/lib/python2.7/site-packages/google/protobuf/service.py exists in both 'python2-protobuf' and 'protobuf-python'
    /usr/lib/python2.7/site-packages/google/protobuf/service.pyc exists in both 'python2-protobuf' and 'protobuf-python'
    /usr/lib/python2.7/site-packages/google/protobuf/service_reflection.py exists in both 'python2-protobuf' and 'protobuf-python'
    /usr/lib/python2.7/site-packages/google/protobuf/service_reflection.pyc exists in both 'python2-protobuf' and 'protobuf-python'
    /usr/lib/python2.7/site-packages/google/protobuf/text_format.py exists in both 'python2-protobuf' and 'protobuf-python'
    /usr/lib/python2.7/site-packages/google/protobuf/text_format.pyc exists in both 'python2-protobuf' and 'protobuf-python'
    /usr/lib/python2.7/site-packages/protobuf-2.5.0-py2.7-nspkg.pth exists in both 'python2-protobuf' and 'protobuf-python'
    /usr/lib/python2.7/site-packages/protobuf-2.5.0-py2.7.egg-info/PKG-INFO exists in both 'python2-protobuf' and 'protobuf-python'
    /usr/lib/python2.7/site-packages/protobuf-2.5.0-py2.7.egg-info/SOURCES.txt exists in both 'python2-protobuf' and 'protobuf-python'
    /usr/lib/python2.7/site-packages/protobuf-2.5.0-py2.7.egg-info/dependency_links.txt exists in both 'python2-protobuf' and 'protobuf-python'
    /usr/lib/python2.7/site-packages/protobuf-2.5.0-py2.7.egg-info/namespace_packages.txt exists in both 'python2-protobuf' and 'protobuf-python'
    /usr/lib/python2.7/site-packages/protobuf-2.5.0-py2.7.egg-info/requires.txt exists in both 'python2-protobuf' and 'protobuf-python'
    /usr/lib/python2.7/site-packages/protobuf-2.5.0-py2.7.egg-info/top_level.txt exists in both 'python2-protobuf' and 'protobuf-python'
    Errors occurred, no packages were upgraded.
    Anyone with the same problem here or is it just me?
    Btw: If it's a bug: Please fill a bug report, i don't want to register just for 1 bug...
    Last edited by D4ve (2013-04-02 11:22:49)

    drcouzelis wrote:
    If you want to receive information about the progress made on the bug and contribute to getting it fixed then, yes, you need to register.
    Otherwise, just use bugmenot.com.
    Too late, i already registered.
    drcouzelis wrote:Lastly, don't be cheeky.
    Huh? In the whole discussion i wasn't once cheeky
    drcouzelis wrote:
    Otherwise, Allan will install a special surprise just for you in pacman.
    if (strcmp(username, "D4ve") == 0) {
    set_dependency_for_all_packages("akonadi");
    That would be awesome. Three lines of code just for me
    (Just for information: I hate gnome-shell for displaying my name in the top right corner so i switched my username to "<*)))><")

  • [solved] pacman 4 hangs after "checking for file conflicts"

    Like others, I removed yaourt and package-query because they conflicted with pacman4... not worried about that, I'll reinstall them later.
    I put the new pacman.conf in place (my old one wasn't really customized).  I left SigLevel = Never.
    Now, I can run pacman -Sy fine, but if I try to install anything, I it just hangs:
    sudo pacman -S audacity
    resolving dependencies...
    looking for inter-conflicts...
    Targets (1): audacity-1.3.14-2
    Total Download Size: 3.21 MiB
    Total Installed Size: 15.29 MiB
    Net Upgrade Size: -0.00 MiB
    Proceed with installation? [Y/n]
    :: Retrieving packages from extra...
    audacity-1.3.14-2-x86_64 3.2 MiB 1397K/s 00:02 [###########################] 100%
    (1/1) checking package integrity [###########################] 100%
    (1/1) loading package files [###########################] 100%
    (1/1) checking for file conflicts [###########################] 100%
    I've waited up to 20 or 30 minutes and nothing happens.  It's not just audacity, any package I try to install does this.
    Suggestions?
    Last edited by TheAmigo (2012-01-17 18:55:38)

    With --debug switch it prints:
    checking for file conflicts...
    debug: looking for file conflicts
    debug: searching for file conflicts: coreutils
    debug: searching for filesystem conflicts: coreutils
    debug: searching for file conflicts: ethtool
    debug: searching for filesystem conflicts: ethtool
    debug: searching for file conflicts: fail2ban
    debug: searching for filesystem conflicts: fail2ban
    debug: searching for file conflicts: gpgme
    debug: searching for filesystem conflicts: gpgme
    debug: searching for file conflicts: vim-runtime
    debug: searching for filesystem conflicts: vim-runtime
    debug: searching for file conflicts: gvim
    debug: searching for filesystem conflicts: gvim
    debug: searching for file conflicts: hdparm
    debug: searching for filesystem conflicts: hdparm
    debug: searching for file conflicts: inetutils
    debug: searching for filesystem conflicts: inetutils
    debug: searching for file conflicts: lib32-glibc
    debug: searching for filesystem conflicts: lib32-glibc
    debug: searching for file conflicts: lib32-gcc-libs
    debug: searching for filesystem conflicts: lib32-gcc-libs
    debug: searching for file conflicts: lib32-glib2
    debug: searching for filesystem conflicts: lib32-glib2
    debug: searching for file conflicts: lib32-gdk-pixbuf2
    debug: searching for filesystem conflicts: lib32-gdk-pixbuf2
    debug: searching for file conflicts: lib32-pango
    debug: searching for filesystem conflicts: lib32-pango
    debug: searching for file conflicts: lib32-gtk2
    debug: searching for filesystem conflicts: lib32-gtk2
    debug: searching for file conflicts: linux
    debug: searching for filesystem conflicts: linux
    debug: searching for file conflicts: nspluginwrapper
    debug: searching for filesystem conflicts: nspluginwrapper
    debug: searching for file conflicts: nvidia
    debug: searching for filesystem conflicts: nvidia
    debug: searching for file conflicts: qtwebkit
    debug: searching for filesystem conflicts: qtwebkit
    debug: searching for file conflicts: rpcbind
    debug: searching for filesystem conflicts: rpcbind
    debug: searching for file conflicts: unrar
    debug: searching for filesystem conflicts: unrar
    debug: searching for file conflicts: xscreensaver
    debug: searching for filesystem conflicts: xscreensaver
    checking available disk space...
    debug: checking available disk space
    Without the --debug switch
    Proceed with installation? [Y/n]
    (21/21) checking package integrity [############################] 100%
    (21/21) loading package files [############################] 100%
    (21/21) checking for file conflicts [############################] 100%
    Note that the 'checking available disk space...' is not printed without the --debug option although it doesn't look like being 'debug output'.
    I don't see much disk activity after that and the pacman process uses no CPU time and the process status goes to D in `ps` (man ps says: D: Uninterruptible sleep (usually IO)).
    Last edited by drrossum (2012-01-18 21:58:28)

  • [solved] "pacman -Syu" hangs after "checking for file conflicts"

    This is my third attempt.  I let it run yesterday for 20 hours on the theory that maybe it was actually doing something.  It always completes "checking for file conflicts" but never goes any further.
    Does anyone have any suggestions how to get it to continue?
    [ken@xxxxx ~]$ sudo pacman -Syu
    :: Synchronizing package databases...
    core is up to date
    extra 1421.6 KiB 2.03M/s 00:01 [######################] 100%
    community 1775.0 KiB 3.00M/s 00:01 [######################] 100%
    :: Starting full system upgrade...
    resolving dependencies...
    looking for inter-conflicts...
    Targets (27): binutils-2.23-1 coreutils-8.20-1 cryptsetup-1.5.1-1
    device-mapper-2.02.98-1 emacs-24.2-2 filesystem-2012.10-2
    firefox-16.0.2-1 gcc-4.7.2-2 gcc-libs-4.7.2-2 glibc-2.16.0-5
    hwids-20121022-1 imagemagick-6.8.0.3-1 libidn-1.25-1
    libwbclient-3.6.9-1 linux-api-headers-3.6.3-1 lvm2-2.02.98-1
    mkinitcpio-0.11.0-1 nspr-4.9.3-1 nss-3.14-1
    nss-myhostname-0.3-3 smbclient-3.6.9-1 systemd-195-2
    thunderbird-16.0.2-1 tzdata-2012h-1 util-linux-2.22.1-2
    wget-1.14-2 xulrunner-16.0.2-1
    Total Download Size: 47.80 MiB
    Total Installed Size: 550.57 MiB
    Net Upgrade Size: 6.43 MiB
    Proceed with installation? [Y/n] y
    :: Retrieving packages from extra...
    libwbclient-3.6.9-1... 19.5 KiB 407K/s 00:00 [######################] 100%
    smbclient-3.6.9-1-x... 7.9 MiB 2.71M/s 00:03 [######################] 100%
    thunderbird-16.0.2-... 17.1 MiB 2.92M/s 00:06 [######################] 100%
    xulrunner-16.0.2-1-... 22.9 MiB 2.92M/s 00:08 [######################] 100%
    (27/27) checking package integrity [######################] 100%
    (27/27) loading package files [######################] 100%
    (27/27) checking for file conflicts [######################] 100%
    Last edited by KenJackson (2012-10-30 14:25:05)

    Allan wrote:Can you run with --debug?
    OK.  That garnered an additional piece of info.  Here's the end of the long output:
    debug: searching for filesystem conflicts: wget
    debug: searching for file conflicts: xulrunner
    debug: searching for filesystem conflicts: xulrunner
    checking available disk space...
    debug: checking available disk space
    Disk space?  I think I have enough disk space.
    [ken@xxxxx ~]$ df
    Filesystem Size Used Avail Use% Mounted on
    rootfs 47G 11G 34G 25% /
    dev 2.0G 0 2.0G 0% /dev
    run 2.0G 292K 2.0G 1% /run
    /dev/sda3 47G 11G 34G 25% /
    shm 2.0G 140K 2.0G 1% /dev/shm
    /dev/sda1 99M 21M 74M 22% /boot
    /dev/sda4 72G 1.9G 66G 3% /home
    Is disk space really the problem?  Or is that just where it hung?

  • Xchat upgrade missing packages [solved]

    pacman -Sy xchat :
    seemed to upgrade ok.
    running xchat (from console to get feedback) gives:
    xchat: error while loading shared libraries: libssl.so.0.9.8: cannot open shared object file: No such file or directory
    xchat fails to run
    ==
    solved by checking dependencies on arch package page
    http://archlinux.org/packages.php?id=4265
    and updating, those via pacman, too.
    (gtk2, openssl, tcl, gtkspell)
    shouldnt just running pacman -Sy xchat have sorted this anyways ?
    or am i having one of those "duuuuh " moments
    tia
    kern

    Thx Mr Pingu ...... yeh i went for it and updated overnight{:@
    [root@localhost ~]# pacman -Syu
    :: Synchronizing package databases...
    :: current is up to date
    :: extra is up to date
    :: Replace alsa-driver with kernel26 from "current"? [Y/n]
    :: Replace devfsd with udev from "current"? [Y/n]
    :: Replace rar with unrar from "current"? [Y/n]
    :: nvidia-utils conflicts with nvidia. Remove nvidia? [Y/n]
    Remove:  nvidia alsa-driver devfsd rar
    Targets: klibc-1.4-1 <snip>  xpdf-3.01_pl2-6
    Proceed with upgrade? [Y/n] y
    :: Retrieving packages from current...
    klibc-1.4-1 <snip>
    checking package integrity... done.
    ==> Deinstallation starts now!
    ERROR: Module nvidia is in use
    ==> Don't forget to update your /etc/X11/XF86Config or /etc/X11/xorg.conf!
    removing nvidia... done.
    removing alsa-driver... done.
    removing devfsd...
    warning: /etc/devfsd.conf saved as /etc/devfsd.conf.pacsave
    done.
    removing rar... done.
    loading package data... done.
    checking for file conflicts...
    error: the following file conflicts were found:
      gimp-print: /usr/share/foomatic/db/source/driver/gimp-print.xml: exists in filesystem
      gimp-print: /usr/share/foomatic/kitload.log: exists in filesystem
      nessus-plugins: /usr/lib/nessus/plugins/admbook_cmd_exec.nasl: exists in filesystem
      nessus-plugins: /usr/lib/nessus/plugins/burning_board_database_sql_injection.nasl: exists in filesystem
      nessus-plugins: /usr/lib/nessus/plugins/free_articles_directory_file_includes.nasl: exists in filesystem
      nessus-plugins: /usr/lib/nessus/plugins/gcards_dir_transversal.nasl: exists in filesystem
      nessus-plugins: /usr/lib/nessus/plugins/mercur_imap_buffer_overflow.nasl: exists in filesystem
      nvidia-utils: /usr/bin/nvidia-bug-report.sh: exists in filesystem
      nvidia-utils: /usr/bin/nvidia-settings: exists in filesystem
      nvidia-utils: /usr/lib/libGL.so.1: exists in filesystem
      nvidia-utils: /usr/lib/libGLcore.so.1: exists in filesystem
      nvidia-utils: /usr/lib/libnvidia-tls.so.1: exists in filesystem
    errors occurred, no packages were upgraded.
    ==========
    same shit different upgrade - is pacman dropping to bits?
    now daring to reboot & to quote an old explorer :
    i may be some time

  • After kernel upgrade "file not found"

    I upgraded to kernel version 3 and I rebooted but I didn't do anything in menu.lst, because I thought symlinks would work, so I rebooted but it didn't work. I tried to boot changing names in grub menu but I'm always getting same error "file not found" and I don't know what else to do. I can see the vmlinuz-linux but I can't see initramfs-linux file in /boot from a Live CD. Can you share your menu.lst to try them please.

    tbuitenh wrote:
    I ran into the same problem. I bookmarked this thread earlier, sorry if the problem has been solved in another one and I didn't notice it.
    After putting back the kernel and ramdisk from a backup (using different filenames) and downgrading the kernel (mkinitcpio doesn't work, that's why I had to take the ramdisk from a backup), I was able to get back into my system.
    I found a mkinitcpio.conf.pacnew, but no significant changes in there. Applied them anyway.
    So let's try that again...
    sudo pacman -Syu
    (3/5) installing linux [######################] 100%
    >>> Updating module dependencies. Please wait ...
    /tmp/alpm_kwQ6VA/.INSTALL: line 10: depmod: command not found
    >>> Generating initial ramdisk, using mkinitcpio. Please wait...
    /tmp/alpm_kwQ6VA/.INSTALL: line 12: mkinitcpio: command not found
    Optional dependencies for linux
    crda: to set the correct wireless channels of your country
    That doesn't look healthy. Perhaps a path problem?
    [tb@progress ~]$ su -
    Password:
    [root@progress ~]# pacman -S linux
    warning: linux-3.0.1-1 is up to date -- reinstalling
    resolving dependencies...
    looking for inter-conflicts...
    Targets (1): linux-3.0.1-1
    Total Download Size: 0.00 MB
    Total Installed Size: 54.55 MB
    Proceed with installation? [Y/n]
    (1/1) checking package integrity [######################] 100%
    (1/1) checking for file conflicts [######################] 100%
    (1/1) upgrading linux [######################] 100%
    >>> Updating module dependencies. Please wait ...
    >>> Generating initial ramdisk, using mkinitcpio. Please wait...
    ==> Building image from preset: 'default'
    -> -k /boot/vmlinuz-linux -c /etc/mkinitcpio.conf -g /boot/initramfs-linux.img
    ==> Starting build: 3.0-ARCH
    -> Parsing hook: [base]
    -> Parsing hook: [udev]
    -> Parsing hook: [autodetect]
    -> Parsing hook: [sata]
    -> Parsing hook: [resume]
    -> Parsing hook: [filesystems]
    -> Parsing hook: [consolefont]
    ==> Generating module dependencies
    ==> Creating xz initcpio image: /boot/initramfs-linux.img
    6472 blocks
    ==> Image generation successful
    ==> Building image from preset: 'fallback'
    -> -k /boot/vmlinuz-linux -c /etc/mkinitcpio.conf -g /boot/initramfs-linux-fallback.img -S autodetect
    ==> Starting build: 3.0-ARCH
    -> Parsing hook: [base]
    -> Parsing hook: [udev]
    -> Parsing hook: [sata]
    -> Parsing hook: [resume]
    -> Parsing hook: [filesystems]
    -> Parsing hook: [consolefont]
    ==> Generating module dependencies
    ==> Creating xz initcpio image: /boot/initramfs-linux-fallback.img
    13946 blocks
    ==> Image generation successful
    [root@progress ~]# ls -l /boot
    total 12484
    drwxr-xr-x 2 root root 4096 Aug 15 12:18 grub
    -rw-r--r-- 1 root root 5216044 Aug 15 12:41 initramfs-linux-fallback.img
    -rw-r--r-- 1 root root 1460104 Aug 15 12:41 initramfs-linux.img
    drwxr-xr-x 2 root root 4096 Jan 26 2011 memtest86+
    -rw-r--r-- 1 root root 1453292 Jul 11 19:22 offmylawn.img
    -rw-r--r-- 1 root root 2333056 Aug 6 16:22 vmlinuz-linux
    -rw-r--r-- 1 root root 2305152 Jul 9 15:00 vmlinuz-offmylawn
    That's better. I'll reboot now and see what happens.
    @tbuitenh: I encountered this same situation today when I tried to update linux-ck-corei7 from 3.0.4-1 to 3.0.4-2. Like you, running pacman after "su -" (instead of "su") permitted me to complete the update.
    I figure this has to do with default login path, right? What exactly is going on here, and how can I fix it? I don't normally run pacman this way.
    Last edited by dhave (2011-09-22 23:07:53)

  • File conflict, libgl-dr: /usr/lib/libGL.so.1

    I am trying to upgrade xorg but whenever I pacman -S xorg, I get the following error
    error: the following file conflicts were found:
    libgl-dri: /usr/lib/libGL.so.1: exists in filesystem
    I was wondering if anyone new how to fix this problem.
    Thanks

    schultz wrote:
    Yep... That was a problem fixer...
    Problably more to come...  :cry:
    Unfortunaly I was right...  new problems... Stupid Xorg7...

  • Pacman insists on upgrading file over and over again

    root@dexedrine [~] (38) % pacman -Syu
    :: Synchronizing package databases...
    current.db.tar.gz [####################################] 100% | 45K
    extra.db.tar.gz [####################################] 100% | 96K
    unstable.db.tar.gz [####################################] 100% | 1K
    :: kernel-2.4.23-3: ignoring package upgrade (2.4.24-1)
    :: kernel26-2.6.0-1: ignoring package upgrade (2.6.0-2)
    :: Above packages will be skipped. To manually upgrade use 'pacman -S <pkg>'
    Targets: file-4.07-1 gdb-6.0-1
    Proceed with upgrade? [Y/n] y
    :: Retrieving packages from current...
    gdb-6.0-1.pkg.tar.gz [####################################] 100% | 992K
    checking package integrity... done.
    loading package data... done.
    checking for file conflicts... done.
    upgrading file... done.
    upgrading gdb... done.
    root@dexedrine [~] (39) % pacman -Syu
    :: Synchronizing package databases...
    current.db.tar.gz [####################################] 100% | 45K
    extra.db.tar.gz [####################################] 100% | 96K
    unstable.db.tar.gz [####################################] 100% | 1K
    :: kernel-2.4.23-3: ignoring package upgrade (2.4.24-1)
    :: kernel26-2.6.0-1: ignoring package upgrade (2.6.0-2)
    :: Above packages will be skipped. To manually upgrade use 'pacman -S <pkg>'
    Targets: file-4.07-1
    Proceed with upgrade? [Y/n] y
    checking package integrity... done.
    loading package data... done.
    checking for file conflicts... done.
    upgrading file... done.
    this happens over and over and over again.  it wants to upgrade 'file'  i tried deleting the cache, that didn't seem to help.  i didn't see anything bad in the log file either.  any clues?

    with the help of judd i was able to fix this issue, it was an old file directory in the pacman directories.

  • [Info] redland-1.0.6-1 file conflicts

    Redland file conflicts with Raptor!
    [root@arch-01 jada]# pacman -S redland
    resolving dependencies... done.
    looking for inter-conflicts... done.
    Targets: redland-1.0.6-1
    Total Package Size: 0.78 MB
    Proceed with installation? [Y/n] y
    :: Retrieving packages from extra...
    error: failed retrieving file 'redland-1.0.6-1-i686.pkg.tar.gz' from ftp.archlinux.org : File unavailable (e.g., file not found, no access)
    error: failed retrieving file 'redland-1.0.6-1-i686.pkg.tar.gz' from ftp.nethat.com : Not logged in
    redland 795.5K 401.7K/s 00:00:02 [#####################] 100%
    checking package integrity... done.
    cleaning up... done.
    (1/1) checking for file conflicts [#####################] 100%
    error: could not prepare transaction
    error: failed to commit transaction (conflicting files)
    redland: /usr/bin/rapper exists in filesystem
    redland: /usr/bin/raptor-config exists in filesystem
    redland: /usr/include/raptor.h exists in filesystem
    redland: /usr/lib/libraptor.a exists in filesystem
    redland: /usr/lib/libraptor.so exists in filesystem
    redland: /usr/lib/libraptor.so.1 exists in filesystem
    redland: /usr/lib/libraptor.so.1.1.0 exists in filesystem
    redland: /usr/lib/pkgconfig/raptor.pc exists in filesystem
    redland: /usr/man/man1/rapper.1.gz exists in filesystem
    redland: /usr/man/man1/raptor-config.1.gz exists in filesystem
    redland: /usr/man/man3/libraptor.3.gz exists in filesystem
    errors occurred, no packages were upgraded.
    [root@arch-01 jada]#

    Please submit a bug report.

Maybe you are looking for