[Feisty Beta] software-properties-gtk corrupts /etc/apt/source.list

Bug #98795 reported by folkoy
10
Affects Status Importance Assigned to Milestone
software-properties (Ubuntu)
Fix Released
High
Unassigned
Nominated for Feisty by folkoy

Bug Description

Binary package hint: software-properties-gtk

After clean install of Ubuntu 7.04 Beta (i386 alternate), update-manager ran and downloaded some package from the net and prompted me to insert CD-ROM to install updated. I didn't want to install packages from CD-ROM, I then clicked "cancel" and wanted to remove CD-ROM from the source.list by using "software sources" application to only specify internet as package source.

I Couldn't find how to remove CD-ROM from the selection in software-properties-gtk and didn't want to edit /etc/apt/source.list manually. I then tried to click few options here and there in software-properties-gtk application. In "Third-Party Software tab", there was no entries and still there is no entry. Then I quit software-properties-gtk application to retry update-manager.

update-manager wouldn't start and displayed the following error;
     "Could not initialize the package information
      A unresolvable problem occurred while initializing the package information.
     Please report this bug against the 'update-manager' package and include the following error message:
    'E:Malformed line 4 in source list /etc/apt/sources.list (dist parse), E:The list of sources could not be read.' "

After commenting out line 4 of /etc/apt/source.list the problem disappeared and update-manager ran fine. It seems like software-properties-gtk corrupted the source.list.

Here are the first 8 lines of /etc/apt/source.list [actual lines start after the :]
1:#
2:# deb cdrom:[Ubuntu 7.04 _Feisty Fawn_ - Beta i386 (20070322.2)]/ feisty main restricted
3:
4:deb cdrom:[Ubuntu 7.04 _Feisty Fawn_ - Beta i386 (20070322.2)]/ feisty
5:# See http://help.ubuntu.com/community/UpgradeNotes for how to upgrade to
6:# newer versions of the distribution.
7:
8:deb http://ca.archive.ubuntu.com/ubuntu/ feisty main restricted

it seems the line 4 misses "main restricted" at the end of the line. Also it's strange that line 4 seems to be the same as lthe commented line 2 except for the missing "main restricted". This /etc/apt/source.list was never edited manually.

Mar 31 Update: I re-installed Ubuntu 7.04 beta and made a backup of the /etc/apt/source.list. I can confirm that just going in software-properties application and changing one option (i.e. clicking on "source code") and saving will make the problem show up. The 4 line of the source.list is malformed and no other application can read the source.list without error.

folkoy (pluron)
description: updated
folkoy (pluron)
description: updated
Michael Vogt (mvo)
Changed in software-properties:
importance: Undecided → High
Revision history for this message
Michael Vogt (mvo) wrote :

Thanks for yur bugreport.

This should be fixed with the version 0.59.2. I would appreciate if you could give it some testing and let me know about the result.

Thanks,
 Michael

Changed in software-properties:
status: Unconfirmed → Fix Released
Revision history for this message
folkoy (pluron) wrote :

I tested using 0.59.3 the problem seems fixed. Thanks very much

I have two questions;
Q1 - I find strange that there is two exactly identical entry for CR-ROM. Line 2 and 4 are the same and this shows in the dialog box I put in attachment.;
1:#
2:# deb cdrom:[Ubuntu 7.04 _Feisty Fawn_ - Beta i386 (20070322.2)]/ feisty main restricted
3:deb-src http://archive.ubuntu.com/ubuntu/ feisty restricted main #Added by software-properties

4:deb cdrom:[Ubuntu 7.04 _Feisty Fawn_ - Beta i386 (20070322.2)]/ feisty main restricted
5:# See http://help.ubuntu.com/community/UpgradeNotes for how to upgrade to
6:# newer versions of the distribution.

These lines comes directly from feisty alternate-i386 install. It looks to me there is a problem? Why is there two identical lines?

Q2 - Why someone an option in software-properties-gtk is neither cleared or checked but is has a '-' in the box. If you click on it, it become a check mark. If you click again it becomes clear. If you click it becomes checkmark. So what does '-' meant? As a user I'm confused and I can't replace the button in the original setting '-' before leaving the dialog. So I don't know what changes are to be expected coming from that change. Does the tool put a '-' when it's not sure because of some inconsistency in the source.list file?

thanks again

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

Duplicates of this bug

Other bug subscribers

Bug attachments

Remote bug watches

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