Announcement

Collapse
No announcement yet.

I really borked my 'apt'

Collapse
This topic is closed.
X
X
 
  • Filter
  • Time
  • Show
Clear All
new posts

    I really borked my 'apt'

    I had the following problem. Tried to do a regular update as normal, and ran into a big snag:

    Code:
    root@dpich-M6400:/home/dpich/Documents# apt-get -f install ; apt-get update ; apt-get upgrade -y ; apt-get dist-upgrade -y ; apt-get autoclean ; apt-get autoremove
    Reading package lists... Done
    Building dependency tree       
    Reading state information... Done
    Correcting dependencies... Done
    The following extra packages will be installed:
      libapt-pkg4.12:i386
    The following packages will be upgraded:
      libapt-pkg4.12:i386
    1 upgraded, 0 newly installed, 0 to remove and 5 not upgraded.
    1 not fully installed or removed.
    Need to get 0 B/941 kB of archives.
    After this operation, 0 B of additional disk space will be used.
    Do you want to continue [Y/n]? y
    E: Internal Error, No file name for libapt-pkg4.12
    Hit http://download.virtualbox.org precise InRelease
    Ign http://us.archive.ubuntu.com precise InRelease                                                                                                      
    Ign http://us.archive.ubuntu.com precise-updates InRelease                                                                                              
    Ign http://us.archive.ubuntu.com precise-backports InRelease                                                                                            
    Hit http://us.archive.ubuntu.com precise Release.gpg                                                                                                    
    Hit http://us.archive.ubuntu.com precise-updates Release.gpg                                                                                            
    Hit http://download.virtualbox.org precise/contrib amd64 Packages                                                                                       
    Hit http://us.archive.ubuntu.com precise-backports Release.gpg                                                                         
    Hit http://us.archive.ubuntu.com precise Release                                                                                                        
    Hit http://download.virtualbox.org precise/contrib i386 Packages                                                                                        
    Ign http://security.ubuntu.com precise-security InRelease                                                                                               
    Ign http://archive.canonical.com precise InRelease                                                                                                      
    Ign http://extras.ubuntu.com precise InRelease                                                                                                          
    Ign http://ppa.launchpad.net precise InRelease                                                                                                          
    Ign http://ppa.launchpad.net precise InRelease                                                                                                          
    Ign http://ppa.launchpad.net precise InRelease                                                                                                          
    Hit http://us.archive.ubuntu.com precise-updates Release                                                                                                
    Hit http://us.archive.ubuntu.com precise-backports Release                                                                                              
    Ign http://download.virtualbox.org precise/contrib TranslationIndex                                                                                     
    Hit http://us.archive.ubuntu.com precise/main Sources                                                                                                   
    Hit http://us.archive.ubuntu.com precise/restricted Sources                                                                                             
    Hit http://us.archive.ubuntu.com precise/universe Sources                                                                                               
    Hit http://us.archive.ubuntu.com precise/multiverse Sources                                                                                             
    Hit http://us.archive.ubuntu.com precise/main amd64 Packages                                                                                            
    Hit http://us.archive.ubuntu.com precise/restricted amd64 Packages                                                                                      
    Hit http://us.archive.ubuntu.com precise/universe amd64 Packages                                                                                        
    Hit http://security.ubuntu.com precise-security Release.gpg                                                                                             
    Hit http://archive.canonical.com precise Release.gpg                                                                                                    
    Ign http://ppa.launchpad.net precise InRelease                                                                                         
    Hit http://extras.ubuntu.com precise Release.gpg                                                                                       
    Hit http://ppa.launchpad.net precise Release.gpg                                                                                       
    Hit http://ppa.launchpad.net precise Release.gpg                                                                                                        
    Hit http://us.archive.ubuntu.com precise/multiverse amd64 Packages                                                                                      
    Hit http://us.archive.ubuntu.com precise/main i386 Packages                                                                                             
    Hit http://us.archive.ubuntu.com precise/restricted i386 Packages                                                                                       
    Hit http://us.archive.ubuntu.com precise/universe i386 Packages                                                                                         
    Hit http://us.archive.ubuntu.com precise/multiverse i386 Packages                                                                                       
    Hit http://us.archive.ubuntu.com precise/main TranslationIndex                                                                                          
    Hit http://us.archive.ubuntu.com precise/multiverse TranslationIndex                                                                                    
    Hit http://us.archive.ubuntu.com precise/restricted TranslationIndex                                                                                    
    Hit http://us.archive.ubuntu.com precise/universe TranslationIndex                                                                                      
    Hit http://us.archive.ubuntu.com precise-updates/main Sources                                                                                           
    Hit http://us.archive.ubuntu.com precise-updates/restricted Sources                                                                                     
    Hit http://us.archive.ubuntu.com precise-updates/universe Sources                                                                                       
    Hit http://us.archive.ubuntu.com precise-updates/multiverse Sources                                                                                     
    Hit http://us.archive.ubuntu.com precise-updates/main amd64 Packages                                                                                    
    Hit http://us.archive.ubuntu.com precise-updates/restricted amd64 Packages                                                                              
    Hit http://us.archive.ubuntu.com precise-updates/universe amd64 Packages                                                                                
    Hit http://us.archive.ubuntu.com precise-updates/multiverse amd64 Packages                                                                              
    Hit http://us.archive.ubuntu.com precise-updates/main i386 Packages                                                                                     
    Hit http://security.ubuntu.com precise-security Release                                                                                                 
    Hit http://us.archive.ubuntu.com precise-updates/restricted i386 Packages                                                                               
    Hit http://us.archive.ubuntu.com precise-updates/universe i386 Packages                                                                
    Hit http://us.archive.ubuntu.com precise-updates/multiverse i386 Packages                                                                               
    Hit http://us.archive.ubuntu.com precise-updates/main TranslationIndex                                                                                  
    Hit http://us.archive.ubuntu.com precise-updates/multiverse TranslationIndex                                                                            
    Hit http://archive.canonical.com precise Release                                                                                                        
    Hit http://ppa.launchpad.net precise Release.gpg                                                                                                        
    Hit http://extras.ubuntu.com precise Release                                                                                            
    Hit http://us.archive.ubuntu.com precise-updates/restricted TranslationIndex                                                                            
    Hit http://us.archive.ubuntu.com precise-updates/universe TranslationIndex                                                                              
    Hit http://us.archive.ubuntu.com precise-backports/main Sources                                                                                         
    Hit http://us.archive.ubuntu.com precise-backports/restricted Sources                                                                                   
    Hit http://us.archive.ubuntu.com precise-backports/universe Sources                                                                                     
    Hit http://us.archive.ubuntu.com precise-backports/multiverse Sources                                                                                   
    Hit http://us.archive.ubuntu.com precise-backports/main amd64 Packages                                                                                  
    Hit http://us.archive.ubuntu.com precise-backports/restricted amd64 Packages                                                                            
    Hit http://us.archive.ubuntu.com precise-backports/universe amd64 Packages                                                                              
    Hit http://us.archive.ubuntu.com precise-backports/multiverse amd64 Packages                                                                            
    Hit http://us.archive.ubuntu.com precise-backports/main i386 Packages                                                                                   
    Hit http://us.archive.ubuntu.com precise-backports/restricted i386 Packages                                                                             
    Hit http://us.archive.ubuntu.com precise-backports/universe i386 Packages                                                                               
    Hit http://us.archive.ubuntu.com precise-backports/multiverse i386 Packages                                                                             
    Hit http://us.archive.ubuntu.com precise-backports/main TranslationIndex                                                                                
    Hit http://ppa.launchpad.net precise Release.gpg                                                                                                        
    Hit http://ppa.launchpad.net precise Release                                                                                                            
    Hit http://security.ubuntu.com precise-security/main Sources                                                                                            
    Hit http://archive.canonical.com precise/partner Sources                                                                                                
    Hit http://extras.ubuntu.com precise/main Sources                                                                                                       
    Hit http://us.archive.ubuntu.com precise-backports/multiverse TranslationIndex                                                         
    Hit http://us.archive.ubuntu.com precise-backports/restricted TranslationIndex                                                                          
    Hit http://us.archive.ubuntu.com precise-backports/universe TranslationIndex                                                                            
    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                                                                                        
    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://ppa.launchpad.net precise Release                                                                                                            
    Hit http://security.ubuntu.com precise-security/restricted Sources                                                                                      
    Hit http://security.ubuntu.com precise-security/universe Sources                                                                                        
    Hit http://security.ubuntu.com precise-security/multiverse Sources                                                                                      
    Hit http://security.ubuntu.com precise-security/main amd64 Packages                                                                                     
    Hit http://security.ubuntu.com precise-security/restricted amd64 Packages                                                                               
    Hit http://security.ubuntu.com precise-security/universe amd64 Packages                                                                                 
    Hit http://security.ubuntu.com precise-security/multiverse amd64 Packages                                                                               
    Hit http://security.ubuntu.com precise-security/main i386 Packages                                                                                      
    Hit http://security.ubuntu.com precise-security/restricted i386 Packages                                                                                
    Hit http://security.ubuntu.com precise-security/universe i386 Packages                                                                                  
    Hit http://archive.canonical.com precise/partner amd64 Packages                                                                                         
    Hit http://archive.canonical.com precise/partner i386 Packages                                                                                          
    Ign http://archive.canonical.com precise/partner TranslationIndex                                                                                       
    Hit http://us.archive.ubuntu.com precise-updates/universe Translation-en                                                                                
    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                                                                              
    Hit http://extras.ubuntu.com precise/main amd64 Packages                                                                                                
    Hit http://extras.ubuntu.com precise/main i386 Packages                                                                                
    Ign http://extras.ubuntu.com precise/main TranslationIndex                                                                             
    Ign http://download.virtualbox.org precise/contrib Translation-en_US                                                                   
    Ign http://download.virtualbox.org precise/contrib Translation-en                                                
    Hit http://ppa.launchpad.net precise Release                                                                     
    Hit http://ppa.launchpad.net precise Release                                                                     
    Hit http://security.ubuntu.com precise-security/multiverse i386 Packages                                         
    Hit http://ppa.launchpad.net precise/main Sources                                                                                       
    Hit http://security.ubuntu.com precise-security/main TranslationIndex                                            
    Hit http://security.ubuntu.com precise-security/multiverse TranslationIndex                                      
    Hit http://security.ubuntu.com precise-security/restricted TranslationIndex                                      
    Hit http://ppa.launchpad.net precise/main amd64 Packages                                                         
    Hit http://ppa.launchpad.net precise/main i386 Packages                                                          
    Ign http://ppa.launchpad.net precise/main TranslationIndex                                                       
    Hit http://security.ubuntu.com precise-security/universe TranslationIndex                                        
    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                                                          
    Ign http://ppa.launchpad.net precise/main TranslationIndex                                                       
    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                                        
    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                                                          
    Ign http://ppa.launchpad.net precise/main TranslationIndex                                                       
    Hit http://ppa.launchpad.net precise/main Sources                                                                
    Ign http://archive.getdeb.net precise-getdeb InRelease                                                           
    Hit http://ppa.launchpad.net precise/main amd64 Packages                                   
    Hit http://security.ubuntu.com precise-security/universe Translation-en                                                                        
    Hit http://ppa.launchpad.net precise/main i386 Packages                                                                                        
    Ign http://ppa.launchpad.net precise/main TranslationIndex                                                               
    Ign http://archive.canonical.com precise/partner Translation-en_US                                                       
    Ign http://extras.ubuntu.com precise/main Translation-en_US                                
    Hit http://archive.getdeb.net precise-getdeb Release.gpg             
    Ign http://archive.canonical.com precise/partner Translation-en      
    Ign http://extras.ubuntu.com precise/main Translation-en                                           
    Hit http://archive.getdeb.net precise-getdeb Release                                               
    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
    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://archive.getdeb.net precise-getdeb/apps amd64 Packages
    Hit http://archive.getdeb.net precise-getdeb/games amd64 Packages
    Hit http://archive.getdeb.net precise-getdeb/apps i386 Packages
    Hit http://archive.getdeb.net precise-getdeb/games i386 Packages
    Ign http://archive.getdeb.net precise-getdeb/apps TranslationIndex
    Ign http://archive.getdeb.net precise-getdeb/games TranslationIndex
    Ign http://archive.getdeb.net precise-getdeb/apps Translation-en_US
    Ign http://archive.getdeb.net precise-getdeb/apps Translation-en
    Ign http://archive.getdeb.net precise-getdeb/games Translation-en_US
    Ign http://archive.getdeb.net precise-getdeb/games Translation-en
    Reading package lists... Done
    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:
     libapt-pkg4.12 : Breaks: libapt-pkg4.12:i386 (!= 0.8.16~exp12ubuntu10.3) but 0.8.16~exp12ubuntu10.2 is installed
     libapt-pkg4.12:i386 : Breaks: libapt-pkg4.12 (!= 0.8.16~exp12ubuntu10.2) but 0.8.16~exp12ubuntu10.3 is installed
    E: Unmet dependencies. Try using -f.
    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:
     libapt-pkg4.12 : Breaks: libapt-pkg4.12:i386 (!= 0.8.16~exp12ubuntu10.3) but 0.8.16~exp12ubuntu10.2 is installed
     libapt-pkg4.12:i386 : Breaks: libapt-pkg4.12 (!= 0.8.16~exp12ubuntu10.2) but 0.8.16~exp12ubuntu10.3 is installed
    E: Unmet dependencies. Try using -f.
    Reading package lists... Done
    Building dependency tree       
    Reading state information... Done
    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:
     libapt-pkg4.12 : Breaks: libapt-pkg4.12:i386 (!= 0.8.16~exp12ubuntu10.3) but 0.8.16~exp12ubuntu10.2 is installed
     libapt-pkg4.12:i386 : Breaks: libapt-pkg4.12 (!= 0.8.16~exp12ubuntu10.2) but 0.8.16~exp12ubuntu10.3 is installed
    E: Unmet dependencies. Try using -f.
    root@dpich-M6400:/home/dpich/Documents# apt-get -f install
    Reading package lists... Done
    Building dependency tree       
    Reading state information... Done
    Correcting dependencies... Done
    The following extra packages will be installed:
      libapt-pkg4.12:i386
    The following packages will be upgraded:
      libapt-pkg4.12:i386
    1 upgraded, 0 newly installed, 0 to remove and 5 not upgraded.
    1 not fully installed or removed.
    Need to get 0 B/941 kB of archives.
    After this operation, 0 B of additional disk space will be used.
    Do you want to continue [Y/n]? y
    E: Internal Error, No file name for libapt-pkg4.12
    root@dpich-M6400:/home/dpich/Documents# apt-get -f install
    Reading package lists... Done
    Building dependency tree       
    Reading state information... Done
    Correcting dependencies... Done
    The following extra packages will be installed:
      libapt-pkg4.12:i386
    The following packages will be upgraded:
      libapt-pkg4.12:i386
    1 upgraded, 0 newly installed, 0 to remove and 5 not upgraded.
    1 not fully installed or removed.
    Need to get 0 B/941 kB of archives.
    After this operation, 0 B of additional disk space will be used.
    Do you want to continue [Y/n]? y
    E: Internal Error, No file name for libapt-pkg4.12
    root@dpich-M6400:/home/dpich/Documents#
    To fix the issue, I tried following the instructions here http://askubuntu.com/questions/17887...libapt-pkg4-12

    No love:

    Code:
    root@dpich-M6400:/home/dpich/Documents# wget http://security.ubuntu.com/ubuntu/pool/main/a/apt/libapt-pkg4.12_0.9.7.1ubuntu2_amd64.deb
    --2012-09-27 08:07:53--  http://security.ubuntu.com/ubuntu/pool/main/a/apt/libapt-pkg4.12_0.9.7.1ubuntu2_amd64.deb
    Resolving security.ubuntu.com (security.ubuntu.com)... 91.189.92.184, 91.189.92.190
    Connecting to security.ubuntu.com (security.ubuntu.com)|91.189.92.184|:80... connected.
    HTTP request sent, awaiting response... 404 Not Found
    2012-09-27 08:07:53 ERROR 404: Not Found.
    
    root@dpich-M6400:/home/dpich/Documents# wget http://security.ubuntu.com/ubuntu/pool/main/a/apt/libapt-pkg4.12_0.9.7.1ubuntu2_amd64.deb
    --2012-09-27 08:22:31--  http://security.ubuntu.com/ubuntu/pool/main/a/apt/libapt-pkg4.12_0.9.7.1ubuntu2_amd64.deb
    Resolving security.ubuntu.com (security.ubuntu.com)... 91.189.92.190, 91.189.92.184
    Connecting to security.ubuntu.com (security.ubuntu.com)|91.189.92.190|:80... connected.
    HTTP request sent, awaiting response... 404 Not Found
    2012-09-27 08:22:31 ERROR 404: Not Found.
    
    root@dpich-M6400:/home/dpich/Documents# wget http://security.ubuntu.com/ubuntu/pool/main/a/apt/libapt-pkg4.12_0.9.7.5ubuntu2_amd64.deb
    --2012-09-27 08:23:23--  http://security.ubuntu.com/ubuntu/pool/main/a/apt/libapt-pkg4.12_0.9.7.5ubuntu2_amd64.deb
    Resolving security.ubuntu.com (security.ubuntu.com)... 91.189.92.190, 91.189.92.184
    Connecting to security.ubuntu.com (security.ubuntu.com)|91.189.92.190|:80... connected.
    HTTP request sent, awaiting response... 200 OK
    Length: 783034 (765K) [application/x-debian-package]
    Saving to: `libapt-pkg4.12_0.9.7.5ubuntu2_amd64.deb'
    
    100%[===============================================================================================================>] 783,034      876K/s   in 0.9s    
    
    2012-09-27 08:23:24 (876 KB/s) - `libapt-pkg4.12_0.9.7.5ubuntu2_amd64.deb' saved [783034/783034]
    
    root@dpich-M6400:/home/dpich/Documents# sudo dpkg -i libapt-pkg4.12_0.9.7.5ubuntu2_amd64.deb
    Selecting previously unselected package libapt-pkg4.12.
    dpkg: regarding libapt-pkg4.12_0.9.7.5ubuntu2_amd64.deb containing libapt-pkg4.12:
     libapt-pkg4.12 breaks apt (<< 0.9.4~)
      apt (version 0.8.16~exp12ubuntu10.2) is present and installed.
    dpkg: error processing libapt-pkg4.12_0.9.7.5ubuntu2_amd64.deb (--install):
     installing libapt-pkg4.12 would break apt, and
     deconfiguration is not permitted (--auto-deconfigure might help)
    Errors were encountered while processing:
     libapt-pkg4.12_0.9.7.5ubuntu2_amd64.deb
    root@dpich-M6400:/home/dpich/Documents# apt-get update ; apt-get upgrade -y ; apt-get dist-upgrade -y ; apt-get autoclean ; apt-get autoremove
    apt-get: error while loading shared libraries: libapt-pkg.so.4.12: cannot open shared object file: No such file or directory
    apt-get: error while loading shared libraries: libapt-pkg.so.4.12: cannot open shared object file: No such file or directory
    apt-get: error while loading shared libraries: libapt-pkg.so.4.12: cannot open shared object file: No such file or directory
    apt-get: error while loading shared libraries: libapt-pkg.so.4.12: cannot open shared object file: No such file or directory
    apt-get: error while loading shared libraries: libapt-pkg.so.4.12: cannot open shared object file: No such file or directory
    root@dpich-M6400:/home/dpich/Documents#
    So now I really broke apt in an effort to fix it:

    Code:
    root@dpich-M6400:/home/dpich/Documents# dpkg --force-depends --purge apt
    dpkg: apt: dependency problems, but removing anyway as you requested:
     ubuntu-minimal depends on apt.
     unattended-upgrades depends on apt.
     tasksel depends on apt (>= 0.6.45ubuntu14).
     ubuntu-extras-keyring depends on apt.
    (Reading database ... 308548 files and directories currently installed.)
    Removing apt ...
    Purging configuration files for apt ...
    dpkg: warning: while removing apt, directory '/etc/apt/sources.list.d' not empty so not removed.
    dpkg: warning: while removing apt, directory '/var/log/apt' not empty so not removed.
    Processing triggers for man-db ...
    root@dpich-M6400:/home/dpich/Documents#
    Can someone give me advice at how to reinstall apt from a deb file, or where can I get it? I have Kubuntu 64 bit 12.04 with all the latest updates as of the last couple of weeks.

    #2
    Ok, fixed apt. But now have a new problem.

    Code:
    root@dpich-M6400:/home/dpich/Downloads# dpkg -i libapt-pkg4.12_0.8.16~exp12ubuntu10.3_amd64.deb 
    (Reading database ... 308549 files and directories currently installed.)
    Unpacking libapt-pkg4.12 (from libapt-pkg4.12_0.8.16~exp12ubuntu10.3_amd64.deb) ...
    Setting up libapt-pkg4.12 (0.8.16~exp12ubuntu10.3) ...
    Processing triggers for libc-bin ...
    ldconfig deferred processing now taking place
    root@dpich-M6400:/home/dpich/Downloads# dpkg -i apt_0.8.16~exp12ubuntu10.3_amd64.deb 
    (Reading database ... 308597 files and directories currently installed.)
    Preparing to replace apt 0.8.16~exp12ubuntu10.3 (using apt_0.8.16~exp12ubuntu10.3_amd64.deb) ...
    Unpacking replacement apt ...
    Setting up apt (0.8.16~exp12ubuntu10.3) ...
    gpg: key 437D05B5: "Ubuntu Archive Automatic Signing Key <ftpmaster@ubuntu.com>" not changed
    gpg: key FBB75451: "Ubuntu CD Image Automatic Signing Key <cdimage@ubuntu.com>" not changed
    gpg: Total number processed: 2
    gpg:              unchanged: 2
    Processing triggers for man-db ...
    root@dpich-M6400:/home/dpich/Downloads# apt-get update ; apt-get upgrade -y ; apt-get dist-upgrade -y
    Ign http://us.archive.ubuntu.com precise InRelease
    Ign http://us.archive.ubuntu.com precise-updates InRelease                                                                                              
    Ign http://us.archive.ubuntu.com precise-backports InRelease                                                                                            
    Get:1 http://us.archive.ubuntu.com precise Release.gpg [198 B]                                                                                          
    Get:2 http://us.archive.ubuntu.com precise-updates Release.gpg [198 B]                                                                                  
    Get:3 http://us.archive.ubuntu.com precise-backports Release.gpg [198 B]                                                                                
    Get:4 http://us.archive.ubuntu.com precise Release [49.6 kB]                                                                                            
    Ign http://archive.canonical.com precise InRelease                                                                                                      
    Ign http://ppa.launchpad.net precise InRelease                                                                                                          
    Ign http://ppa.launchpad.net precise InRelease                                                                                                          
    Ign http://ppa.launchpad.net precise InRelease                                                                                                          
    Ign http://security.ubuntu.com precise-security InRelease                                                                                               
    Ign http://extras.ubuntu.com precise InRelease                                                                                                          
    Get:5 http://download.virtualbox.org precise InRelease [5,638 B]                                                                                 
    Get:6 http://us.archive.ubuntu.com precise-updates Release [49.6 kB]                                                                                    
    Ign http://archive.getdeb.net precise-getdeb InRelease                                                                                                  
    Ign http://ppa.launchpad.net precise InRelease                                                                                                          
    Get:7 http://archive.canonical.com precise Release.gpg [198 B]                                                                                          
    Get:8 http://ppa.launchpad.net precise Release.gpg [316 B]                                                                                              
    Get:9 http://ppa.launchpad.net precise Release.gpg [316 B]                                                                                              
    Get:10 http://us.archive.ubuntu.com precise-backports Release [49.6 kB]                                                                                 
    Get:11 http://security.ubuntu.com precise-security Release.gpg [198 B]                                                                                  
    Get:12 http://extras.ubuntu.com precise Release.gpg [72 B]                                                                                              
    Get:13 http://download.virtualbox.org precise/contrib amd64 Packages [1,272 B]                                                                          
    Get:14 http://us.archive.ubuntu.com precise/main Sources [934 kB]                                                                                       
    Get:15 http://archive.canonical.com precise Release [7,078 B]                                                                                           
    Get:16 http://ppa.launchpad.net precise Release.gpg [316 B]                                                                                             
    Get:17 http://security.ubuntu.com precise-security Release [49.6 kB]                                                                                    
    Get:18 http://extras.ubuntu.com precise Release [11.9 kB]                                                                                               
    Get:19 http://download.virtualbox.org precise/contrib i386 Packages [1,293 B]                                                                           
    Get:20 http://ppa.launchpad.net precise Release.gpg [316 B]                                                                                             
    Get:21 http://ppa.launchpad.net precise Release [11.9 kB]                                                                                               
    Get:22 http://archive.canonical.com precise/partner Sources [4,005 B]                                                                                   
    Get:23 http://archive.getdeb.net precise-getdeb Release.gpg [836 B]                                                                                     
    Ign http://download.virtualbox.org precise/contrib TranslationIndex                                                                                     
    Get:24 http://ppa.launchpad.net precise Release [11.9 kB]                                                                                               
    Get:25 http://archive.canonical.com precise/partner amd64 Packages [6,530 B]                                                                            
    Get:26 http://archive.canonical.com precise/partner i386 Packages [5,033 B]                                                                             
    Ign http://archive.canonical.com precise/partner TranslationIndex                                                                                       
    Get:27 http://ppa.launchpad.net precise Release [11.9 kB]                                                                                               
    Get:28 http://security.ubuntu.com precise-security/main Sources [46.2 kB]                                                                               
    Get:29 http://us.archive.ubuntu.com precise/restricted Sources [5,470 B]                                                                                
    Get:30 http://us.archive.ubuntu.com precise/universe Sources [5,019 kB]                                                                                 
    Get:31 http://extras.ubuntu.com precise/main Sources [7,338 B]                                                                                          
    Get:32 http://ppa.launchpad.net precise Release [11.9 kB]                                                                                               
    Get:33 http://ppa.launchpad.net precise/main Sources [58.0 kB]                                                                                          
    Get:34 http://archive.getdeb.net precise-getdeb Release [7,244 B]                                                                                       
    Get:35 http://security.ubuntu.com precise-security/restricted Sources [1,950 B]                                                                         
    Get:36 http://security.ubuntu.com precise-security/universe Sources [13.5 kB]                                                                           
    Get:37 http://security.ubuntu.com precise-security/multiverse Sources [1,386 B]                                                                         
    Get:38 http://security.ubuntu.com precise-security/main amd64 Packages [168 kB]                                                                         
    Get:39 http://extras.ubuntu.com precise/main amd64 Packages [9,642 B]                                                                                   
    Ign http://download.virtualbox.org precise/contrib Translation-en_US                                                                                    
    Get:40 http://ppa.launchpad.net precise/main amd64 Packages [126 kB]                                                                                    
    Ign http://download.virtualbox.org precise/contrib Translation-en                                                                                       
    Get:41 http://extras.ubuntu.com precise/main i386 Packages [9,651 B]                                                                                    
    Ign http://extras.ubuntu.com precise/main TranslationIndex                                                                                              
    Get:42 http://ppa.launchpad.net precise/main i386 Packages [126 kB]                                                                                     
    Get:43 http://security.ubuntu.com precise-security/restricted amd64 Packages [3,969 B]                                                                  
    Get:44 http://security.ubuntu.com precise-security/universe amd64 Packages [46.1 kB]                                                                    
    Get:45 http://security.ubuntu.com precise-security/multiverse amd64 Packages [2,180 B]                                                                  
    Get:46 http://security.ubuntu.com precise-security/main i386 Packages [173 kB]                                                                          
    Get:47 http://archive.getdeb.net precise-getdeb/apps amd64 Packages [55.7 kB]                                                                           
    Ign http://ppa.launchpad.net precise/main TranslationIndex                                                                                              
    Get:48 http://ppa.launchpad.net precise/main Sources [30.5 kB]                                                                                          
    Get:49 http://ppa.launchpad.net precise/main amd64 Packages [77.3 kB]                                                                                   
    Get:50 http://ppa.launchpad.net precise/main i386 Packages [77.4 kB]                                                                                    
    Ign http://ppa.launchpad.net precise/main TranslationIndex                                                                                              
    Get:51 http://ppa.launchpad.net precise/main Sources [2,963 B]                                                                                          
    Get:52 http://security.ubuntu.com precise-security/restricted i386 Packages [3,968 B]                                                                   
    Get:53 http://security.ubuntu.com precise-security/universe i386 Packages [46.4 kB]                                                                     
    Get:54 http://security.ubuntu.com precise-security/multiverse i386 Packages [2,369 B]                                                                   
    Get:55 http://security.ubuntu.com precise-security/main TranslationIndex [73 B]                                                                         
    Get:56 http://security.ubuntu.com precise-security/multiverse TranslationIndex [71 B]                                                                   
    Get:57 http://security.ubuntu.com precise-security/restricted TranslationIndex [71 B]                                                                   
    Get:58 http://security.ubuntu.com precise-security/universe TranslationIndex [73 B]                                                                     
    Get:59 http://ppa.launchpad.net precise/main amd64 Packages [4,156 B]                                                                                   
    Get:60 http://ppa.launchpad.net precise/main i386 Packages [4,145 B]                                                                                    
    Ign http://ppa.launchpad.net precise/main TranslationIndex                                                                                              
    Get:61 http://ppa.launchpad.net precise/main Sources [2,205 B]                                                                                          
    Get:62 http://ppa.launchpad.net precise/main amd64 Packages [3,704 B]                                                                                   
    Ign http://archive.canonical.com precise/partner Translation-en_US                                                                                      
    Get:63 http://ppa.launchpad.net precise/main i386 Packages [3,709 B]                                                                                    
    Ign http://ppa.launchpad.net precise/main TranslationIndex                                                                                              
    Ign http://archive.canonical.com precise/partner Translation-en                                                                                         
    Get:64 http://security.ubuntu.com precise-security/main Translation-en [80.4 kB]                                                                        
    Get:65 http://us.archive.ubuntu.com precise/multiverse Sources [155 kB]                                                                        
    Get:66 http://us.archive.ubuntu.com precise/main amd64 Packages [1,273 kB]                                                                              
    Get:67 http://archive.getdeb.net precise-getdeb/games amd64 Packages [79.7 kB]                                                                          
    Ign http://extras.ubuntu.com precise/main Translation-en_US                                                                                             
    Get:68 http://security.ubuntu.com precise-security/multiverse Translation-en [995 B]                                                                    
    Get:69 http://security.ubuntu.com precise-security/restricted Translation-en [978 B]                                                                    
    Ign http://extras.ubuntu.com precise/main Translation-en                                                                                                
    Get:70 http://us.archive.ubuntu.com precise/restricted amd64 Packages [8,452 B]                                                             
    Get:71 http://us.archive.ubuntu.com precise/universe amd64 Packages [4,786 kB]                                                       
    Get:72 http://security.ubuntu.com precise-security/universe Translation-en [28.8 kB]                                                  
    Get:73 http://archive.getdeb.net precise-getdeb/apps i386 Packages [56.2 kB]                                                                            
    Get:74 http://archive.getdeb.net precise-getdeb/games i386 Packages [80.6 kB]                                                                           
    Ign http://archive.getdeb.net precise-getdeb/apps TranslationIndex                                                                                      
    Ign http://archive.getdeb.net precise-getdeb/games TranslationIndex                                                                               
    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                                                                                
    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                                                  
    Get:75 http://us.archive.ubuntu.com precise/multiverse amd64 Packages [119 kB]                                       
    Get:76 http://us.archive.ubuntu.com precise/main i386 Packages [1,274 kB]                                        
    Get:77 http://us.archive.ubuntu.com precise/restricted i386 Packages [8,431 B]                                         
    Get:78 http://us.archive.ubuntu.com precise/universe i386 Packages [4,796 kB]       
    Get:79 http://us.archive.ubuntu.com precise/multiverse i386 Packages [121 kB]                                            
    Get:80 http://us.archive.ubuntu.com precise/main TranslationIndex [3,706 B]  
    Get:81 http://us.archive.ubuntu.com precise/multiverse TranslationIndex [2,676 B]      
    Get:82 http://us.archive.ubuntu.com precise/restricted TranslationIndex [2,596 B]      
    Get:83 http://us.archive.ubuntu.com precise/universe TranslationIndex [2,922 B]        
    Get:84 http://us.archive.ubuntu.com precise-updates/main Sources [170 kB]              
    Get:85 http://us.archive.ubuntu.com precise-updates/restricted Sources [3,285 B]
    Get:86 http://us.archive.ubuntu.com precise-updates/universe Sources [53.8 kB]
    Get:87 http://us.archive.ubuntu.com precise-updates/multiverse Sources [4,241 B]   
    Get:88 http://us.archive.ubuntu.com precise-updates/main amd64 Packages [392 kB]
    Get:89 http://us.archive.ubuntu.com precise-updates/restricted amd64 Packages [6,755 B]
    Get:90 http://us.archive.ubuntu.com precise-updates/universe amd64 Packages [134 kB]                            
    Get:91 http://us.archive.ubuntu.com precise-updates/multiverse amd64 Packages [8,681 B]                       
    Get:92 http://us.archive.ubuntu.com precise-updates/main i386 Packages [397 kB]                                      
    Get:93 http://us.archive.ubuntu.com precise-updates/restricted i386 Packages [6,732 B]                        
    Get:94 http://us.archive.ubuntu.com precise-updates/universe i386 Packages [134 kB] 
    Get:95 http://us.archive.ubuntu.com precise-updates/multiverse i386 Packages [9,673 B]
    Get:96 http://us.archive.ubuntu.com precise-updates/main TranslationIndex [3,564 B]
    Get:97 http://us.archive.ubuntu.com precise-updates/multiverse TranslationIndex [2,605 B]    
    Get:98 http://us.archive.ubuntu.com precise-updates/restricted TranslationIndex [2,461 B]
    Get:99 http://us.archive.ubuntu.com precise-updates/universe TranslationIndex [2,850 B]      
    Get:100 http://us.archive.ubuntu.com precise-backports/main Sources [2,422 B]                
    Get:101 http://us.archive.ubuntu.com precise-backports/restricted Sources [14 B]                             
    Get:102 http://us.archive.ubuntu.com precise-backports/universe Sources [14.5 kB]                         
    Get:103 http://us.archive.ubuntu.com precise-backports/multiverse Sources [2,669 B]                               
    Get:104 http://us.archive.ubuntu.com precise-backports/main amd64 Packages [1,945 B]
    Get:105 http://us.archive.ubuntu.com precise-backports/restricted amd64 Packages [14 B]
    Get:106 http://us.archive.ubuntu.com precise-backports/universe amd64 Packages [12.9 kB]              
    Get:107 http://us.archive.ubuntu.com precise-backports/multiverse amd64 Packages [2,489 B]                         
    Get:108 http://us.archive.ubuntu.com precise-backports/main i386 Packages [1,941 B]                                
    Get:109 http://us.archive.ubuntu.com precise-backports/restricted i386 Packages [14 B]                             
    Get:110 http://us.archive.ubuntu.com precise-backports/universe i386 Packages [12.9 kB]                       
    Get:111 http://us.archive.ubuntu.com precise-backports/multiverse i386 Packages [2,504 B]                          
    Get:112 http://us.archive.ubuntu.com precise-backports/main TranslationIndex [72 B]                                 
    Get:113 http://us.archive.ubuntu.com precise-backports/multiverse TranslationIndex [72 B]             
    Get:114 http://us.archive.ubuntu.com precise-backports/restricted TranslationIndex [70 B]
    Get:115 http://us.archive.ubuntu.com precise-backports/universe TranslationIndex [72 B]
    Get:116 http://us.archive.ubuntu.com precise/main Translation-en [726 kB]
    Get:117 http://us.archive.ubuntu.com precise/multiverse Translation-en [93.4 kB]        
    Get:118 http://us.archive.ubuntu.com precise/restricted Translation-en [2,395 B]                                       
    Get:119 http://us.archive.ubuntu.com precise/universe Translation-en [3,341 kB]                                        
    Ign http://archive.getdeb.net precise-getdeb/apps Translation-en_US                                                    
    Ign http://archive.getdeb.net precise-getdeb/apps Translation-en                                                       
    Ign http://archive.getdeb.net precise-getdeb/games Translation-en_US                        
    Ign http://archive.getdeb.net precise-getdeb/games Translation-en                           
    Get:120 http://us.archive.ubuntu.com precise-updates/main Translation-en [194 kB]           
    Get:121 http://us.archive.ubuntu.com precise-updates/multiverse Translation-en [5,414 B]
    Get:122 http://us.archive.ubuntu.com precise-updates/restricted Translation-en [1,484 B]
    Get:123 http://us.archive.ubuntu.com precise-updates/universe Translation-en [79.9 kB]
    Get:124 http://us.archive.ubuntu.com precise-backports/main Translation-en [1,244 B]
    Get:125 http://us.archive.ubuntu.com precise-backports/multiverse Translation-en [1,476 B]
    Get:126 http://us.archive.ubuntu.com precise-backports/restricted Translation-en [14 B]
    Get:127 http://us.archive.ubuntu.com precise-backports/universe Translation-en [9,472 B]
    Fetched 26.1 MB in 8s (3,008 kB/s)                                                                                                                      
    Reading package lists... Done
    Reading package lists... Done
    Building dependency tree... Done
    You might want to run 'apt-get -f install' to correct these.
    The following packages have unmet dependencies:
     libapt-inst1.4:i386 : Depends: libapt-pkg4.12:i386 (>= 0.8.16~exp12ubuntu10.2) but it is not installed
    E: Unmet dependencies. Try using -f.
    Reading package lists... Done
    Building dependency tree... Done
    You might want to run 'apt-get -f install' to correct these.
    The following packages have unmet dependencies:
     libapt-inst1.4:i386 : Depends: libapt-pkg4.12:i386 (>= 0.8.16~exp12ubuntu10.2) but it is not installed
    E: Unmet dependencies. Try using -f.
    root@dpich-M6400:/home/dpich/Downloads# apt-get -f install
    Reading package lists... Done
    Building dependency tree... Done
    Correcting dependencies... Done
    The following extra packages will be installed:
      libapt-inst1.4 libapt-inst1.4:i386 libapt-pkg4.12:i386
    The following NEW packages will be installed:
      libapt-pkg4.12:i386
    The following packages will be upgraded:
      libapt-inst1.4 libapt-inst1.4:i386
    2 upgraded, 1 newly installed, 0 to remove and 2 not upgraded.
    1 not fully installed or removed.
    Need to get 1,146 kB of archives.
    After this operation, 3,031 kB of additional disk space will be used.
    Do you want to continue [Y/n]? y
    Get:1 http://us.archive.ubuntu.com/ubuntu/ precise-updates/main libapt-pkg4.12 i386 0.8.16~exp12ubuntu10.3 [941 kB]
    Get:2 http://us.archive.ubuntu.com/ubuntu/ precise-updates/main libapt-inst1.4 i386 0.8.16~exp12ubuntu10.3 [103 kB]
    Get:3 http://us.archive.ubuntu.com/ubuntu/ precise-updates/main libapt-inst1.4 amd64 0.8.16~exp12ubuntu10.3 [102 kB]
    Fetched 1,146 kB in 0s (2,115 kB/s)     
    (Reading database ... 308597 files and directories currently installed.)
    Preparing to replace libapt-inst1.4:i386 0.8.16~exp12ubuntu10.2 (using .../libapt-inst1.4_0.8.16~exp12ubuntu10.3_i386.deb) ...
    De-configuring libapt-inst1.4 ...
    Unpacking replacement libapt-inst1.4:i386 ...
    Preparing to replace libapt-inst1.4 0.8.16~exp12ubuntu10.2 (using .../libapt-inst1.4_0.8.16~exp12ubuntu10.3_amd64.deb) ...
    Unpacking replacement libapt-inst1.4 ...
    dpkg: error processing /var/cache/apt/archives/libapt-inst1.4_0.8.16~exp12ubuntu10.3_amd64.deb (--unpack):
     './usr/share/locale/pt_BR/LC_MESSAGES/libapt-inst1.4.mo' is different from the same file on the system
    dpkg-deb: error: subprocess paste was killed by signal (Broken pipe)
    Selecting previously unselected package libapt-pkg4.12:i386.
    Unpacking libapt-pkg4.12:i386 (from .../libapt-pkg4.12_0.8.16~exp12ubuntu10.3_i386.deb) ...
    dpkg: error processing /var/cache/apt/archives/libapt-pkg4.12_0.8.16~exp12ubuntu10.3_i386.deb (--unpack):
     './usr/share/locale/sk/LC_MESSAGES/libapt-pkg4.12.mo' is different from the same file on the system
    dpkg-deb: error: subprocess paste was killed by signal (Broken pipe)
    Errors were encountered while processing:
     /var/cache/apt/archives/libapt-inst1.4_0.8.16~exp12ubuntu10.3_amd64.deb
     /var/cache/apt/archives/libapt-pkg4.12_0.8.16~exp12ubuntu10.3_i386.deb
    E: Sub-process /usr/bin/dpkg returned an error code (1)
    root@dpich-M6400:/home/dpich/Downloads#

    Comment


      #3
      Code:
      root@dpich-M6400:/home/dpich/Downloads# apt-get upgrade -y ; apt-get dist-upgrade -y
      Reading package lists... Done
      Building dependency tree... Done
      You might want to run 'apt-get -f install' to correct these.
      The following packages have unmet dependencies:
       libapt-inst1.4 : Breaks: libapt-inst1.4:i386 (!= 0.8.16~exp12ubuntu10.2) but 0.8.16~exp12ubuntu10.3 is installed
       libapt-inst1.4:i386 : Depends: libapt-pkg4.12:i386 (>= 0.8.16~exp12ubuntu10.3) but it is not installed
                             Breaks: libapt-inst1.4 (!= 0.8.16~exp12ubuntu10.3) but 0.8.16~exp12ubuntu10.2 is installed
      E: Unmet dependencies. Try using -f.
      Reading package lists... Done
      Building dependency tree... Done
      You might want to run 'apt-get -f install' to correct these.
      The following packages have unmet dependencies:
       libapt-inst1.4 : Breaks: libapt-inst1.4:i386 (!= 0.8.16~exp12ubuntu10.2) but 0.8.16~exp12ubuntu10.3 is installed
       libapt-inst1.4:i386 : Depends: libapt-pkg4.12:i386 (>= 0.8.16~exp12ubuntu10.3) but it is not installed
                             Breaks: libapt-inst1.4 (!= 0.8.16~exp12ubuntu10.3) but 0.8.16~exp12ubuntu10.2 is installed
      E: Unmet dependencies. Try using -f.
      root@dpich-M6400:/home/dpich/Downloads#

      Comment


        #4
        I'm concerned about your "regular update" process:
        root@dpich-M6400:/home/dpich/Documents# apt-get -f install ; apt-get update ; apt-get upgrade -y ; apt-get dist-upgrade -y ; apt-get autoclean ; apt-get autoremove
        Your process has a number of problems:
        • It begins with a command that should only be used when the package manager encounters resolution difficulties
        • The "dist-upgrade" makes "upgrade" redundant
        • The "-y" for automatic "yes" reduces your ability to retain control over the process
        • The commands are separated by semicolons, which means that the next command will run even if the previous one failed
        • As a follow-on to the above, running "autoremove" after a failure is ilkely to leave your machine in an unpredictable state
        • You appear to be logged in as root but your working directory is something other than /root


        Where did you learn this sequence from? I'd suggest that you abandon this approach. It's possible that your current problems are related to how you're performing upgrades. A better approach would be this:
        • Remain logged into your standard user account
        • Run each command one at a time so that you can monitor the output
        • Begin with sudo apt-get update
        • Follow with sudo apt-get dist-upgrade
        • Never add switches that automatically answer questions
        • Remove obsolete but not uninstalled packages with sudo apt-get --purge autoremove
        • Clean up downloads with sudo apt-get clean -- "autoclean" still leaves several .deb packages on your drive


        Also, a double-ampersand is the preferred way to chain commands together. This instructs the shell to execute a subsequent command only when the previous one succeeds. If there's a failure, the command chain will abort. But for package management, I don't recommend any command chaining.

        Comment

        Working...
        X