Gives up completely if /etc/apt/sources.d/ contains a malformed file

Bug #633316 reported by Matthew Paul Thomas
8
This bug affects 1 person
Affects Status Importance Assigned to Milestone
update-manager (Ubuntu)
New
Undecided
Unassigned

Bug Description

1. echo "deb http://ppa.launchpad.net/tualatrix/ppa/ubuntu main" | sudo tee /etc/apt/sources.list.d/ubuntu-tweak-stable.list
2. update-manager

What happens:
* An error alert appears saying: "Could not initialize the package information" "An 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 1 in source list /etc/apt/sources.list.d/ubuntu-tweak-stable.list (dist parse)'
* Update Manager exits without letting you fix the problem.

What should happen:
* An error alert appears saying something like: "Some software channel settings are incorrect and will be ignored." "Details: Malformed line 1 in source list /etc/apt/sources.list.d/ubuntu-tweak-stable.list (dist parse)"
* Update Manager stays open.

The equivalent problem in Ubuntu Software Center is bug 633626, and in Synaptic is bug 633630.

Revision history for this message
Matthew Paul Thomas (mpt) wrote :
Revision history for this message
Matthew Paul Thomas (mpt) wrote :
Revision history for this message
Jean-Baptiste Lallement (jibel) wrote :

Thanks for your report.

What the output of:
apt-get upgrade --simulate

Thanks in advance.

Changed in update-manager (Ubuntu):
status: New → Incomplete
Revision history for this message
Matthew Paul Thomas (mpt) wrote :

On launching Update Manager, another error alert appears:
------------
 Could not initialize the package information
An 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 1 in source list /etc/apt/sources.list.d/ubuntu-tweak-stable.list (dist parse)'

Changed in update-manager (Ubuntu):
status: Incomplete → New
Revision history for this message
Jean-Baptiste Lallement (jibel) wrote :

Thank you for the source list. The release is missing from the line:
deb http://ppa.launchpad.net/tualatrix/ppa/ubuntu main

Since your using maverick it should be:
deb http://ppa.launchpad.net/tualatrix/ppa/ubuntu maverick main

I'm closing this report because it's not a bug but don't hesitate to reopen if you don't think it is the issue you're experiencing.

Changed in update-manager (Ubuntu):
status: New → Invalid
description: updated
summary: - "Could not initialize the package information" when updating
+ Gives up completely if /etc/apt/sources.d/ contains a malformed file
Changed in update-manager (Ubuntu):
status: Invalid → New
description: updated
Revision history for this message
Robert Roth (evfool) wrote :

Thank you for taking the time to report this bug and helping to make Ubuntu better. This particular bug has already been reported and is a duplicate of bug #108601, so it is being marked as such. Please look at the other bug report to see if there is any missing information that you can provide, or to see if there is a workaround for the bug. Additionally, any further discussion regarding the bug should occur in the other report. Feel free to continue to report any other bugs you may find.
---
Ubuntu Bug Squad volunteer triager
http://wiki.ubuntu.com/BugSquad

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.