apt-get source wrongly reports an error when there are no deb-src lines in /etc/apt/sources.list

Bug #1451692 reported by Richard Salts
6
This bug affects 1 person
Affects Status Importance Assigned to Milestone
apt (Ubuntu)
New
Undecided
Unassigned

Bug Description

If you configure deb-src lines in /etc/apt/sources.list.d/*.list but there is no entry in /etc/apt/sources.list then apt-get source behaves as follows:
apt-get source openldap
Reading package lists... Done
Building dependency tree
Reading state information... Done
E: You must put some 'source' URIs in your sources.list

This happened on trusty with apt 1.0.1ubuntu2.7

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.