add-apt-repository should have an option for adding only binary DEBs (without DEB-SRC)

Bug #1315422 reported by Tugdual de Kerviler
10
This bug affects 2 people
Affects Status Importance Assigned to Milestone
Charm Helpers
New
Undecided
Unassigned
software-properties (Ubuntu)
Confirmed
Wishlist
Unassigned

Bug Description

STEPS TO REPRODUCE:
  1. launch terminal
  2. add some repository (for example, proprietary Opera without source code) with
   sudo add-apt-repository 'deb http://deb.opera.com/opera/ stable non-free'
  3. update repositories with
   sudo apt-get update

EXPECTED RESULTS:
  Index files are updated, opera package may be installed with
    sudo apt-get install opera

ACTUAL RESULTS:
  Got error messages:
   W: Failed to fetch http://deb.opera.com/opera/dists/stable/Release Unable to find expected entry 'non-free/source/Sources' in Release file (Wrong sources.list entry or malformed file)

    E: Some index files failed to download. They have been ignored, or old ones used instead.

  Unable to install opera with
    sudo apt-get install opera
  Able to install opera after commenting out deb-src line.

Please add option to add-apt-repository for skipping deb-src line.

Norbert (nrbrtx)
summary: - Add apt-repository without sources
+ add-apt-repository should have an option for adding only binary DEBs
+ (without DEB-SRC)
Revision history for this message
Launchpad Janitor (janitor) wrote :

Status changed to 'Confirmed' because the bug affects multiple users.

Changed in software-properties (Ubuntu):
status: New → Confirmed
Norbert (nrbrtx)
description: updated
tags: added: precise
Changed in software-properties (Ubuntu):
importance: Undecided → Wishlist
Norbert (nrbrtx)
tags: removed: precise
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.