Quantal: Broken apt-index, cant fix dependencies

Posted by arcyqwerty on Ask Ubuntu See other posts from Ask Ubuntu or by arcyqwerty
Published on 2012-07-06T16:41:29Z Indexed on 2012/07/07 3:22 UTC
Read the original article Hit count: 1014

I can't seem to add/remove/update packages Ubuntu software update has a notice about partial upgrades but fails Seems to be similar to this problem

$ sudo apt-get update
Ign http://archive.ubuntu.com quantal InRelease
Ign http://security.ubuntu.com precise-security InRelease                   
Ign http://us.archive.ubuntu.com precise InRelease                          
Ign http://extras.ubuntu.com precise InRelease                              
Ign http://us.archive.ubuntu.com precise-updates InRelease                  
Ign http://us.archive.ubuntu.com precise-backports InRelease                
Ign http://ppa.launchpad.net precise InRelease                              
Ign http://archive.canonical.com precise InRelease                          
Ign http://ppa.launchpad.net precise InRelease                              
Ign http://ppa.launchpad.net precise InRelease                              
Hit http://archive.ubuntu.com quantal Release.gpg                           
Get:1 http://security.ubuntu.com precise-security Release.gpg [198 B]       
Hit http://extras.ubuntu.com precise Release.gpg                            
Get:2 http://us.archive.ubuntu.com precise Release.gpg [198 B]              
Get:3 http://us.archive.ubuntu.com precise-updates Release.gpg [198 B]      
Hit http://archive.canonical.com precise Release.gpg                        
Hit http://ppa.launchpad.net precise Release.gpg                            
Hit http://ppa.launchpad.net precise Release.gpg                            
Hit http://archive.ubuntu.com quantal Release                               
Get:4 http://security.ubuntu.com precise-security Release [49.6 kB]         
Get:5 http://us.archive.ubuntu.com precise-backports Release.gpg [198 B]    
Get:6 http://us.archive.ubuntu.com precise Release [49.6 kB]                
Hit http://extras.ubuntu.com precise Release                                
Hit http://archive.canonical.com precise Release                            
Hit http://ppa.launchpad.net precise Release.gpg                            
Hit http://ppa.launchpad.net precise Release                                
Hit http://archive.ubuntu.com quantal/main amd64 Packages                   
Hit http://extras.ubuntu.com precise/main Sources                           
Hit http://archive.canonical.com precise/partner Sources                    
Hit http://ppa.launchpad.net precise Release                                
Hit http://ppa.launchpad.net precise Release                                
Get:7 http://us.archive.ubuntu.com precise-updates Release [49.6 kB]        
Hit http://extras.ubuntu.com precise/main amd64 Packages                    
Hit http://extras.ubuntu.com precise/main i386 Packages                     
Hit http://archive.ubuntu.com quantal/main i386 Packages                    
Hit http://archive.ubuntu.com quantal/main Translation-en                   
Hit http://archive.canonical.com precise/partner amd64 Packages             
Hit http://archive.canonical.com precise/partner i386 Packages              
Hit http://ppa.launchpad.net precise/main Sources                           
Hit http://ppa.launchpad.net precise/main amd64 Packages                    
Hit http://ppa.launchpad.net precise/main i386 Packages                     
Get:8 http://us.archive.ubuntu.com precise-backports Release [49.6 kB]      
Hit http://ppa.launchpad.net precise/main Sources                           
Get:9 http://security.ubuntu.com precise-security/main Sources [22.5 kB]    
Hit http://ppa.launchpad.net precise/main amd64 Packages                    
Hit http://ppa.launchpad.net precise/main i386 Packages                     
Hit http://ppa.launchpad.net precise/main Sources                           
Hit http://ppa.launchpad.net precise/main amd64 Packages                    
Hit http://ppa.launchpad.net precise/main i386 Packages                     
Get:10 http://us.archive.ubuntu.com precise/main Sources [934 kB]           
Get:11 http://security.ubuntu.com precise-security/restricted Sources [14 B]
Get:12 http://security.ubuntu.com precise-security/universe Sources [7,832 B]
Ign http://archive.ubuntu.com quantal/main Translation-en_US                
Get:13 http://security.ubuntu.com precise-security/multiverse Sources [713 B]
Get:14 http://security.ubuntu.com precise-security/main amd64 Packages [67.8 kB]
Ign http://archive.canonical.com precise/partner Translation-en_US          
Get:15 http://security.ubuntu.com precise-security/restricted amd64 Packages [14 B]
Get:16 http://security.ubuntu.com precise-security/universe amd64 Packages [18.8 kB]
Ign http://extras.ubuntu.com precise/main Translation-en_US                 
Ign http://archive.canonical.com precise/partner Translation-en             
Get:17 http://security.ubuntu.com precise-security/multiverse amd64 Packages [1,155 B]
Get:18 http://security.ubuntu.com precise-security/main i386 Packages [70.2 kB]
Ign http://extras.ubuntu.com precise/main Translation-en                    
Ign http://ppa.launchpad.net precise/main Translation-en_US                 
Get:19 http://security.ubuntu.com precise-security/restricted i386 Packages [14 B]
Get:20 http://security.ubuntu.com precise-security/universe i386 Packages [19.0 kB]
Get:21 http://security.ubuntu.com precise-security/multiverse i386 Packages [1,394 B]
Ign http://ppa.launchpad.net precise/main Translation-en                    
Hit http://security.ubuntu.com precise-security/main Translation-en         
Hit http://security.ubuntu.com precise-security/multiverse Translation-en
Hit http://security.ubuntu.com precise-security/restricted Translation-en
Ign http://ppa.launchpad.net precise/main Translation-en_US                 
Ign http://ppa.launchpad.net precise/main Translation-en                    
Ign http://ppa.launchpad.net precise/main Translation-en_US                 
Ign http://ppa.launchpad.net precise/main Translation-en                    
Hit http://security.ubuntu.com precise-security/universe Translation-en     
Ign http://security.ubuntu.com precise-security/main Translation-en_US
Ign http://security.ubuntu.com precise-security/multiverse Translation-en_US
Ign http://security.ubuntu.com precise-security/restricted Translation-en_US
Ign http://security.ubuntu.com precise-security/universe Translation-en_US
Get:22 http://us.archive.ubuntu.com precise/restricted Sources [5,470 B]
Get:23 http://us.archive.ubuntu.com precise/universe Sources [5,019 kB]
Get:24 http://us.archive.ubuntu.com precise/multiverse Sources [155 kB]     
Get:25 http://us.archive.ubuntu.com precise/main amd64 Packages [1,273 kB]  
Get:26 http://us.archive.ubuntu.com precise/restricted amd64 Packages [8,452 B]
Get:27 http://us.archive.ubuntu.com precise/universe amd64 Packages [4,786 kB]
Get:28 http://us.archive.ubuntu.com precise/multiverse amd64 Packages [119 kB]
Get:29 http://us.archive.ubuntu.com precise/main i386 Packages [1,274 kB]   
Get:30 http://us.archive.ubuntu.com precise/restricted i386 Packages [8,431 B]
Get:31 http://us.archive.ubuntu.com precise/universe i386 Packages [4,796 kB]
Get:32 http://us.archive.ubuntu.com precise/multiverse i386 Packages [121 kB]
Hit http://us.archive.ubuntu.com precise/main Translation-en                
Hit http://us.archive.ubuntu.com precise/multiverse Translation-en          
Hit http://us.archive.ubuntu.com precise/restricted Translation-en          
Hit http://us.archive.ubuntu.com precise/universe Translation-en            
Get:33 http://us.archive.ubuntu.com precise-updates/main Sources [124 kB]   
Get:34 http://us.archive.ubuntu.com precise-updates/restricted Sources [1,379 B]
Get:35 http://us.archive.ubuntu.com precise-updates/universe Sources [30.9 kB]
Get:36 http://us.archive.ubuntu.com precise-updates/multiverse Sources [1,058 B]
Get:37 http://us.archive.ubuntu.com precise-updates/main amd64 Packages [311 kB]
Get:38 http://us.archive.ubuntu.com precise-updates/restricted amd64 Packages [2,417 B]
Get:39 http://us.archive.ubuntu.com precise-updates/universe amd64 Packages [85.4 kB]
Get:40 http://us.archive.ubuntu.com precise-updates/multiverse amd64 Packages [1,829 B]
Get:41 http://us.archive.ubuntu.com precise-updates/main i386 Packages [314 kB]
Get:42 http://us.archive.ubuntu.com precise-updates/restricted i386 Packages [2,439 B]
Get:43 http://us.archive.ubuntu.com precise-updates/universe i386 Packages [85.9 kB]
Get:44 http://us.archive.ubuntu.com precise-updates/multiverse i386 Packages [2,047 B]
Hit http://us.archive.ubuntu.com precise-updates/main Translation-en        
Hit http://us.archive.ubuntu.com precise-updates/multiverse Translation-en  
Hit http://us.archive.ubuntu.com precise-updates/restricted Translation-en  
Hit http://us.archive.ubuntu.com precise-updates/universe Translation-en    
Get:45 http://us.archive.ubuntu.com precise-backports/main Sources [1,845 B]
Get:46 http://us.archive.ubuntu.com precise-backports/restricted Sources [14 B]
Get:47 http://us.archive.ubuntu.com precise-backports/universe Sources [11.1 kB]
Get:48 http://us.archive.ubuntu.com precise-backports/multiverse Sources [1,383 B]
Get:49 http://us.archive.ubuntu.com precise-backports/main amd64 Packages [1,271 B]
Get:50 http://us.archive.ubuntu.com precise-backports/restricted amd64 Packages [14 B]
Get:51 http://us.archive.ubuntu.com precise-backports/universe amd64 Packages [9,701 B]
Get:52 http://us.archive.ubuntu.com precise-backports/multiverse amd64 Packages [996 B]
Get:53 http://us.archive.ubuntu.com precise-backports/main i386 Packages [1,271 B]
Get:54 http://us.archive.ubuntu.com precise-backports/restricted i386 Packages [14 B]
Get:55 http://us.archive.ubuntu.com precise-backports/universe i386 Packages [9,703 B]
Get:56 http://us.archive.ubuntu.com precise-backports/multiverse i386 Packages [999 B]
Hit http://us.archive.ubuntu.com precise-backports/main Translation-en      
Hit http://us.archive.ubuntu.com precise-backports/multiverse Translation-en
Hit http://us.archive.ubuntu.com precise-backports/restricted Translation-en
Hit http://us.archive.ubuntu.com precise-backports/universe Translation-en  
Ign http://us.archive.ubuntu.com precise/main Translation-en_US             
Ign http://us.archive.ubuntu.com precise/multiverse Translation-en_US       
Ign http://us.archive.ubuntu.com precise/restricted Translation-en_US       
Ign http://us.archive.ubuntu.com precise/universe Translation-en_US         
Ign http://us.archive.ubuntu.com precise-updates/main Translation-en_US     
Ign http://us.archive.ubuntu.com precise-updates/multiverse Translation-en_US
Ign http://us.archive.ubuntu.com precise-updates/restricted Translation-en_US
Ign http://us.archive.ubuntu.com precise-updates/universe Translation-en_US 
Ign http://us.archive.ubuntu.com precise-backports/main Translation-en_US   
Ign http://us.archive.ubuntu.com precise-backports/multiverse Translation-en_US
Ign http://us.archive.ubuntu.com precise-backports/restricted Translation-en_US
Ign http://us.archive.ubuntu.com precise-backports/universe Translation-en_US
Fetched 19.9 MB in 34s (571 kB/s)                                           
Reading package lists... Done
$ sudo apt-get upgrade
Reading package lists... Done
Building dependency tree       
Reading state information... Done
You might want to run 'apt-get -f install' to correct these.
The following packages have unmet dependencies:
 netbase : Breaks: ifupdown (< 0.7)
           Breaks: ifupdown:i386 (< 0.7)
E: Unmet dependencies. Try using -f.
$ sudo apt-get -f install
Reading package lists... Done
Building dependency tree       
Reading state information... Done
Correcting dependencies... Done
The following packages were automatically installed and are no longer required:
  dh-apparmor html2text libmail-sendmail-perl libsys-hostname-long-perl
Use 'apt-get autoremove' to remove them.
The following extra packages will be installed:
  ifupdown
Suggested packages:
  rdnssd
The following packages will be upgraded:
  ifupdown
1 upgraded, 0 newly installed, 0 to remove and 1179 not upgraded.
85 not fully installed or removed.
Need to get 0 B/54.1 kB of archives.
After this operation, 19.5 kB of additional disk space will be used.
Do you want to continue [Y/n]? 
(Reading database ... 222498 files and directories currently installed.)
Preparing to replace ifupdown 0.7~beta2ubuntu8 (using .../ifupdown_0.7.1ubuntu1_amd64.deb) ...
Unpacking replacement ifupdown ...
dpkg: error processing /var/cache/apt/archives/ifupdown_0.7.1ubuntu1_amd64.deb (--unpack):
 trying to overwrite '/etc/init.d/networking', which is also in package netbase 5.0ubuntu1
Processing triggers for man-db ...
Processing triggers for ureadahead ...
Errors were encountered while processing:
 /var/cache/apt/archives/ifupdown_0.7.1ubuntu1_amd64.deb
E: Sub-process /usr/bin/dpkg returned an error code (1)

cat /etc/apt/sources.list

# deb cdrom:[Ubuntu 12.04 LTS _Precise Pangolin_ - Release amd64 (20120425)]/ dists/precise/main/binary-i386/

# deb cdrom:[Ubuntu 12.04 LTS _Precise Pangolin_ - Release amd64 (20120425)]/ dists/precise/restricted/binary-i386/
# deb cdrom:[Ubuntu 12.04 LTS _Precise Pangolin_ - Release amd64 (20120425)]/ precise main restricted

# See http://help.ubuntu.com/community/UpgradeNotes for how to upgrade to
# newer versions of the distribution.
deb http://us.archive.ubuntu.com/ubuntu/ precise main restricted
deb-src http://us.archive.ubuntu.com/ubuntu/ precise main restricted

## Major bug fix updates produced after the final release of the
## distribution.
deb http://us.archive.ubuntu.com/ubuntu/ precise-updates main restricted
deb-src http://us.archive.ubuntu.com/ubuntu/ precise-updates main restricted

## N.B. software from this repository is ENTIRELY UNSUPPORTED by the Ubuntu
## team. Also, please note that software in universe WILL NOT receive any
## review or updates from the Ubuntu security team.
deb http://us.archive.ubuntu.com/ubuntu/ precise universe
deb-src http://us.archive.ubuntu.com/ubuntu/ precise universe
deb http://us.archive.ubuntu.com/ubuntu/ precise-updates universe
deb-src http://us.archive.ubuntu.com/ubuntu/ precise-updates universe

## N.B. software from this repository is ENTIRELY UNSUPPORTED by the Ubuntu
## team, and may not be under a free licence. Please satisfy yourself as to
## your rights to use the software. Also, please note that software in
## multiverse WILL NOT receive any review or updates from the Ubuntu
## security team.
deb http://us.archive.ubuntu.com/ubuntu/ precise multiverse
deb-src http://us.archive.ubuntu.com/ubuntu/ precise multiverse
deb http://us.archive.ubuntu.com/ubuntu/ precise-updates multiverse
deb-src http://us.archive.ubuntu.com/ubuntu/ precise-updates multiverse

## N.B. software from this repository may not have been tested as
## extensively as that contained in the main release, although it includes
## newer versions of some applications which may provide useful features.
## Also, please note that software in backports WILL NOT receive any review
## or updates from the Ubuntu security team.
deb http://us.archive.ubuntu.com/ubuntu/ precise-backports main restricted universe multiverse
deb-src http://us.archive.ubuntu.com/ubuntu/ precise-backports main restricted universe multiverse

deb http://security.ubuntu.com/ubuntu precise-security main restricted
deb-src http://security.ubuntu.com/ubuntu precise-security main restricted
deb http://security.ubuntu.com/ubuntu precise-security universe
deb-src http://security.ubuntu.com/ubuntu precise-security universe
deb http://security.ubuntu.com/ubuntu precise-security multiverse
deb-src http://security.ubuntu.com/ubuntu precise-security multiverse

## Uncomment the following two lines to add software from Canonical's
## 'partner' repository.
## This software is not part of Ubuntu, but is offered by Canonical and the
## respective vendors as a service to Ubuntu users.
deb http://archive.canonical.com/ubuntu precise partner
deb-src http://archive.canonical.com/ubuntu precise partner

## This software is not part of Ubuntu, but is offered by third-party
## developers who want to ship their latest software.
deb http://extras.ubuntu.com/ubuntu precise main
deb-src http://extras.ubuntu.com/ubuntu precise main
deb http://archive.ubuntu.com/ubuntu/ quantal main

© Ask Ubuntu or respective owner

Related posts about upgrade

Related posts about apt