You are not logged in.

#1 2005-08-29 09:48:03

koyi
Member
From: Osaka, Japan
Registered: 2005-08-15
Posts: 37

Error with package retrievals

These error messages showed when I am intalling new softwares/upgrading today.

:: Retrieving packages from current...
Control socket read failed: Success
error: anonymous login failed
Control socket read failed: Illegal seek

imlib-1.9.15-1           [################] 100%     535K    69.4K/s  00:00:07

:: Retrieving packages from extra...
Control socket read failed: Success
error: anonymous login failed
Control socket read failed: Success

qiv-2.0-1                [################] 100%      26K    24.1K/s  00:00:01

checking package integrity... done.
loading package data... done.
checking for file conflicts... done.
installing imlib... done.
installing qiv... done.

I think the installation is complete but I just wonder what do those messages mean.[/b]

Offline

#2 2005-08-29 15:31:46

phrakture
Arch Overlord
From: behind you
Registered: 2003-10-29
Posts: 7,879
Website

Re: Error with package retrievals

Those look like ftp errors... try switching your mirrors around (the files in /etc/pacman.d/*)...

Offline

#3 2006-08-31 14:03:03

ndlarsen
Member
From: Denmark
Registered: 2005-11-02
Posts: 157

Re: Error with package retrievals

Hey.

Try to comment out the first mirror in /etc/pacman.d/current and in /etc/pacman.d/extra, seemed to solved the issue for me.


I made it long
as I lacked the time to make it short...

Offline

#4 2006-09-03 13:11:38

braincenter
Member
From: Detroit
Registered: 2006-08-27
Posts: 26
Website

Re: Error with package retrievals

I downloaded and installed the netselect program and ran the sortmirrors script. Now I am getting the following message:

pacman -Syu
config: line 5: syntax error
:: Synchronizing package databases...
failed to synchronize current
failed to synchronize extra

Any ideas how to fix?

Offline

#5 2006-09-03 14:13:31

T-Dawg
Forum Fellow
From: Charlotte, NC
Registered: 2005-01-29
Posts: 2,736

Re: Error with package retrievals

braincenter wrote:

I downloaded and installed the netselect program and ran the sortmirrors script. Now I am getting the following message:

pacman -Syu
config: line 5: syntax error
:: Synchronizing package databases...
failed to synchronize current
failed to synchronize extra

Any ideas how to fix?

The sortmirrors script has been broken for some time. Just reinstall pacman and move the .pacnew files in place under /etc/pacman.d/* or just fix the error on line 5. I made a python script for this a while back which creates a *.sorted file which you can specify to use in pacman.conf so you don't have to worry about it messing up any configs.

#!/usr/bin/python

import os, sys, re

def main():

    if os.getuid() != 0:
        print >>sys.stderr, 'You must be root user to run this program.'
        sys.exit(1)

    old_mirror = '/etc/pacman.d/extra'

    if not os.path.isfile(old_mirror):
        print >>sys.stderr, 'Old mirror ' + old_mirror + ' does not exist.'
        sys.exit(1)

    f = open(old_mirror, 'r')
    old_lines = f.readlines()
    f.close()

    i=0
    old_urls = []
    old_valids = []
    while i<len(old_lines):
        if re.search('//', old_lines[i]):
            old_urls.append(old_lines[i])
            prefix = old_lines[i].split('//')
            suffix = prefix[1].split('/')
            old_valids.append(suffix[0])
        i=i+1

#print('Testing ' + test_speed)
    i=0
    nums = []
    for url in old_valids:
        num_dots = 60 - int(len(url))
        mirror_name = url + '.'*num_dots
        sys.stdout.write(mirror_name),
        sys.stdout.flush()
        stdin, stdout, stderr = os.popen3('ping -c6 ' + url)
        output = stdout.read()
        error = stderr.read()
        stdin.close()
        stdout.close()
        stderr.close()

        if error != '':
            print(error)
            del(old_urls[i])
        else:
            sep = output.split('n')
            last_line = sep[len(sep)-2]
            ms = last_line.split('/')
            if len(ms) < 5:
                print 'unable to obtain speeds, back connection.'
                i=i+1
                continue
            else:
                print(ms[4] + 'ms')
                nums.append(ms[4])
        i=i+1


    #print('Testing ' + test_speed)
    del(old_valids)

    sorted_mirrors = []
    f_nums = []
    for n in nums:
        f_nums.append(float(n))

    i=0
    while i<len(f_nums):
        mini=min(f_nums)
        idx_num = f_nums.index(mini)
        sorted_mirrors.append(old_urls[idx_num])
        del(f_nums[idx_num])
        del(old_urls[idx_num])
    i=i+1

    del(nums)

    extra = '/etc/pacman.d/extra.sorted'
    current = '/etc/pacman.d/current.sorted'
    testing = '/etc/pacman.d/testing.sorted'
    release = '/etc/pacman.d/release.sorted'
    community = '/etc/pacman.d/community.sorted'
    unstable = '/etc/pacman.d/unstable.sorted'


    mirrors = [ extra, current, testing, release, community, unstable ]
    mirrors_name = [ 'extra', 'current', 'testing', 'release', 'community', 'unstable' ]

    i=0
    while i<len(mirrors):
        if os.path.isfile(mirrors[i]):
            os.remove(mirrors[i])
        
        f = open(mirrors[i], 'w')
        f.write('#n[' + mirrors_name[i] + ']n#n')
        for line in sorted_mirrors:
            new_urls = line.replace('extra', mirrors_name[i])
            f.write(new_urls)
        f.close()
        i=i+1

    print('==> Append ".sorted" to each of your Include = lines in /etc/pacman.conf.')

if __name__ == '__main__':
    try:
        main()
    except KeyboardInterrupt:
        sys.exit(0)

Offline

#6 2006-09-04 10:32:02

braincenter
Member
From: Detroit
Registered: 2006-08-27
Posts: 26
Website

Re: Error with package retrievals

I just added the mirrors directly into pacman.conf

It works now.

Offline

Board footer

Powered by FluxBB