首页
学习
活动
专区
圈层
工具
发布
社区首页 >问答首页 >从12.10升级到13.04 -> dpkg:错误处理sudo (-配置)

从12.10升级到13.04 -> dpkg:错误处理sudo (-配置)
EN

Ask Ubuntu用户
提问于 2013-04-30 09:53:07
回答 1查看 919关注 0票数 1

这是我请求你帮忙的条件和理由。昨晚,我继续将Xubuntu12.10安装升级到13.04,所以在tty1上我运行以下命令

代码语言:javascript
复制
sudo do-release-upgrade

一切似乎都进行得很顺利,除了重启后和我跑的时候

代码语言:javascript
复制
sudo apt-get update && sudo apt-get upgrade

我知道这个错误:

代码语言:javascript
复制
sudo apt-get update && sudo apt-get upgrade
Hit http://pt.archive.ubuntu.com raring Release.gpg
Hit http://pt.archive.ubuntu.com raring-updates Release.gpg                    
Hit http://dl.google.com stable Release.gpg                                    
Hit http://pt.archive.ubuntu.com raring-backports Release.gpg                  
Hit http://pt.archive.ubuntu.com raring Release                                
Hit http://archive.canonical.com raring Release.gpg                            
Hit http://ppa.launchpad.net raring Release.gpg                                
Hit http://pt.archive.ubuntu.com raring-updates Release                        
Hit http://extras.ubuntu.com raring Release.gpg                                
Hit http://pt.archive.ubuntu.com raring-backports Release                      
Hit http://dl.google.com stable Release                                        
Hit http://pt.archive.ubuntu.com raring/main Sources                           
Hit http://pt.archive.ubuntu.com raring/restricted Sources                     
Hit http://extras.ubuntu.com raring Release                                    
Hit http://archive.canonical.com raring Release                                
Hit http://ppa.launchpad.net raring Release.gpg                                
Hit http://pt.archive.ubuntu.com raring/universe Sources                       
Hit http://pt.archive.ubuntu.com raring/multiverse Sources                     
Hit http://dl.google.com stable/main i386 Packages                             
Get:1 http://security.ubuntu.com raring-security Release.gpg [933 B]           
Hit http://pt.archive.ubuntu.com raring/main i386 Packages                     
Hit http://extras.ubuntu.com raring/main Sources                               
Hit http://ppa.launchpad.net raring Release                                    
Hit http://archive.canonical.com raring/partner i386 Packages                  
Hit http://pt.archive.ubuntu.com raring/restricted i386 Packages               
Hit http://pt.archive.ubuntu.com raring/universe i386 Packages                 
Hit http://extras.ubuntu.com raring/main i386 Packages                         
Hit http://pt.archive.ubuntu.com raring/multiverse i386 Packages               
Hit http://ppa.launchpad.net raring Release                                    
Hit http://pt.archive.ubuntu.com raring/main Translation-en                    
Hit http://ppa.launchpad.net raring/main Sources                               
Hit http://ppa.launchpad.net raring/main i386 Packages                         
Hit http://pt.archive.ubuntu.com raring/multiverse Translation-en              
Hit http://pt.archive.ubuntu.com raring/restricted Translation-en              
Hit http://pt.archive.ubuntu.com raring/universe Translation-en                
Hit http://pt.archive.ubuntu.com raring-updates/main Sources                   
Hit http://pt.archive.ubuntu.com raring-updates/restricted Sources             
Hit http://ppa.launchpad.net raring/main Sources                               
Hit http://pt.archive.ubuntu.com raring-updates/universe Sources               
Hit http://pt.archive.ubuntu.com raring-updates/multiverse Sources             
Hit http://pt.archive.ubuntu.com raring-updates/main i386 Packages             
Hit http://ppa.launchpad.net raring/main i386 Packages                         
Hit http://pt.archive.ubuntu.com raring-updates/restricted i386 Packages       
Hit http://pt.archive.ubuntu.com raring-updates/universe i386 Packages         
Hit http://pt.archive.ubuntu.com raring-updates/multiverse i386 Packages       
Ign http://dl.google.com stable/main Translation-en_US                         
Hit http://pt.archive.ubuntu.com raring-updates/main Translation-en            
Ign http://archive.canonical.com raring/partner Translation-en_US              
Ign http://extras.ubuntu.com raring/main Translation-en_US                     
Ign http://dl.google.com stable/main Translation-en                            
Ign http://archive.canonical.com raring/partner Translation-en                 
Hit http://pt.archive.ubuntu.com raring-updates/multiverse Translation-en      
Ign http://extras.ubuntu.com raring/main Translation-en                        
Hit http://pt.archive.ubuntu.com raring-updates/restricted Translation-en      
Hit http://pt.archive.ubuntu.com raring-updates/universe Translation-en
Hit http://pt.archive.ubuntu.com raring-backports/main Sources
Hit http://pt.archive.ubuntu.com raring-backports/restricted Sources
Hit http://pt.archive.ubuntu.com raring-backports/universe Sources
Hit http://pt.archive.ubuntu.com raring-backports/multiverse Sources
Hit http://pt.archive.ubuntu.com raring-backports/main i386 Packages
Hit http://pt.archive.ubuntu.com raring-backports/restricted i386 Packages
Hit http://pt.archive.ubuntu.com raring-backports/universe i386 Packages
Hit http://pt.archive.ubuntu.com raring-backports/multiverse i386 Packages
Hit http://pt.archive.ubuntu.com raring-backports/main Translation-en
Hit http://pt.archive.ubuntu.com raring-backports/multiverse Translation-en
Get:2 http://security.ubuntu.com raring-security Release [40.8 kB]
Hit http://pt.archive.ubuntu.com raring-backports/restricted Translation-en
Hit http://pt.archive.ubuntu.com raring-backports/universe Translation-en
Ign http://ppa.launchpad.net raring/main Translation-en_US
Ign http://ppa.launchpad.net raring/main Translation-en
Get:3 http://security.ubuntu.com raring-security/main Sources [2,109 B]
Ign http://ppa.launchpad.net raring/main Translation-en_US
Ign http://ppa.launchpad.net raring/main Translation-en               
Get:4 http://security.ubuntu.com raring-security/restricted Sources [14 B]
Get:5 http://security.ubuntu.com raring-security/universe Sources [14 B]
Get:6 http://security.ubuntu.com raring-security/multiverse Sources [14 B]
Get:7 http://security.ubuntu.com raring-security/main i386 Packages [3,670 B]
Get:8 http://security.ubuntu.com raring-security/restricted i386 Packages [14 B]
Get:9 http://security.ubuntu.com raring-security/universe i386 Packages [2,824 B]
Get:10 http://security.ubuntu.com raring-security/multiverse i386 Packages [14 B]
Ign http://pt.archive.ubuntu.com raring/main Translation-en_US
Ign http://pt.archive.ubuntu.com raring/multiverse Translation-en_US
Ign http://pt.archive.ubuntu.com raring/restricted Translation-en_US
Ign http://pt.archive.ubuntu.com raring/universe Translation-en_US
Ign http://pt.archive.ubuntu.com raring-updates/main Translation-en_US
Ign http://pt.archive.ubuntu.com raring-updates/multiverse Translation-en_US
Hit http://security.ubuntu.com raring-security/main Translation-en
Ign http://pt.archive.ubuntu.com raring-updates/restricted Translation-en_US
Ign http://pt.archive.ubuntu.com raring-updates/universe Translation-en_US
Ign http://pt.archive.ubuntu.com raring-backports/main Translation-en_US
Ign http://pt.archive.ubuntu.com raring-backports/multiverse Translation-en_US
Ign http://pt.archive.ubuntu.com raring-backports/restricted Translation-en_US
Hit http://security.ubuntu.com raring-security/multiverse Translation-en
Ign http://pt.archive.ubuntu.com raring-backports/universe Translation-en_US
Hit http://security.ubuntu.com raring-security/restricted Translation-en
Hit http://security.ubuntu.com raring-security/universe Translation-en
Ign http://security.ubuntu.com raring-security/main Translation-en_US          
Ign http://security.ubuntu.com raring-security/multiverse Translation-en_US    
Ign http://security.ubuntu.com raring-security/restricted Translation-en_US    
Ign http://security.ubuntu.com raring-security/universe Translation-en_US      
Fetched 50.4 kB in 6s (7,454 B/s)                                              
Reading package lists... Done
Reading package lists... Done
Building dependency tree       
Reading state information... Done
0 upgraded, 0 newly installed, 0 to remove and 0 not upgraded.
2 not fully installed or removed.
Need to get 0 B/373 kB of archives.
After this operation, 0 B of additional disk space will be used.
Do you want to continue [Y/n]? Y
dpkg: error processing sudo (--configure):
 Package is in a very bad inconsistent state - you should
 reinstall it before attempting configuration.
No apport report written because MaxReports is reached already
                                                              dpkg: dependency problems prevent configuration of ubuntu-minimal:
 ubuntu-minimal depends on sudo; however:
  Package sudo is not configured yet.

dpkg: error processing ubuntu-minimal (--configure):
 dependency problems - leaving unconfigured
No apport report written because MaxReports is reached already
                                                              Errors were encountered while processing:
 sudo
 ubuntu-minimal
E: Sub-process /usr/bin/dpkg returned an error code (1)

我试过所有我认为合乎逻辑的东西,比如

代码语言:javascript
复制
sudo dpkg --configure -a
dpkg: error processing sudo (--configure):
 Package is in a very bad inconsistent state - you should
 reinstall it before attempting configuration.
dpkg: dependency problems prevent configuration of ubuntu-minimal:
 ubuntu-minimal depends on sudo; however:
  Package sudo is not configured yet.

dpkg: error processing ubuntu-minimal (--configure):
 dependency problems - leaving unconfigured
Errors were encountered while processing:
 sudo
 ubuntu-minimal



sudo apt-get install -f
Reading package lists... Done
Building dependency tree       
Reading state information... Done
0 upgraded, 0 newly installed, 0 to remove and 0 not upgraded.
2 not fully installed or removed.
Need to get 0 B/373 kB of archives.
After this operation, 0 B of additional disk space will be used.
dpkg: error processing sudo (--configure):
 Package is in a very bad inconsistent state - you should
 reinstall it before attempting configuration.
dpkg: dependency problems prevent configuration of ubuntu-minimal:
 ubuntu-minimal depends on sudo; however:
  Package sudo is not configured yet.

dpkg: error processing ubuntu-minimal (--configure):
 dependency problems - leaving unconfigured
No apport report written because MaxReports is reached already
                                                              No apport report written because MaxReports is reached already
                                            Errors were encountered while processing:
 sudo
 ubuntu-minimal
E: Sub-process /usr/bin/dpkg returned an error code (1)

有人能帮帮我吗拜托。

编辑:

这里有一些对任何人都有帮助的更多信息。输出.

代码语言:javascript
复制
 apt-cache policy linux-image-generic-pae linux-generic-pae

代码语言:javascript
复制
linux-image-generic-pae:
  Installed: (none)
  Candidate: 3.8.0.19.35
  Version table:
     3.8.0.19.35 0
        500 http://pt.archive.ubuntu.com/ubuntu/ raring/main i386 Packages
linux-generic-pae:
  Installed: (none)
  Candidate: 3.8.0.19.35
  Version table:
     3.8.0.19.35 0
        500 http://pt.archive.ubuntu.com/ubuntu/ raring/main i386 Packages
EN

回答 1

Ask Ubuntu用户

发布于 2014-05-31 01:06:01

我也遇到了同样的问题,多次尝试在本题中发布命令。

不太确定,但我认为在通过以下方式删除所有安装包之后,它才起作用:

代码语言:javascript
复制
sudo apt-get clean -f

现在,它通过以下方式获得了新的更新:

代码语言:javascript
复制
sudo apt-get update && sudo apt-get upgrade
票数 0
EN
页面原文内容由Ask Ubuntu提供。腾讯云小微IT领域专用引擎提供翻译支持
原文链接:

https://askubuntu.com/questions/288400

复制
相关文章

相似问题

领券
问题归档专栏文章快讯文章归档关键词归档开发者手册归档开发者手册 Section 归档