Bad call to configure_sources corrupts sources.list and triggers fail loop.

Bug #1398051 reported by Stuart Bishop
6
This bug affects 1 person
Affects Status Importance Assigned to Milestone
Charm Helpers
New
Undecided
Unassigned

Bug Description

If you call fetch.configure_sources with an invalid 'deb ...' line, it is put into sources.list without validation. This throws 'apt-get update' into an infinite loop.

2014-12-01 15:47:20 INFO install E: Malformed line 60 in source list /etc/apt/sources.list (dist parse)
2014-12-01 15:47:20 INFO install E: The list of sources could not be read.
2014-12-01 15:47:20 INFO juju-log Couldn't acquire DPKG lock. Will retry in 10 seconds.
2014-12-01 15:47:30 INFO install E: Malformed line 60 in source list /etc/apt/sources.list (dist parse)
2014-12-01 15:47:30 INFO install E: The list of sources could not be read.
2014-12-01 15:47:30 INFO juju-log Couldn't acquire DPKG lock. Will retry in 10 seconds.

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.