← Back to team overview

touch-packages team mailing list archive

[Bug 1315422] Re: Add apt-repository without sources

 

** Also affects: software-properties (Ubuntu)
   Importance: Undecided
       Status: New

** Summary changed:

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

-- 
You received this bug notification because you are a member of Ubuntu
Touch seeded packages, which is subscribed to software-properties in
Ubuntu.
https://bugs.launchpad.net/bugs/1315422

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

Status in Charm Helpers:
  New
Status in software-properties package in Ubuntu:
  Confirmed

Bug description:
  I tried to set source and key options for mongodb charm (which uses
  charm-helpers) to install 10gen's package but I get an error at
  install because add-apt-repository adds a `deb-src` entry in
  `/etc/apt/sources.list`

  here is the output:

  shard1/0:install % hooks/install 
  Reading package lists... Done
  Building dependency tree       
  Reading state information... Done
  python-yaml is already the newest version.
  0 upgraded, 0 newly installed, 0 to remove and 31 not upgraded.
  Executing: gpg --ignore-time-conflict --no-options --no-default-keyring --secret-keyring /tmp/tmp.UMPoZpE3Xv --trustdb-name /etc/apt/trustdb.gpg --keyring /etc/apt/trusted.gpg --primary-keyring /etc/apt/trusted.gpg --keyserver keyserver.ubuntu.com --recv 7F0CEB10
  gpg: requesting key 7F0CEB10 from hkp server keyserver.ubuntu.com
  gpg: key 7F0CEB10: "Richard Kreuter <richard@xxxxxxxxx>" not changed
  gpg: Total number processed: 1
  gpg:              unchanged: 1
  Hit http://eu-west-1.ec2.archive.ubuntu.com precise Release.gpg
  Hit http://eu-west-1.ec2.archive.ubuntu.com precise-updates Release.gpg                                                                                                      
  Hit http://eu-west-1.ec2.archive.ubuntu.com precise Release                                                                                                                  
  Hit http://security.ubuntu.com precise-security Release.gpg                                                                                             
  Hit http://eu-west-1.ec2.archive.ubuntu.com precise-updates Release                                                                                     
  Hit http://security.ubuntu.com precise-security Release                                                                          
  Hit http://ubuntu-cloud.archive.canonical.com precise-updates/cloud-tools Release.gpg                                            
  Hit http://eu-west-1.ec2.archive.ubuntu.com precise/main Sources                                                                  
  Hit http://ubuntu-cloud.archive.canonical.com precise-updates/cloud-tools Release                                                 
  Hit http://eu-west-1.ec2.archive.ubuntu.com precise/universe Sources                                                              
  Hit http://eu-west-1.ec2.archive.ubuntu.com precise/main amd64 Packages                                                           
  Hit http://security.ubuntu.com precise-security/main Sources                                                                      
  Hit http://eu-west-1.ec2.archive.ubuntu.com precise/universe amd64 Packages                                                       
  Hit http://eu-west-1.ec2.archive.ubuntu.com precise/main i386 Packages                                                           
  Hit http://eu-west-1.ec2.archive.ubuntu.com precise/universe i386 Packages                                                       
  Hit http://security.ubuntu.com precise-security/universe Sources                                                                 
  Hit http://ubuntu-cloud.archive.canonical.com precise-updates/cloud-tools/main Sources                                           
  Hit http://eu-west-1.ec2.archive.ubuntu.com precise/main TranslationIndex                                                        
  Hit http://eu-west-1.ec2.archive.ubuntu.com precise/universe TranslationIndex                                                    
  Hit http://security.ubuntu.com precise-security/main amd64 Packages                                                              
  Hit http://ubuntu-cloud.archive.canonical.com precise-updates/cloud-tools/main amd64 Packages
  Hit http://eu-west-1.ec2.archive.ubuntu.com precise-updates/main Sources                   
  Hit http://eu-west-1.ec2.archive.ubuntu.com precise-updates/universe Sources               
  Hit http://ubuntu-cloud.archive.canonical.com precise-updates/cloud-tools/main i386 Packages
  Hit http://security.ubuntu.com precise-security/universe amd64 Packages                    
  Hit http://eu-west-1.ec2.archive.ubuntu.com precise-updates/main amd64 Packages            
  Ign http://ubuntu-cloud.archive.canonical.com precise-updates/cloud-tools/main TranslationIndex
  Hit http://eu-west-1.ec2.archive.ubuntu.com precise-updates/universe amd64 Packages        
  Hit http://security.ubuntu.com precise-security/main i386 Packages                         
  Hit http://eu-west-1.ec2.archive.ubuntu.com precise-updates/main i386 Packages             
  Hit http://security.ubuntu.com precise-security/universe i386 Packages                     
  Hit http://eu-west-1.ec2.archive.ubuntu.com precise-updates/universe i386 Packages         
  Hit http://eu-west-1.ec2.archive.ubuntu.com precise-updates/main TranslationIndex          
  Hit http://security.ubuntu.com precise-security/main TranslationIndex                      
  Hit http://eu-west-1.ec2.archive.ubuntu.com precise-updates/universe TranslationIndex      
  Hit http://eu-west-1.ec2.archive.ubuntu.com precise/main Translation-en                    
  Hit http://eu-west-1.ec2.archive.ubuntu.com precise/universe Translation-en                
  Hit http://security.ubuntu.com precise-security/universe TranslationIndex                  
  Hit http://eu-west-1.ec2.archive.ubuntu.com precise-updates/main Translation-en            
  Hit http://eu-west-1.ec2.archive.ubuntu.com precise-updates/universe Translation-en        
  Hit http://downloads-distro.mongodb.org dist Release.gpg                                   
  Hit http://security.ubuntu.com precise-security/main Translation-en  
  Hit http://security.ubuntu.com precise-security/universe Translation-en              
  Ign http://ubuntu-cloud.archive.canonical.com precise-updates/cloud-tools/main Translation-en_US
  Ign http://ubuntu-cloud.archive.canonical.com precise-updates/cloud-tools/main Translation-en
  Hit http://downloads-distro.mongodb.org dist Release           
  W: Failed to fetch http://downloads-distro.mongodb.org/repo/ubuntu-upstart/dists/dist/Release  Unable to find expected entry '10gen/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.
  Traceback (most recent call last):
    File "hooks/hooks.py", line 1494, in <module>
      retVal = install_hook()
    File "hooks/hooks.py", line 907, in install_hook
      apt_update(fatal=True)
    File "/var/lib/juju/agents/unit-shard1-0/charm/hooks/charmhelpers/fetch/__init__.py", line 127, in apt_update
      subprocess.check_call(cmd)
    File "/usr/lib/python2.7/subprocess.py", line 511, in check_call
      raise CalledProcessError(retcode, cmd)
  subprocess.CalledProcessError: Command '['apt-get', 'update']' returned non-zero exit status 100

To manage notifications about this bug go to:
https://bugs.launchpad.net/charm-helpers/+bug/1315422/+subscriptions