[Date Prev][Date Next] [Thread Prev][Thread Next] [Date Index] [Thread Index]

Bug#831910: tracker.debian.org: loaddata imports package sources wrong



Package: tracker.debian.org
Severity: normal

Dear Maintainer,

i tried to setup my own tracker in a vagrant environment (based on the
vagrant debian/jessie64 image).
When following the instructions on
https://tracker.debian.org/docs/setup/repositories.html#repositories
the command
./manage.py tracker_update_repositories
fails, because the file
data/cache/apt-cache/etc/sources.list
contains sections like
m a i n   c o n t r i b   n o n - f r e e
meaning: all the characters are divided by one additional space chacter.
this leads to the command failing:

2016-07-20 18:47:46,343 INFO: Starting task UpdateRepositoriesTask
2016-07-20 18:47:46,344 INFO: UpdateRepositoriesTask Updating apt's cache
2016-07-20 18:47:55,284 ERROR: Problem processing a task.
Traceback (most recent call last):
  File "/home/vagrant/foo/distro_tracker/core/tasks.py", line 521, in run
    task.execute()
  File "/home/vagrant/foo/distro_tracker/core/tasks.py", line 551, in wrapper
    six.reraise(*sys.exc_info())
  File "/home/vagrant/foo/distro_tracker/core/tasks.py", line 548, in wrapper
    func(self)
  File "/home/vagrant/foo/distro_tracker/core/retrieve_data.py", line 814, in execute
    self.apt_cache.update_repositories(self.force_update)
  File "/home/vagrant/foo/distro_tracker/core/utils/packages.py", line 430, in update_repositories
    cache.update(progress)
  File "/usr/lib/python2.7/dist-packages/apt/cache.py", line 443, in update
    raise FetchFailedException(e)
FetchFailedException: W:Failed to fetch http://security.debian.org/dists/oldstable/updates/InRelease  Unable to find expected entry 'm/source/Sources' in Release file (Wrong sources.list entry or malformed file)
, W:Failed to fetch http://httpredir.debian.org/debian/dists/wheezy-backports/InRelease  Unable to find expected entry 'm/source/Sources' in Release file (Wrong sources.list entry or malformed file)
, W:Failed to fetch http://httpredir.debian.org/debian/dists/wheezy-backports-sloppy/InRelease  Unable to find expected entry 'm/source/Sources' in Release file (Wrong sources.list entry or malformed file)
, W:Failed to fetch http://httpredir.debian.org/debian/dists/oldstable-updates/InRelease  Unable to find expected entry 'm/source/Sources' in Release file (Wrong sources.list entry or malformed file)
, W:Failed to fetch http://httpredir.debian.org/debian/dists/oldstable-proposed-updates/InRelease  Unable to find expected entry 'm/source/Sources' in Release file (Wrong sources.list entry or malformed file)
, W:Failed to fetch http://security.debian.org/dists/stable/updates/InRelease  Unable to find expected entry 'm/source/Sources' in Release file (Wrong sources.list entry or malformed file)
, W:Failed to fetch http://httpredir.debian.org/debian/dists/jessie-backports/InRelease  Unable to find expected entry 'm/source/Sources' in Release file (Wrong sources.list entry or malformed file)
, W:Failed to fetch http://httpredir.debian.org/debian/dists/stable-updates/InRelease  Unable to find expected entry 'm/source/Sources' in Release file (Wrong sources.list entry or malformed file)
, W:Failed to fetch http://httpredir.debian.org/debian/dists/proposed-updates/InRelease  Unable to find expected entry 'm/source/Sources' in Release file (Wrong sources.list entry or malformed file)
, W:Failed to fetch http://httpredir.debian.org/debian/dists/testing/InRelease  Unable to find expected entry 'm/source/Sources' in Release file (Wrong sources.list entry or malformed file)
, W:Failed to fetch http://security.debian.org/dists/testing/updates/InRelease  Unable to find expected entry 'm/source/Sources' in Release file (Wrong sources.list entry or malformed file)
, W:Failed to fetch http://httpredir.debian.org/debian/dists/testing-proposed-updates/InRelease  Unable to find expected entry 'm/source/Sources' in Release file (Wrong sources.list entry or malformed file)
, W:Failed to fetch http://httpredir.debian.org/debian/dists/unstable/InRelease  Unable to find expected entry 'm/source/Sources' in Release file (Wrong sources.list entry or malformed file)
, W:Failed to fetch http://httpredir.debian.org/debian/dists/experimental/InRelease  Unable to find expected entry 'm/source/Sources' in Release file (Wrong sources.list entry or malformed file)
, W:Failed to fetch http://httpredir.debian.org/debian/dists/oldstable/Release  Unable to find expected entry 'm/source/Sources' in Release file (Wrong sources.list entry or malformed file)
, W:Failed to fetch http://httpredir.debian.org/debian/dists/stable/Release  Unable to find expected entry 'm/source/Sources' in Release file (Wrong sources.list entry or malformed file)
, E:Some index files failed to download. They have been ignored, or old ones used instead.

(after fixing the sources.list by hand, the tracker_update_repositories command
apparently recreates the file again with the broken section names)



-- System Information:
Debian Release: stretch/sid
  APT prefers testing
  APT policy: (650, 'testing'), (500, 'unstable')
Architecture: amd64 (x86_64)

Kernel: Linux 4.6.0-1-amd64 (SMP w/4 CPU cores)
Locale: LANG=en_US.UTF-8, LC_CTYPE=en_US.UTF-8 (charmap=UTF-8)
Shell: /bin/sh linked to /bin/dash
Init: systemd (via /run/systemd/system)
deb-src http://httpredir.debian.org/debian oldstable m a i n   c o n t r i b   n o n - f r e e
deb-src http://security.debian.org oldstable/updates m a i n   c o n t r i b   n o n - f r e e
deb-src http://httpredir.debian.org/debian wheezy-backports m a i n   c o n t r i b   n o n - f r e e
deb-src http://httpredir.debian.org/debian wheezy-backports-sloppy m a i n   c o n t r i b   n o n - f r e e
deb-src http://httpredir.debian.org/debian oldstable-updates m a i n   c o n t r i b   n o n - f r e e
deb-src http://httpredir.debian.org/debian oldstable-proposed-updates m a i n   c o n t r i b   n o n - f r e e
deb-src http://httpredir.debian.org/debian stable m a i n   c o n t r i b   n o n - f r e e
deb-src http://security.debian.org stable/updates m a i n   c o n t r i b   n o n - f r e e
deb-src http://httpredir.debian.org/debian jessie-backports m a i n   c o n t r i b   n o n - f r e e
deb-src http://httpredir.debian.org/debian stable-updates m a i n   c o n t r i b   n o n - f r e e
deb-src http://httpredir.debian.org/debian proposed-updates m a i n   c o n t r i b   n o n - f r e e
deb-src http://httpredir.debian.org/debian testing m a i n   c o n t r i b   n o n - f r e e
deb-src http://security.debian.org testing/updates m a i n   c o n t r i b   n o n - f r e e
deb-src http://httpredir.debian.org/debian testing-proposed-updates m a i n   c o n t r i b   n o n - f r e e
deb-src http://httpredir.debian.org/debian unstable m a i n   c o n t r i b   n o n - f r e e
deb [arch=amd64] http://httpredir.debian.org/debian unstable m a i n   c o n t r i b   n o n - f r e e
deb-src http://httpredir.debian.org/debian experimental m a i n   c o n t r i b   n o n - f r e e

Attachment: signature.asc
Description: PGP signature


Reply to: