You are not logged in.

#1 2006-03-07 13:18:46

Joffer
Member
Registered: 2006-01-12
Posts: 69

[Solved] Got pacman to work through proxy

I'm trying to refresh pacman to check for updates, but I get different errors:

[root@lnx pacman]# pacman -Sy
:: Synchronizing package databases...
 testing                  [###############################################################################] 100%       0K     5.5K/s  00:00:00
could not extract kernel26archck-2.6.15.archck5-1/desc: Invalid argument
 current                  [###############################################################################] 100%       0K     0.0K/s  00:00:03
 extra                    [###############################################################################] 100%       0K     0.0K/s  00:00:05
could not extract abiword-plugins-2.4.1-1/depends: Invalid argument
 community                [###############################################################################] 100%       0K     0.0K/s  00:00:03
could not extract adns-python-1.1.0-1/desc: Invalid argument
db_read: error: /var/lib/pacman/testing/kernel26archck-2.6.15.archck5-1/depends: No such file or directory
error: /var/lib/pacman/current/apache-2.0.55-1/desc: No such file or directory
error: /var/lib/pacman/extra/abiword-plugins-2.4.1-1/desc: No such file or directory

I also tried to install a package, with giving me new errors:

[root@lnx pacman]# pacman -S ethereal
db_read: error: /var/lib/pacman/testing/kernel26archck-2.6.15.archck5-1/depends: No such file or directory
error: /var/lib/pacman/current/apache-2.0.55-1/desc: No such file or directory
error: /var/lib/pacman/extra/abiword-plugins-2.4.1-1/desc: No such file or directory
db_read: error: /var/lib/pacman/testing/kernel26archck-2.6.15.archck5-1/depends: No such file or directory
error: /var/lib/pacman/current/apache-2.0.55-1/desc: No such file or directory
error: /var/lib/pacman/extra/abiword-plugins-2.4.1-1/desc: No such file or directory
error: /var/lib/pacman/current/apache-2.0.55-1/desc: No such file or directory
error: /var/lib/pacman/extra/abiword-plugins-2.4.1-1/desc: No such file or directory
ethereal: not found in sync db

I've tried different mirrors (disabling and enabling mirrors in /etc/pacman.d/{current,extra,community}. Is it just me and my friends computer which gets such errors now? Could it be proxy settings?

My pacman.conf file:

#
# /etc/pacman.conf
#
# NOTE: If you find a mirror that is geographically close to you, please
#       move it to the top of the server list, so pacman will choose it
#       first.
#
# To re-sort your mirror lists by ping/traceroute results, use the
# /usr/bin/sortmirrors script.  It requires the "netselect" package.
#

# See the pacman manpage for option directives

#
# GENERAL OPTIONS
#
[options]
LogFile     = /var/log/pacman.log
NoUpgrade   = etc/passwd etc/group etc/shadow etc/sudoers
NoUpgrade   = etc/fstab etc/raidtab etc/ld.so.conf
NoUpgrade   = etc/rc.conf etc/rc.local
NoUpgrade   = etc/modprobe.conf etc/modules.conf
NoUpgrade   = etc/lilo.conf boot/grub/menu.lst
NoUpgrade  =  etc/fam/fam.conf
HoldPkg     = pacman glibc
ProxyServer = proxy.somedomain.internal:8080
#XferCommand = /usr/bin/wget --passive-ftp -c -O %o %u

#
# REPOSITORIES
#   - can be defined here or included from another file
#   - pacman will search repositories in the order defined here.
#   - local/custom mirrors can be added here or in separate files
#

[testing]
Server = ftp://ftp.archlinux.org/testing/os/i686

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

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

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

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

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

Any solution on how to fix this?

Offline

#2 2006-03-07 14:20:44

mtrivs
Member
From: Syracuse, NY
Registered: 2005-12-26
Posts: 183

Re: [Solved] Got pacman to work through proxy

Have you tried pacman -Syu then running those commands?


~HP ZV6000 Series CTO~
-AMD Athlon 64 3200+ 2.0GHz
-1.5GB RAM
-128MB ATI Mobility Radeon X200m
-80GB 5400RPM HD
[img]http://imagegen.last.fm/scarface/recenttracks/mtrivs.gif[/img]

Offline

#3 2006-03-07 16:52:13

Joffer
Member
Registered: 2006-01-12
Posts: 69

Re: [Solved] Got pacman to work through proxy

Yes. I tried again, and this time i got this:

:: Synchronizing package databases...
 testing                  [#################################################] 100%       0K     0.0K/s  00:00:03
 current                  [#################################################] 100%       0K     3.1K/s  00:00:00
could not extract bind-9.3.2-2/desc: Invalid argument
 extra                    [#################################################] 100%       0K     0.0K/s  00:00:06
could not extract abiword-plugins-2.4.1-1/depends: Invalid argument
 community                [#################################################] 100%       0K     0.0K/s  00:00:04
could not extract adns-python-1.1.0-1/desc: Invalid argument
db_read: error: /var/lib/pacman/testing/glib2-2.10.0-1/depends: No such file or directory
error: /var/lib/pacman/extra/abiword-plugins-2.4.1-1/desc: No such file or directory

Targets: aalib-1.4rc5-4 fam-2.7.0-8

Total Package Size:   0.2 MB

Proceed with upgrade? [Y/n] y

:: Retrieving packages from extra...
 aalib-1.4rc5-4           [                    ] -2147483648%       0K     0.0K/s  0
 aalib-1.4rc5-4           [                    ] -2147483648%       0K     0.0K/s  0
0:00:03

:: Retrieving packages from testing...
 fam-2.7.0-8              [                    ] -2147483648%       0K     0.0K/s  0
 fam-2.7.0-8              [                    ] -2147483648%       0K     0.0K/s  0
0:00:04

checking package integrity...
error: archive aalib-1.4rc5-4.pkg.tar.gz is corrupted
error: archive fam-2.7.0-8.pkg.tar.gz is corrupted

Offline

#4 2006-03-07 17:14:20

Moo-Crumpus
Member
From: Hessen / Germany
Registered: 2003-12-01
Posts: 1,487

Re: [Solved] Got pacman to work through proxy

Might be the proxy setting. I can reproduce several errors with a proxy option the kind you have chosen. Never been aware this could do, and in my case, it doesn't. If you have to use the proxy, there is a second way. You might try to handle it with wget, see http://wiki.archlinux.org/index.php/How … tification.

Btw. I had running pacman -Sy without any errors in the last minutes.


Frumpus addict
[mu'.krum.pus], [frum.pus]

Offline

#5 2006-03-07 18:13:01

Joffer
Member
Registered: 2006-01-12
Posts: 69

Re: [Solved] Got pacman to work through proxy

Moo-Crumpus wrote:

Might be the proxy setting. I can reproduce several errors with a proxy option the kind you have chosen. Never been aware this could do, and in my case, it doesn't. If you have to use the proxy, there is a second way. You might try to handle it with wget, see http://wiki.archlinux.org/index.php/How … tification.

Btw. I had running pacman -Sy without any errors in the last minutes.

Looks better.. I added two proxy lines to /etc/profile and,
/etc/profile:

export http_proxy="http://proxy.somedomain.internal:8080"
export ftp_proxy="http://proxy.somedomain.internal:8080"

/etc/pacman.conf:

XferCommand = /usr/bin/wget -c %u

I got this now:

[root@lnx ~]# pacman -Sy
:: Synchronizing package databases...
--19:06:49--  ftp://ftp.archlinux.org/testing/os/i686/testing.db.tar.gz
           => `testing.db.tar.gz'
Resolving proxy.somedomain.internal... 10.x.y.z
Connecting to proxy.somedomain.internal|10.x.y.z|:8080... connected.
Proxy request sent, awaiting response... 200 OK
Length: unspecified [application/octet-stream]

    [ <=>                                                                      ] 5,609         --.--K/s

19:06:49 (133.73 MB/s) - `testing.db.tar.gz' saved [5609]

--19:06:49--  ftp://ftp.archlinux.org/current/os/i686/current.db.tar.gz
           => `current.db.tar.gz'
Resolving proxy.somedomain.internal... 10.x.y.z
Connecting to proxy.somedomain.internal|10.x.y.z|:8080... connected.
Proxy request sent, awaiting response... 200 OK
Length: unspecified [application/octet-stream]

    [ <=>                                                                      ] 67,841        --.--K/s

19:06:49 (8.55 MB/s) - `current.db.tar.gz' saved [67841]

--19:06:50--  ftp://ftp.archlinux.org/extra/os/i686/extra.db.tar.gz
           => `extra.db.tar.gz'
Resolving proxy.somedomain.internal... 10.x.y.z
Connecting to proxy.somedomain.internal|10.x.y.z|:8080... connected.
Proxy request sent, awaiting response... 200 OK
Length: unspecified [application/octet-stream]

    [ <=>                                                                      ] 239,365       --.--K/s

19:06:50 (9.55 MB/s) - `extra.db.tar.gz' saved [239365]

--19:06:51--  ftp://ftp.archlinux.org/community/os/i686/community.db.tar.gz
           => `community.db.tar.gz'
Resolving proxy.somedomain.internal... 10.x.y.z
Connecting to proxy.somedomain.internal|10.x.y.z|:8080... connected.
Proxy request sent, awaiting response... 200 OK
Length: unspecified [application/octet-stream]

    [ <=>                                                                      ] 49,128        --.--K/s

19:06:51 (7.64 MB/s) - `community.db.tar.gz' saved [49128]

[root@lnx ~]# pacman -Su

Targets: aalib-1.4rc5-4 desktop-file-utils-0.10-2 fam-2.7.0-8 gdm-2.8.0.7-6 glib2-2.10.0-1 gnomebaker-0.5.1-2 pango-1.11.99-2 gtk2-2.8.13-1 kernel26-2.6.15.6-1 libgl-dri-6.4.2-2 links-2.1pre20-1 xorg-server-1.0.1-6 xulrunner-1.8.0.1-2

Total Package Size:   45.7 MB

Proceed with upgrade? [Y/n] n

Does this mean I've got the pacman db updated and ready for update? I did only see file downloads....

Offline

#6 2006-03-07 20:22:25

Moo-Crumpus
Member
From: Hessen / Germany
Registered: 2003-12-01
Posts: 1,487

Re: [Solved] Got pacman to work through proxy

That's it, yes.

pacman -Sy == Sync local database with server, to make me know which new stuff is available

pacman -Su == Fetch stuff that is newer than local installed stuff.

You could do it in one step

pacman -Syu

read what pacman would fetch and install, say "y" then, if this is what you want.
If in doubt, man pacman is helpful.


Frumpus addict
[mu'.krum.pus], [frum.pus]

Offline

#7 2006-03-08 10:37:23

Joffer
Member
Registered: 2006-01-12
Posts: 69

Re: [Solved] Got pacman to work through proxy

Moo-Crumpus wrote:

That's it, yes.

pacman -Sy == Sync local database with server, to make me know which new stuff is available

pacman -Su == Fetch stuff that is newer than local installed stuff.

You could do it in one step

pacman -Syu

read what pacman would fetch and install, say "y" then, if this is what you want.
If in doubt, man pacman is helpful.

This I know. I guess I put my words out a bit wrong..  I was just a bit confused about how the pacman db was updated.. if it was updated or not.. since I only saw file downloads and not any info about pacman db  being updated. I guess I learned that the pacman db is just a set of (updated) downloaded 'xxxx.db.tar.gz' files.

I'm marking this thread as solved, and changing the subject to "pacman now works through proxy" so others can find the solution (by subject) by searching smile

Offline

#8 2006-03-08 11:45:41

Moo-Crumpus
Member
From: Hessen / Germany
Registered: 2003-12-01
Posts: 1,487

Re: [Solved] Got pacman to work through proxy

Ah, now I understand your question, you are confused about the wget feedback. Pacman originally would tell you in a more reduced, really different manner, but this is pure wget response. Pacman tells wget to do the job, so wget will reach out for the update files, fetch them, and deliver them to pacman. Each repository is represented by one database file,  <repository>..db.tar.gz. Wget is just downloading them, and saving them at the place pacman would expect. The whole process is a wget task, so you won't see any pacman response during pacman -Sy over wget.

Let's have a look at the update for "community".
This is what happens:

--19:06:51--  ftp://ftp.archlinux.org/community/os/i686/community.db.tar.gz
           => `community.db.tar.gz'

Pacman told wget to update community. Wget will fetch the community.db.tar.gz -  this is the update file of the community repository used by pacman.

Resolving proxy.somedomain.internal... 10.x.y.z
Connecting to proxy.somedomain.internal|10.x.y.z|:8080... connected.
Proxy request sent, awaiting response... 200 OK
Length: unspecified [application/octet-stream]

    [ <=>                                                                      ] 49,128        --.--K/s

This is wget output about the connection, wether it was successfull using the proxy or not, and a progress section with download speed etc.

19:06:51 (7.64 MB/s) - `community.db.tar.gz' saved [49128] 

This is a success note. Wget fetched the file, and saved it. Community is up to date now, as pacman will make use of the updated database package for community.
You may tweak the wget section in pacman.conf to make wget more or less verbose.


Frumpus addict
[mu'.krum.pus], [frum.pus]

Offline

#9 2006-03-08 15:41:44

Joffer
Member
Registered: 2006-01-12
Posts: 69

Re: [Solved] Got pacman to work through proxy

Moo-Crumpus wrote:

Ah, now I understand your question, you are confused about the wget feedback. Pacman originally would tell you in a more reduced, really different manner, but this is pure wget response. Pacman tells wget to do the job, so wget will reach out for the update files, fetch them, and deliver them to pacman. Each repository is represented by one database file,  <repository>..db.tar.gz. Wget is just downloading them, and saving them at the place pacman would expect. The whole process is a wget task, so you won't see any pacman response during pacman -Sy over wget.

big_smile

Offline

Board footer

Powered by FluxBB