You are not logged in.

#1 2012-02-24 04:35:52

newpers
Member
Registered: 2006-08-16
Posts: 14

pacman -Syuf and curl error

I just downloaded the vagrantbox archlinux instance.  I was trying to pacman -Syu unzip, but was told I needed to update pacman and its dependencies.  Upon updating, I got a pacman: /usr/lib/libcurl.so.4: no version information available (required by /usr/lib/libalpm.so.7) error.  If I try to continue w/ the install, it won't grab the packages because curl no longer works.  Any ideas what's going on?  Same thing with a fresh vagrant install and running a full update.  Log of the full update below.

[vagrant@vagrant-archlinux-64 ~]$ curl --version
curl 7.22.0 (x86_64-unknown-linux-gnu) libcurl/7.22.0 OpenSSL/1.0.0e zlib/1.2.5 libssh2/1.3.0
Protocols: dict file ftp ftps gopher http https imap imaps pop3 pop3s rtsp scp sftp smtp smtps telnet tftp 
Features: AsynchDNS IPv6 Largefile NTLM NTLM_WB SSL libz 
[vagrant@vagrant-archlinux-64 ~]$ pacman -Syuf
error: you cannot perform this operation unless you are root.
[vagrant@vagrant-archlinux-64 ~]$ sudo pacman -Syuf
:: Synchronizing package databases...
 core                        105.0K   86.2K/s 00:00:01 [############################] 100%
 extra                      1331.5K  194.9K/s 00:00:07 [############################] 100%
 community                  1481.0K  279.9K/s 00:00:05 [############################] 100%
:: The following packages should be upgraded first :
    pacman
:: Do you want to cancel the current operation
:: and upgrade these packages now? [Y/n] y

resolving dependencies...
looking for inter-conflicts...

Targets (12): linux-api-headers-3.1.6-1  glibc-2.15-6  libarchive-3.0.3-3  pth-2.0.7-4
              gnupg-1.4.12-1  libksba-1.2.0-2  libassuan-2.0.3-1  pinentry-0.8.1-3
              dirmngr-1.1.0-3  gnupg2-2.0.18-1  gpgme-1.3.1-2  pacman-4.0.2-1

Total Download Size:    13.33 MB
Total Installed Size:   61.23 MB

Proceed with installation? [Y/n] y
:: Retrieving packages from core...
 linux-api-headers-3.1....   579.3K  172.9K/s 00:00:03 [############################] 100%
 glibc-2.15-6-x86_64           7.5M  138.4K/s 00:00:56 [############################] 100%
 libarchive-3.0.3-3-x86_64  1173.8K  194.0K/s 00:00:06 [############################] 100%
 pth-2.0.7-4-x86_64           75.9K   87.5K/s 00:00:01 [############################] 100%
 gnupg-1.4.12-1-x86_64      1029.6K  181.5K/s 00:00:06 [############################] 100%
 libksba-1.2.0-2-x86_64      109.9K   86.8K/s 00:00:01 [############################] 100%
 libassuan-2.0.3-1-x86_64     76.5K   71.6K/s 00:00:01 [############################] 100%
 pinentry-0.8.1-3-x86_64      93.8K   75.2K/s 00:00:01 [############################] 100%
error: failed retrieving file 'dirmngr-1.1.0-3-x86_64.pkg.tar.xz' from archlinux.c3sl.ufpr.br : Connection timed out
 gnupg2-2.0.18-1-x86_64     1423.6K  164.6K/s 00:00:09 [############################] 100%
 gpgme-1.3.1-2-x86_64        207.1K  117.9K/s 00:00:02 [############################] 100%
 pacman-4.0.2-1-x86_64      1033.3K  111.2K/s 00:00:09 [############################] 100%
warning: failed to retrieve some files from core
error: failed to commit transaction (Connection timed out)
Errors occurred, no packages were upgraded.
[vagrant@vagrant-archlinux-64 ~]$ sudo pacman -Syuf
:: Synchronizing package databases...
 core is up to date
 extra is up to date
 community is up to date
:: The following packages should be upgraded first :
    pacman
:: Do you want to cancel the current operation
Proceed with installation? [Y/n] y
:: Retrieving packages from core...
 linux-api-headers-3.1....   579.3K  172.9K/s 00:00:03 [############################] 100%
 glibc-2.15-6-x86_64           7.5M  138.4K/s 00:00:56 [############################] 100%
 libarchive-3.0.3-3-x86_64  1173.8K  194.0K/s 00:00:06 [############################] 100%
 pth-2.0.7-4-x86_64           75.9K   87.5K/s 00:00:01 [############################] 100%
 gnupg-1.4.12-1-x86_64      1029.6K  181.5K/s 00:00:06 [############################] 100%
 libksba-1.2.0-2-x86_64      109.9K   86.8K/s 00:00:01 [############################] 100%
 libassuan-2.0.3-1-x86_64     76.5K   71.6K/s 00:00:01 [############################] 100%
 pinentry-0.8.1-3-x86_64      93.8K   75.2K/s 00:00:01 [############################] 100%
error: failed retrieving file 'dirmngr-1.1.0-3-x86_64.pkg.tar.xz' from archlinux.c3sl.ufpr.br : Connection timed out
 gnupg2-2.0.18-1-x86_64     1423.6K  164.6K/s 00:00:09 [############################] 100%
 gpgme-1.3.1-2-x86_64        207.1K  117.9K/s 00:00:02 [############################] 100%
 pacman-4.0.2-1-x86_64      1033.3K  111.2K/s 00:00:09 [############################] 100%
warning: failed to retrieve some files from core
error: failed to commit transaction (Connection timed out)
Errors occurred, no packages were upgraded.
[vagrant@vagrant-archlinux-64 ~]$ sudo pacman -Syuf
:: Synchronizing package databases...
 core is up to date
 extra is up to date
 community is up to date
:: The following packages should be upgraded first :
    pacman
:: Do you want to cancel the current operation
:: and upgrade these packages now? [Y/n] y

resolving dependencies...
looking for inter-conflicts...

Targets (12): linux-api-headers-3.1.6-1  glibc-2.15-6  libarchive-3.0.3-3  pth-2.0.7-4
              gnupg-1.4.12-1  libksba-1.2.0-2  libassuan-2.0.3-1  pinentry-0.8.1-3
              dirmngr-1.1.0-3  gnupg2-2.0.18-1  gpgme-1.3.1-2  pacman-4.0.2-1

Total Download Size:    0.16 MB
Total Installed Size:   61.23 MB

Proceed with installation? [Y/n] y
:: Retrieving packages from core...
 dirmngr-1.1.0-3-x86_64      162.6K  106.0K/s 00:00:02 [############################] 100%
(12/12) checking package integrity                     [############################] 100%
(12/12) checking for file conflicts                    [############################] 100%
( 1/12) upgrading linux-api-headers                    [############################] 100%
( 2/12) upgrading glibc                                [############################] 100%
warning: /etc/locale.gen installed as /etc/locale.gen.pacnew
Generating locales...
  en_US.UTF-8... done
  en_US.ISO-8859-1... done
Generation complete.
( 3/12) upgrading libarchive                           [############################] 100%
( 4/12) installing pth                                 [############################] 100%
( 5/12) installing gnupg                               [############################] 100%
( 6/12) installing libksba                             [############################] 100%
( 7/12) installing libassuan                           [############################] 100%
( 8/12) installing pinentry                            [############################] 100%
Optional dependencies for pinentry
    gtk2: for gtk2 backend
    qt: for qt4 backend
( 9/12) installing dirmngr                             [############################] 100%
(10/12) installing gnupg2                              [############################] 100%
(11/12) installing gpgme                               [############################] 100%
(12/12) upgrading pacman                               [############################] 100%
 >>> Run `pacman-key --init` to set up your pacman keyring.
[vagrant@vagrant-archlinux-64 ~]$ sudo pacman -Syuf
pacman: /usr/lib/libcurl.so.4: no version information available (required by /usr/lib/libalpm.so.7)
:: Synchronizing package databases...
 core is up to date
 extra is up to date
 community is up to date
:: Starting full system upgrade...
:: Replace module-init-tools with core/kmod? [Y/n] y
resolving dependencies...
looking for inter-conflicts...

Targets (116): autoconf-2.68-2  automake-1.11.3-1  bash-4.2.020-1  binutils-2.22-4
               bison-2.5-3  bzip2-1.0.6-3  ca-certificates-20120212-1  cloog-0.17.0-1
               coreutils-8.15-1  cracklib-2.8.18-2  cryptsetup-1.4.1-1  curl-7.24.0-2
               db-5.3.15-1  dbus-core-1.4.16-1  device-mapper-2.02.90-1  dhcpcd-5.5.4-1
               e2fsprogs-1.42-1  eventlog-0.2.12-3  expat-2.0.1-7  file-5.10-1
               filesystem-2012.2-2  findutils-4.4.2-4  gawk-4.0.0-2  gcc-4.6.2-7
               gcc-libs-4.6.2-7  gdbm-1.10-1  gettext-0.18.1.1-4  git-1.7.9.2-1
               glib2-2.30.2-2  gmp-5.0.4-1  gpm-1.20.6-7  grep-2.10-3  groff-1.21-2
               grub-0.97-21  gzip-1.4-4  heirloom-mailx-12.5-3  initscripts-2012.02.1-1
               iproute2-3.2.0-2  iptables-1.4.12.2-1  iputils-20101006-2  isl-0.09-1
               jfsutils-1.1.15-3  kbd-1.15.3-2  keyutils-1.5.5-1  kmod-5-4  krb5-1.9.2-2
               less-444-3  libcap-2.22-2  libevent-2.0.16-1  libldap-2.4.28-2
               libltdl-2.4.2-3  libnl-3.2.7-1  libpcap-1.2.1-2  libpipeline-1.2.0-2
               librpcsecgss-0.19-7  libsasl-2.1.23-9  libssh2-1.4.0-1  libtool-2.4.2-3
               libusb-1.0.8-2  libusb-compat-0.1.3-2  libyaml-0.1.4-2  licenses-2.9-1
               linux-3.2.6-2  linux-firmware-20120205-1  linux-headers-3.2.6-2
               logrotate-3.8.1-1  lvm2-2.02.90-1  m4-1.4.16-2  man-db-2.6.1-1
               man-pages-3.35-1  mdadm-3.2.3-1  mkinitcpio-0.8.2-3
               mkinitcpio-busybox-1.19.2-1  module-init-tools-3.16-1 [removal]
               mpfr-3.1.0.p3-1  nano-2.2.6-2  ncurses-5.9-3  net-tools-1.60.20110819cvs-3
               nfs-utils-1.2.5-1  openssh-5.9p1-5  openssl-1.0.0.g-1
               pacman-mirrorlist-20120211-1  pam-1.1.5-2  patch-2.6.1-3  pciutils-3.1.9-1
               pcre-8.30-1  perl-5.14.2-7  perl-error-0.17017-1  popt-1.16-4  ppp-2.4.5-3
               psmisc-22.15-1  readline-6.2.002-1  reiserfsprogs-3.6.21-4
               rpcbind-0.2.0-6  ruby-1.9.3_p0-3  run-parts-4.2.1-1  sed-4.2.1-4
               shadow-4.1.5-3  sqlite3-3.7.10-1  sudo-1.8.4-1  sysfsutils-2.1.0-7
               syslog-ng-3.3.4-2  tar-1.26-2  texinfo-4.13a-7  tzdata-2011n-1  udev-181-2
               util-linux-2.20.1-2  vi-1:050325-2  vim-7.3.434-1  vim-runtime-7.3.434-1
               virtualbox-additions-4.1.8-1  wget-1.13.4-1  which-2.20-5
               wpa_supplicant-0.7.3-5  xfsprogs-3.1.7-1  zlib-1.2.6-1

Total Download Size:    181.85 MiB
Total Installed Size:   609.33 MiB
Net Upgrade Size:       8.95 MiB

Proceed with installation? [Y/n] y
:: Retrieving packages from core...
error: failed retrieving file 'ncurses-5.9-3-x86_64.pkg.tar.xz' from archlinux.c3sl.ufpr.br : Operation too slow. Less than 1024 bytes/sec transferred the last 10 seconds
warning: failed to retrieve some files from core
error: failed retrieving file 'readline-6.2.002-1-x86_64.pkg.tar.xz' from archlinux.c3sl.ufpr.br : Operation too slow. Less than 1024 bytes/sec transferred the last 10 seconds
warning: failed to retrieve some files from core
error: failed retrieving file 'bash-4.2.020-1-x86_64.pkg.tar.xz' from archlinux.c3sl.ufpr.br : Operation too slow. Less than 1024 bytes/sec transferred the last 10 seconds
warning: failed to retrieve some files from core
^C
Interrupt signal received

moderator edit: added code tags

Last edited by fsckd (2012-02-24 22:25:43)

Offline

#2 2012-02-24 04:41:39

newpers
Member
Registered: 2006-08-16
Posts: 14

Re: pacman -Syuf and curl error

Ok, as you can see, I've been an arch user since 2006.  I haven't used it in about 3 years, though.  And I'm reminded of how easy things break.  All I wanted to do was pacman -S unzip, but that particular version of the package no longer existed on the mirror, which I guess happens a lot with Arch, so you're kind of forced to update, and updates are pretty much guaranteed to break things.  Am I wrong here?

Last edited by newpers (2012-02-24 04:42:36)

Offline

#3 2012-02-24 05:22:12

willbprog127
Member
Registered: 2011-11-09
Posts: 59

Re: pacman -Syuf and curl error

[ code ] tags are your friend, don't be afraid to use them

Offline

#4 2012-02-24 05:48:16

jasonwryan
Forum & Wiki Admin
From: .nz
Registered: 2009-05-09
Posts: 18,785
Website

Re: pacman -Syuf and curl error

newpers wrote:

All I wanted to do was pacman -S unzip, but that particular version of the package no longer existed on the mirror, which I guess happens a lot with Arch, so you're kind of forced to update, and updates are pretty much guaranteed to break things.  Am I wrong here?

Using the -f switch and forcing the update is not a fix for an outdated mirror list: it results, as you can see, in breakage. Find an up-to-date mirror, pacman -Syyu and then install the package(s) you need. You may need to manually fix pacman first. There is a sticky for that.


Arch + dwm   •   Mercurial repos  •   Github

Registered Linux User #482438

Offline

#5 2012-02-24 06:28:30

Avant-texte
Member
Registered: 2012-02-13
Posts: 136

Re: pacman -Syuf and curl error

jasonwryan wrote:
newpers wrote:

All I wanted to do was pacman -S unzip, but that particular version of the package no longer existed on the mirror, which I guess happens a lot with Arch, so you're kind of forced to update, and updates are pretty much guaranteed to break things.  Am I wrong here?

Using the -f switch and forcing the update is not a fix for an outdated mirror list: it results, as you can see, in breakage. Find an up-to-date mirror, pacman -Syyu and then install the package(s) you need. You may need to manually fix pacman first. There is a sticky for that.

Yes, pacman has tries not to clobber things. Using the force switch overrides that (which can break things). The Arch devs strongly advise against using -f except in the few cases where it's recommend for single packages due to incompatible upgrades (which usually require other recamended actions to keep things running smoothly) or if you really know what you're doing.

Obviously, this means you should never `pacman -Syuf `. If the normal `pacmanworks -Syu` fails than you have some other problem that needs solving.

Last edited by Avant-texte (2012-02-24 06:33:24)

Offline

#6 2012-02-24 22:29:11

fsckd
Forum Moderator
Registered: 2009-06-15
Posts: 3,548

Re: pacman -Syuf and curl error

Hi newpers. I added [ code ] tags for you. Next time please do it yourself (you can edit your own posts). Thanks.


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

Offline

Board footer

Powered by FluxBB