当前时区为 UTC + 8 小时



发表新帖 回复这个主题  [ 6 篇帖子 ] 
作者 内容
1 楼 
 文章标题 : Ubuntu 15.10升级出错
帖子发表于 : 2016-01-07 17:39 

注册: 2007-10-20 22:48
帖子: 194
送出感谢: 29
接收感谢: 0 次
现在,顶部的状态条上有一个类似交通标志:禁行的标志,运行:sudo apt-get -f install后有如下提示:
debconf: Perl may be unconfigured (Can't locate loadable object for module IO in @INC (@INC contains: /etc/perl /usr/local/lib/x86_64-linux-gnu/perl/5.20.2 /usr/local/share/perl/5.20.2 /usr/lib/x86_64-linux-gnu/perl5/5.20 /usr/share/perl5 /usr/lib/x86_64-linux-gnu/perl/5.20 /usr/share/perl/5.20 /usr/local/lib/site_perl .) at /usr/lib/x86_64-linux-gnu/perl/5.20/IO/Handle.pm line 9.
Compilation failed in require at /usr/lib/x86_64-linux-gnu/perl/5.20/IO/Handle.pm line 9.
BEGIN failed--compilation aborted at /usr/lib/x86_64-linux-gnu/perl/5.20/IO/Handle.pm line 9.
Compilation failed in require at /usr/lib/x86_64-linux-gnu/perl/5.20/IO/Seekable.pm line 9.
BEGIN failed--compilation aborted at /usr/lib/x86_64-linux-gnu/perl/5.20/IO/Seekable.pm line 9.
Compilation failed in require at /usr/lib/x86_64-linux-gnu/perl/5.20/IO/File.pm line 11.
BEGIN failed--compilation aborted at /usr/lib/x86_64-linux-gnu/perl/5.20/IO/File.pm line 11.
Compilation failed in require at /usr/share/perl/5.20/FileHandle.pm line 9.
Compilation failed in require at (eval 1) line 3.
BEGIN failed--compilation aborted at (eval 1) line 3.
) -- aborting
dpkg: warning: files list file for package 'git' missing; assuming package has no files currently installed
(Reading database ... 272988 files and directories currently installed.)
Preparing to unpack .../linux-image-4.2.0-23-generic_4.2.0-23.28_amd64.deb ...
Can't locate loadable object for module POSIX in @INC (@INC contains: /etc/perl /usr/local/lib/x86_64-linux-gnu/perl/5.20.2 /usr/local/share/perl/5.20.2 /usr/lib/x86_64-linux-gnu/perl5/5.20 /usr/share/perl5 /usr/lib/x86_64-linux-gnu/perl/5.20 /usr/share/perl/5.20 /usr/local/lib/site_perl .) at /usr/share/perl5/Debconf/Template.pm line 7.
Compilation failed in require at /usr/share/perl5/Debconf/Template.pm line 7.
BEGIN failed--compilation aborted at /usr/share/perl5/Debconf/Template.pm line 7.
Compilation failed in require at /usr/share/perl5/Debconf/Question.pm line 8.
BEGIN failed--compilation aborted at /usr/share/perl5/Debconf/Question.pm line 8.
Compilation failed in require at /usr/share/perl5/Debconf/Config.pm line 7.
BEGIN failed--compilation aborted at /usr/share/perl5/Debconf/Config.pm line 7.
Compilation failed in require at /usr/share/perl5/Debconf/Log.pm line 10.
Compilation failed in require at /usr/share/perl5/Debconf/Db.pm line 7.
BEGIN failed--compilation aborted at /usr/share/perl5/Debconf/Db.pm line 7.
Compilation failed in require at /usr/share/debconf/frontend line 6.
BEGIN failed--compilation aborted at /usr/share/debconf/frontend line 6.
dpkg: error processing archive /var/cache/apt/archives/linux-image-4.2.0-23-generic_4.2.0-23.28_amd64.deb (--unpack):
subprocess new pre-installation script returned error exit status 255
Examining /etc/kernel/postrm.d .
run-parts: executing /etc/kernel/postrm.d/initramfs-tools 4.2.0-23-generic /boot/vmlinuz-4.2.0-23-generic
run-parts: executing /etc/kernel/postrm.d/zz-update-grub 4.2.0-23-generic /boot/vmlinuz-4.2.0-23-generic
Errors were encountered while processing:
/var/cache/apt/archives/linux-image-4.2.0-23-generic_4.2.0-23.28_amd64.deb
E: Sub-process /usr/bin/dpkg returned an error code (1)

我该如何接解决呢?谢谢。


页首
 用户资料  
 
2 楼 
 文章标题 : Re: Ubuntu 15.10升级出错
帖子发表于 : 2016-01-07 18:34 

注册: 2009-08-04 16:33
帖子: 16891
送出感谢: 21
接收感谢: 1826
引用:
顶部的状态条上有一个类似交通标志:禁行的标志

1. 這個通常是表示該程式套件沒有正確安裝或被移除了
可以把鼠標指向該圖示 按一下 右鍵或左鍵 看看是哪一個程式
通常正確重裝該程式套件就更正 (有些需要重新開機或重新啟動該程式)
引用:
运行:sudo apt-get -f install后有如下提示:

2. 這個指令 除非是有經驗的老手 否則不建議使用
因為解決了一些問題 有時可能產生別的問題 而不自知
最好 把它當成最後選擇方案 萬不得已 不用它
引用:
我该如何接解决呢?谢谢。

3. 把下面指令 複製 貼進終端機 執行
3-1. sudo dpkg --configure -a
3-2. sudo apt-get -y check
把結果直接 選取/複製 貼上來


页首
 用户资料  
 
3 楼 
 文章标题 : Re: Ubuntu 15.10升级出错
帖子发表于 : 2016-01-07 18:35 
头像

注册: 2011-03-20 13:12
帖子: 4521
地址: 山东省寿光县
系统: Debian
送出感谢: 105
接收感谢: 997
引用:
Can't locate loadable object for module IO in @INC
Can't locate loadable object for module POSIX in @INC

Perl 损坏
首先尝试
代码:
sudo dpkg --configure -a


如果问题依旧,尝试从 http://packages.ubuntu.com/ 下载相关包
如 perl perl-base debconf
用 dpkg -i 手动安装

原因 不排除文件系统意外损坏

参考
http://www.linuxquestions.org/questions/linux-software-2/debconf-perl-may-be-unconfigured-cant-locate-debconf-log-pm-in-%40inc-849597-print/
https://lists.debian.org/debian-user/2003/08/msg04207.html
http://serverfault.com/questions/574690/debconf-broke-after-system-failure
http://ubuntuforums.org/showthread.php?t=1847445
http://debian.2.n7.nabble.com/Perl-is-broken-Can-t-locate-overload-pm-td1835955.html


_________________
Debian 中文论坛 - forums.debiancn.org
欢迎所有 Debian GNU/Linux 用户



_________________
评价: 3.7% dfsr
 
页首
 用户资料  
 
4 楼 
 文章标题 : Re: Ubuntu 15.10升级出错
帖子发表于 : 2016-01-07 19:28 

注册: 2007-10-20 22:48
帖子: 194
送出感谢: 29
接收感谢: 0 次
引用:
引用:
3. 把下面指令 複製 貼進終端機 執行
3-1. sudo dpkg --configure -a
3-2. sudo apt-get -y check
把結果直接 選取/複製 貼上來


sudo dpkg --configure -a 的结果如下:
Setting up mime-support (3.58ubuntu1) ...
Can't locate loadable object for module File::Glob in @INC (@INC contains: /etc/perl /usr/local/lib/x86_64-linux-gnu/perl/5.20.2 /usr/local/share/perl/5.20.2 /usr/lib/x86_64-linux-gnu/perl5/5.20 /usr/share/perl5 /usr/lib/x86_64-linux-gnu/perl/5.20 /usr/share/perl/5.20 /usr/local/lib/site_perl .) at /usr/sbin/update-mime line 75.
Compilation failed in require at /usr/sbin/update-mime line 75.
BEGIN failed--compilation aborted at /usr/sbin/update-mime line 75.
dpkg: error processing package mime-support (--configure):
subprocess installed post-installation script returned error exit status 255
dpkg: dependency problems prevent configuration of linux-image-extra-4.2.0-23-generic:
linux-image-extra-4.2.0-23-generic depends on linux-image-4.2.0-23-generic; however:
Package linux-image-4.2.0-23-generic is not installed.

dpkg: error processing package linux-image-extra-4.2.0-23-generic (--configure):
dependency problems - leaving unconfigured
Setting up samba-common (2:4.1.17+dfsg-4ubuntu3.1) ...
Can't locate loadable object for module POSIX in @INC (@INC contains: /etc/perl /usr/local/lib/x86_64-linux-gnu/perl/5.20.2 /usr/local/share/perl/5.20.2 /usr/lib/x86_64-linux-gnu/perl5/5.20 /usr/share/perl5 /usr/lib/x86_64-linux-gnu/perl/5.20 /usr/share/perl/5.20 /usr/local/lib/site_perl .) at /usr/share/perl5/Debconf/Template.pm line 7.
Compilation failed in require at /usr/share/perl5/Debconf/Template.pm line 7.
BEGIN failed--compilation aborted at /usr/share/perl5/Debconf/Template.pm line 7.
Compilation failed in require at /usr/share/perl5/Debconf/Question.pm line 8.
BEGIN failed--compilation aborted at /usr/share/perl5/Debconf/Question.pm line 8.
Compilation failed in require at /usr/share/perl5/Debconf/Config.pm line 7.
BEGIN failed--compilation aborted at /usr/share/perl5/Debconf/Config.pm line 7.
Compilation failed in require at /usr/share/perl5/Debconf/Log.pm line 10.
Compilation failed in require at /usr/share/perl5/Debconf/Db.pm line 7.
BEGIN failed--compilation aborted at /usr/share/perl5/Debconf/Db.pm line 7.
Compilation failed in require at /usr/share/debconf/frontend line 6.
BEGIN failed--compilation aborted at /usr/share/debconf/frontend line 6.
dpkg: error processing package samba-common (--configure):
subprocess installed post-installation script returned error exit status 255
Setting up grub-common (2.02~beta2-29ubuntu0.3) ...
Can't locate loadable object for module File::Glob in @INC (@INC contains: /etc/perl /usr/local/lib/x86_64-linux-gnu/perl/5.20.2 /usr/local/share/perl/5.20.2 /usr/lib/x86_64-linux-gnu/perl5/5.20 /usr/share/perl5 /usr/lib/x86_64-linux-gnu/perl/5.20 /usr/share/perl/5.20 /usr/local/lib/site_perl .) at /usr/sbin/update-rc.d line 353.
Compilation failed in require at /usr/sbin/update-rc.d line 353.
BEGIN failed--compilation aborted at /usr/sbin/update-rc.d line 353.
dpkg: error processing package grub-common (--configure):
subprocess installed post-installation script returned error exit status 255
dpkg: dependency problems prevent configuration of samba:
samba depends on samba-common (= 2:4.1.17+dfsg-4ubuntu3.1); however:
Package samba-common is not configured yet.

dpkg: error processing package samba (--configure):
dependency problems - leaving unconfigured
dpkg: dependency problems prevent configuration of samba-common-bin:
samba-common-bin depends on samba-common (= 2:4.1.17+dfsg-4ubuntu3.1); however:
Package samba-common is not configured yet.

dpkg: error processing package samba-common-bin (--configure):
dependency problems - leaving unconfigured
dpkg: dependency problems prevent configuration of linux-image-generic:
linux-image-generic depends on linux-image-4.2.0-23-generic; however:
Package linux-image-4.2.0-23-generic is not installed.
linux-image-generic depends on linux-image-extra-4.2.0-23-generic; however:
Package linux-image-extra-4.2.0-23-generic is not configured yet.

dpkg: error processing package linux-image-generic (--configure):
dependency problems - leaving unconfigured
dpkg: dependency problems prevent configuration of grub-pc-bin:
grub-pc-bin depends on grub-common (= 2.02~beta2-29ubuntu0.3); however:
Package grub-common is not configured yet.

dpkg: error processing package grub-pc-bin (--configure):
dependency problems - leaving unconfigured
dpkg: dependency problems prevent configuration of grub-pc:
grub-pc depends on grub-common (= 2.02~beta2-29ubuntu0.3); however:
Package grub-common is not configured yet.
grub-pc depends on grub-pc-bin (= 2.02~beta2-29ubuntu0.3); however:
Package grub-pc-bin is not configured yet.

dpkg: error processing package grub-pc (--configure):
dependency problems - leaving unconfigured
dpkg: dependency problems prevent configuration of grub2-common:
grub2-common depends on grub-common (= 2.02~beta2-29ubuntu0.3); however:
Package grub-common is not configured yet.

dpkg: error processing package grub2-common (--configure):
dependency problems - leaving unconfigured
dpkg: dependency problems prevent configuration of linux-generic:
linux-generic depends on linux-image-generic (= 4.2.0.23.25); however:
Package linux-image-generic is not configured yet.

dpkg: error processing package linux-generic (--configure):
dependency problems - leaving unconfigured
Errors were encountered while processing:
mime-support
linux-image-extra-4.2.0-23-generic
samba-common
grub-common
samba
samba-common-bin
linux-image-generic
grub-pc-bin
grub-pc
grub2-common
linux-generic

sudo apt-get -y check 的结果如下:
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:
linux-image-extra-4.2.0-23-generic : Depends: linux-image-4.2.0-23-generic but it is not installed
linux-image-generic : Depends: linux-image-4.2.0-23-generic but it is not installed
E: Unmet dependencies. Try using -f.

Thank you, poloshiao.


页首
 用户资料  
 
5 楼 
 文章标题 : Re: Ubuntu 15.10升级出错
帖子发表于 : 2016-01-07 19:50 

注册: 2009-08-04 16:33
帖子: 16891
送出感谢: 21
接收感谢: 1826
引用:
sudo apt-get -y check 的结果如下:
The following packages have unmet dependencies:
linux-image-extra-4.2.0-23-generic : Depends: linux-image-4.2.0-23-generic but it is not installed
linux-image-generic : Depends: linux-image-4.2.0-23-generic but it is not installed

1. 先
sudo apt-get install linux-image-4.2.0-23-generic
2. 再
sudo apt-get install --reinstall linux-image-generic linux-image-extra-4.2.0-23-generic
3. 再
sudo dpkg --configure -a
4. 如果還有錯誤訊息 請複製貼上來
5. 為了避免打錯字 儘量從上面指令 複製/貼上 終端機 執行
引用:
Ubuntu 15.10升级出错

6. sudo dpkg -l | grep linux-generic
把結果複製貼上來



_________________
评价: 3.7% dfsr
 
页首
 用户资料  
 
6 楼 
 文章标题 : Re: Ubuntu 15.10升级出错
帖子发表于 : 2016-01-10 18:39 

注册: 2007-10-20 22:48
帖子: 194
送出感谢: 29
接收感谢: 0 次
非常感谢poloshiao和vickycq,因为还有很多别的毛病,我现在开始使用Fedora了。
再一次感谢两位的回复!
等到4月16.04发布了我可能会用回Ubuntu,但是现在Ubuntu和我的主板问题太多。


页首
 用户资料  
 
显示帖子 :  排序  
发表新帖 回复这个主题  [ 6 篇帖子 ] 

当前时区为 UTC + 8 小时


在线用户

正在浏览此版面的用户:没有注册用户 和 1 位游客


不能 在这个版面发表主题
不能 在这个版面回复主题
不能 在这个版面编辑帖子
不能 在这个版面删除帖子
不能 在这个版面提交附件

前往 :  
本站点为公益性站点,用于推广开源自由软件,由 DiaHosting VPSBudgetVM VPS 提供服务。
我们认为:软件应可免费取得,软件工具在各种语言环境下皆可使用,且不会有任何功能上的差异;
人们应有定制和修改软件的自由,且方式不受限制,只要他们自认为合适。

Powered by phpBB © 2000, 2002, 2005, 2007 phpBB Group
简体中文语系由 王笑宇 翻译