unknown extension for file Translation-en_US.bz2'

Bug #154518 reported by Carl Karsten
22
This bug affects 2 people
Affects Status Importance Assigned to Milestone
apt-proxy (Ubuntu)
Confirmed
Undecided
Unassigned

Bug Description

Binary package hint: apt-proxy

juser@vaio:~/Desktop$ cat /etc/apt/sources.list
deb http://e18:9999/ubuntu gutsy main

juser@vaio:~$ sudo apt-get -s -V update
Err http://e18 gutsy Release.gpg
  Bad header line
Err http://e18 gutsy/main Translation-en_US
  Bad header line
Ign http://e18 gutsy Release
Ign http://e18 gutsy/main Packages
Get:1 http://e18 gutsy/main Packages [1398kB]
Fetched 1398kB in 33s (41.6kB/s)
Failed to fetch http://e18:9999/ubuntu/dists/gutsy/Release.gpg Bad header line
Failed to fetch http://e18:9999/ubuntu/dists/gutsy/main/i18n/Translation-en_US.bz2 Bad header line
Reading package lists... Done
E: Some index files failed to download, they have been ignored, or old ones used instead.

2007/10/19 13:11 -0500 [-] Log opened.
2007/10/19 13:11 -0500 [-] twistd 2.5.0 (/usr/bin/python 2.5.1) starting up
2007/10/19 13:11 -0500 [-] reactor class: <class 'twisted.internet.selectreactor.SelectReactor'>
2007/10/19 13:11 -0500 [-] Loading /usr/sbin/apt-proxy...
2007/10/19 13:11 -0500 [-] /usr/lib/python2.5/site-packages/twisted/manhole/telnet.py:8: exceptions.DeprecationWarning: As of Twisted 2.1, twisted.protocols.telnet is deprecated. See twisted.conch.telnet for the current, supported API.
2007/10/19 13:11 -0500 [-] None
2007/10/19 13:11 -0500 [-] Loaded.
2007/10/19 13:11 -0500 [-] Changing process name to apt-proxy
2007/10/19 13:11 -0500 [-] Log opened.
2007/10/19 13:11 -0500 [-] twistd 2.5.0 (/usr/sbin/apt-proxy 2.5.1) starting up
2007/10/19 13:11 -0500 [-] reactor class: <class 'twisted.internet.selectreactor.SelectReactor'>
2007/10/19 13:11 -0500 [-] Loading /usr/sbin/apt-proxy...
2007/10/19 13:11 -0500 [-] /usr/lib/python2.5/site-packages/twisted/manhole/telnet.py:8: exceptions.DeprecationWarning: As of Twisted 2.1, twisted.protocols.telnet is deprecated. See twisted.conch.telnet for the current, supported API.
2007/10/19 13:11 -0500 [-] None
2007/10/19 13:11 -0500 [-] Loaded.
2007/10/19 13:11 -0500 [-] apt_proxy.apt_proxy.Factory starting on 9999
2007/10/19 13:11 -0500 [-] Starting factory <apt_proxy.apt_proxy.Factory instance at 0x84aee0c>
2007/10/19 13:11 -0500 [-] set uid/gid 111/65534
2007/10/19 13:11 -0500 [Channel,0,192.168.1.24] [CacheEntry] this is a real request:/var/cache/apt-proxy/ubuntu/dists/gutsy/Release.gpg
2007/10/19 13:11 -0500 [Channel,0,192.168.1.24] [CacheEntry] start download:dists/gutsy/Release.gpg
2007/10/19 13:11 -0500 [Channel,0,192.168.1.24] Starting factory <apt_proxy.fetchers.HttpFetcher instance at 0x84b87ec>
2007/10/19 13:11 -0500 [Channel,0,192.168.1.24] Starting factory <twisted.protocols.policies.TimeoutFactory instance at 0x84b884c>
2007/10/19 13:11 -0500 [Channel,0,192.168.1.24] '[HttpRequestClient] abort - unknown extension for file dists/gutsy/main/i18n/Translation-en_US.bz2'
2007/10/19 13:12 -0500 [-] '[error] [None] Connection Failed: /ubuntu/dists/gutsy/Release.gpg (User timeout caused connection failure.)'
2007/10/19 13:12 -0500 [-] [Fetcher] download_failed: (503) [Failure instance: Traceback (failure with no frames): <class 'twisted.internet.error.TimeoutError'>: User timeout caused connection failure.
        ]
2007/10/19 13:12 -0500 [-] [CacheEntry] download_failure /var/cache/apt-proxy/ubuntu/dists/gutsy/Release.gpg: (503) [Failure instance: Traceback (failure with no frames): <class 'twisted.internet.error.TimeoutError'>: User timeout caused connection failure.
        ]
2007/10/19 13:12 -0500 [-] Stopping factory <apt_proxy.fetchers.HttpFetcher instance at 0x84b87ec>
2007/10/19 13:12 -0500 [-] Stopping factory <twisted.protocols.policies.TimeoutFactory instance at 0x84b884c>
2007/10/19 13:12 -0500 [Channel,0,192.168.1.24] [CacheEntry] this is a real request:/var/cache/apt-proxy/ubuntu/dists/gutsy/Release
2007/10/19 13:12 -0500 [Channel,0,192.168.1.24] [CacheEntry] start download:dists/gutsy/Release
2007/10/19 13:12 -0500 [Channel,0,192.168.1.24] Unhandled Error
        Traceback (most recent call last):
          File "/usr/lib/python2.5/site-packages/twisted/python/log.py", line 48, in callWithLogger
            return callWithContext({"system": lp}, func, *args, **kw)
          File "/usr/lib/python2.5/site-packages/twisted/python/log.py", line 33, in callWithContext
            return context.call({ILogContext: newCtx}, func, *args, **kw)
          File "/usr/lib/python2.5/site-packages/twisted/python/context.py", line 59, in callWithContext
            return self.currentContext().callWithContext(ctx, func, *args, **kw)
          File "/usr/lib/python2.5/site-packages/twisted/python/context.py", line 37, in callWithContext
            return func(*args,**kw)
        --- <exception caught here> ---
          File "/usr/lib/python2.5/site-packages/twisted/internet/selectreactor.py", line 139, in _doReadOrWrite
            why = getattr(selectable, method)()
          File "/usr/lib/python2.5/site-packages/twisted/internet/tcp.py", line 362, in doRead
            return self.protocol.dataReceived(data)
          File "/usr/lib/python2.5/site-packages/twisted/protocols/basic.py", line 232, in dataReceived
            why = self.lineReceived(line)
          File "/usr/lib/python2.5/site-packages/twisted/web/http.py", line 1001, in lineReceived
            self.allContentReceived()
          File "/usr/lib/python2.5/site-packages/apt_proxy/apt_proxy.py", line 237, in allContentReceived
            http.HTTPChannel.allContentReceived(self)
          File "/usr/lib/python2.5/site-packages/twisted/web/http.py", line 1042, in allContentReceived
            req.requestReceived(command, path, version)
          File "/usr/lib/python2.5/site-packages/twisted/web/http.py", line 598, in requestReceived
            self.process()
          File "/usr/lib/python2.5/site-packages/apt_proxy/clients.py", line 119, in process
            self.cacheEntry.add_request(self)
          File "/usr/lib/python2.5/site-packages/apt_proxy/cache.py", line 135, in add_request
            self.get()
          File "/usr/lib/python2.5/site-packages/apt_proxy/cache.py", line 189, in get
            self.start_download()
          File "/usr/lib/python2.5/site-packages/apt_proxy/cache.py", line 344, in start_download
            self.backend.start_download(self)
          File "/usr/lib/python2.5/site-packages/apt_proxy/apt_proxy.py", line 143, in start_download
            self.queue.addFile(entry)
          File "/usr/lib/python2.5/site-packages/apt_proxy/fetchers.py", line 997, in addFile
            q.addFile(cacheEntry)
          File "/usr/lib/python2.5/site-packages/apt_proxy/fetchers.py", line 910, in addFile
            self.startNextDownload()
          File "/usr/lib/python2.5/site-packages/apt_proxy/fetchers.py", line 936, in startNextDownload
            if self.fetcher.backendServer.backend != self.activeFile.backend:
        exceptions.AttributeError: 'NoneType' object has no attribute 'backend'

2007/10/19 13:12 -0500 [Channel,1,192.168.1.24] [CacheEntry] start download:dists/gutsy/main/binary-i386/Packages.gz
2007/10/19 13:12 -0500 [Channel,1,192.168.1.24] Starting factory <apt_proxy.fetchers.HttpFetcher instance at 0x85339ec>
2007/10/19 13:12 -0500 [Channel,1,192.168.1.24] Starting factory <twisted.protocols.policies.TimeoutFactory instance at 0x8533a2c>
2007/10/19 13:12 -0500 [Channel,1,192.168.1.24] [CacheEntry] this is a real request:/var/cache/apt-proxy/ubuntu/dists/gutsy/main/binary-i386/Packages.gz
2007/10/19 13:12 -0500 [TimeoutProtocol,client] [CacheEntry] download started:/var/cache/apt-proxy/ubuntu/dists/gutsy/main/binary-i386/Packages.gz
2007/10/19 13:12 -0500 [TimeoutProtocol,client] [CacheEntry] download started:/var/cache/apt-proxy/ubuntu/dists/gutsy/main/binary-i386/Packages
2007/10/19 13:12 -0500 [TimeoutProtocol,client] [CacheEntry] download_data_end: /var/cache/apt-proxy/ubuntu/dists/gutsy/main/binary-i386/Packages.gz (2 clients)
2007/10/19 13:12 -0500 [TimeoutProtocol,client] [CacheEntry] file_sent:/var/cache/apt-proxy/ubuntu/dists/gutsy/main/binary-i386/Packages.gz
2007/10/19 13:12 -0500 [TimeoutProtocol,client] Stopping factory <apt_proxy.fetchers.HttpFetcher instance at 0x85339ec>
2007/10/19 13:12 -0500 [TimeoutProtocol,client] Stopping factory <twisted.protocols.policies.TimeoutFactory instance at 0x8533a2c>
2007/10/19 13:12 -0500 [-] [CacheEntry] download_data_end: /var/cache/apt-proxy/ubuntu/dists/gutsy/main/binary-i386/Packages (0 clients)
2007/10/19 13:12 -0500 [-] [CacheEntry] file_sent:/var/cache/apt-proxy/ubuntu/dists/gutsy/main/binary-i386/Packages
2007/10/19 13:12 -0500 [-] [apt_pkg] Registering package file: ubuntu/dists/gutsy/main/binary-i386/Packages

Revision history for this message
Wessel van Norel (delgurth) wrote :

I've tried changing cache.py so that not only Packages.bz2 is accepted as filetype, but all .bz2 packages. But that resulted in:

[CacheEntry] download_failure /var/cache/apt-proxy/security/dists/etch/updates/non-free/i18n/Translation-en_IE.bz2: (404) file not found on backend

I'll try to investigate this later on.

Revision history for this message
Lionel Dricot (ploum-deactivatedaccount) wrote :

I confirm this bug in Hardy

Daniel T Chen (crimsun)
Changed in apt-proxy:
status: New → Confirmed
Revision history for this message
Derek Kaye (kayedj) wrote :

Confirmed in Intrepid

Revision history for this message
Andrew Sharpe (andrew-sharpe-79) wrote :

This also exists in hardy jeos - would love to get a fix.

These patches have not solved the issue for me,

  http://bugs.debian.org/cgi-bin/bugreport.cgi?bug=484331
  http://bugs.debian.org/cgi-bin/bugreport.cgi?bug=503923

I get the 404 as describe above with the patches

Revision history for this message
Andrew Sharpe (andrew-sharpe-79) wrote :

The workaround I'm using is taken from

  http://forums.whirlpool.net.au/forum-replies-archive.cfm/729183.html

Just run the update as follows (all one line, minus the #)

  # LANG= LANGUAGE= apt-get update

Problem gone :)

To post a comment you must log in.
This report contains Public information  
Everyone can see this information.

Other bug subscribers

Remote bug watches

Bug watches keep track of this bug in other bug trackers.