[Jaunty] "software-properties-gtk -e" brings duplicated components in /etc/apt/sources.list

Bug #372224 reported by STGSAGWAN
8
This bug affects 1 person
Affects Status Importance Assigned to Milestone
python-apt (Ubuntu)
Fix Released
Undecided
Michael Vogt

Bug Description

"software-properties-gtk -e" brings duplicated components in /etc/apt/sources.list .

$ lsb_release -rd
Description: Ubuntu 9.04
Release: 9.04

$ dpkg -l | grep software-proper
ii python-software-properties 0.71.5 manage the repositories that you install sof
ii software-properties-gtk 0.71.5 manage the repositories that you install sof

-----
Here is an example that shows what happens after the software-properties-gtk -e command is executed:

[BEFORE]
$ cat /etc/apt/sources.list
deb http://ja.archive.ubuntu.com/ubuntu/ jaunty main restricted
deb http://ja.archive.ubuntu.com/ubuntu/ jaunty universe

$ sudo software-properties-gtk -e universe

[AFTER]
$ cat /etc/apt/sources.list
deb http://ja.archive.ubuntu.com/ubuntu/ jaunty main restricted universe
deb http://ja.archive.ubuntu.com/ubuntu/ jaunty universe

$ sudo apt-get update
Get:1 http://archive.ubuntulinux.jp jaunty Release.gpg [307B]
Get:2 http://archive.ubuntulinux.jp jaunty-non-free/ Release.gpg [189B]
Get:3 http://archive.ubuntulinux.jp jaunty Release [52.9kB]
Get:4 http://archive.ubuntulinux.jp jaunty-non-free/ Release [742B]
Ign http://archive.ubuntulinux.jp jaunty/main Packages
Hit http://ja.archive.ubuntu.com jaunty Release.gpg
Ign http://archive.ubuntulinux.jp jaunty-non-free/ Packages
Get:5 http://archive.ubuntulinux.jp jaunty/main Packages [6711B]
Get:6 http://archive.ubuntulinux.jp jaunty-non-free/ Packages [2524B]
Hit http://ja.archive.ubuntu.com jaunty Release
Hit http://ja.archive.ubuntu.com jaunty/main Packages
Hit http://ja.archive.ubuntu.com jaunty/restricted Packages
Hit http://ja.archive.ubuntu.com jaunty/universe Packages
Fetched 63.4kB in 1s (50.7kB/s)
Reading package lists...
W: Duplicate sources.list entry http://ja.archive.ubuntu.com jaunty/universe Packages (/var/lib/apt/lists/ja.archive.ubuntu.com_ubuntu_dists_jaunty_universe_binary-i386_Packages)
W: You may want to run apt-get update to correct these problems

-----
Here is an expected result:

[AFTER]
$ cat /etc/apt/sources.list
deb http://ja.archive.ubuntu.com/ubuntu/ jaunty main restricted
deb http://ja.archive.ubuntu.com/ubuntu/ jaunty universe

Related branches

Revision history for this message
STGSAGWAN (sakura-launchpad-bugreport) wrote :

This does not happen with Hardy nor with Intrepid.

Fumihito YOSHIDA (hito)
affects: ubuntu → software-properties (Ubuntu)
description: updated
Revision history for this message
STGSAGWAN (sakura-launchpad-bugreport) wrote :

I mistakenly did the above experiment with the server "ja.archive.ubuntu.com" instead of "jp.archive.ubuntu.com", although offtopic.
I don't think this mistake affects the results.

Michael Vogt (mvo)
affects: software-properties (Ubuntu) → python-apt (Ubuntu)
Changed in python-apt (Ubuntu):
assignee: nobody → Michael Vogt (mvo)
status: New → Fix Committed
Revision history for this message
Launchpad Janitor (janitor) wrote :
Download full text (3.6 KiB)

This bug was fixed in the package python-apt - 0.7.12.1ubuntu1

---------------
python-apt (0.7.12.1ubuntu1) karmic; urgency=low

  [ Michael Vogt ]
  * apt/package.py:
    - add "recommends" property
  * debian/control:
    - change build-dep for libapt-pkg-dev to >= 0.7.21
  * merged with debian/unstable

  [ Loïc Minier ]
  * Revert addition of gcc and gcc_s to python-apt libs as the toolchain has
    been fixed; LP: #375334.

  [ Julian Andres Klode ]
  * apt/package.py:
   - Introduce Version.get_dependencies() which takes one or more types
     of dependencies and returns a list of Dependency objects.

python-apt (0.7.12.1) unstable; urgency=low

  * apt/debfile.py:
    - Fix missing space in message (Closes: #539704)
  * apt/package.py:
    - Add missing argument to Version.__le__() and Version.__ge__()
  * debian/control:
    - Do not build-depend on python-gtk2 and python-vte on kfreebsd-*.
  * setup.py:
    - Always build documentation, even if python-gtk2 is not installed.

python-apt (0.7.12.0) unstable; urgency=low

  [ Julian Andres Klode ]
  * python/cache.cc:
    - Support Breaks, Enhances dependency types (Closes: #416247)
  * debian/control:
    - Only recommend libjs-jquery (Closes: #527543)
    - Build-depend on libapt-pkg-dev (>= 0.7.22~)
    - Update Standards-Version to 3.8.2
  * apt/cache.py:
    - Correctly handle rootdir on second and later invocations of
      open(), by calling InitSystem again. (LP: #320665).
    - Provide broken_count, delete_count, install_count, keep_count
      properties (Closes: #532338)
    - Only create Package objects when they are requested, do not keep them in
      a dict. Saves 10MB for 25,000 packages on my machine.
  * apt/package.py:
    - Allow to set the candidate of a package (Closes: #523997)
      + Support assignments to the 'candidate' property of Package objects.
      + Initial patch by Sebastian Heinlein
    - Make comparisons of Version object more robust.
    - Return VersionList objects in Package.versions, which are sequences
      and also provide features of mappings. (partial API BREAK)
      + Allows to get a specific version (Closes: #523998)
  * apt/progress/__init__.py:
    - Do not break out of InstallProgress.waitChild()'s loop just because it
      is hitting EINTR, but only on child exit or on ECHILD.
  * Use debhelper 7 instead of CDBS

  [ Stefano Zacchiroli ]
  * debian/python-apt.doc-base: register the documentation with the
    doc-base system (Closes: #525134)

  [ Sebastian Heinlein ]
  * apt/progress.py: Extract the package name from the status message
    (Closes: #532660)

python-apt (0.7.11.1) unstable; urgency=low

  [ Stephan Peijnik ]
  * apt/progress/__init__.py:
    - Exception handling fixes in InstallProgress class.

  [ Michael Vogt ]
  * python/tag.cc:
    - merge patch from John Wright that adds FindRaw method
      (closes: #538723)

python-apt (0.7.11.0) unstable; urgency=low

  [ Julian Andres Klode ]
  * data/templates/Debian.info.in: Squeeze will be 6.0, not 5.1

  [ Stephan Peijnik ]
  * apt/progress/__init__.py:
    - add update_status_full() that takes file_size/partial_size as
      additional callback arguments
    - add pulse...

Read more...

Changed in python-apt (Ubuntu):
status: Fix Committed → Fix Released
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.