Ubuntu 14.04 apt-get dist-upgrade 在 bcmwl-kernel-source 上出现错误

Ubuntu 14.04 apt-get dist-upgrade 在 bcmwl-kernel-source 上出现错误

我刚刚执行的 dist-update 在打印以下行后挂起(冻结):

DKMS: install completed.

我必须关闭终端才能终止进程,然后继续

sudo lsof /var/lib/dpkg/lock
kill -15 THE-PID
sudo dpkg --configure -a

上面的 dpkg 命令也挂在同一个位置,但我发现通过反复努力,我可以 Ctrl-C dpkg 命令(在重复的 lsof kill 循环之后)并运行其他 apt-get 命令,如更新、检查、清理等,但都导致出现相同的“DKMS:安装完成。”语句,并且相关输出始终如下所示:

$ sudo apt-get install bcmwl-kernel-source

Reading package lists... Done
Building dependency tree       
Reading state information... Done
bcmwl-kernel-source is already the newest version.
0 upgraded, 0 newly installed, 0 to remove and 0 not upgraded.
3 not fully installed or removed.
After this operation, 0 B of additional disk space will be used.
Do you want to continue? [Y/n] Y
Setting up bcmwl-kernel-source (6.30.223.248+bdcom-0ubuntu0.1) ...
Removing old bcmwl-6.30.223.248+bdcom DKMS files...

-------- Uninstall Beginning --------
Module:  bcmwl
Version: 6.30.223.248+bdcom
Kernel:  3.13.0-24-generic (x86_64)
-------------------------------------

Status: Before uninstall, this module version was ACTIVE on this kernel.

wl.ko:
 - Uninstallation
 - Deleting from: /lib/modules/3.13.0-24-generic/updates/dkms/
 - Original module
 - No original module was found for this module on this kernel.
 - Use the dkms install command to reinstall any previous module version.

depmod....

DKMS: uninstall completed.

------------------------------
Deleting module version: 6.30.223.248+bdcom completely from the DKMS tree.
------------------------------
Done.
Loading new bcmwl-6.30.223.248+bdcom DKMS files...
Building only for 3.13.0-24-generic
Building for architecture x86_64
Building initial module for 3.13.0-24-generic
Done.

wl:
Running module version sanity check.
 - Original module
 - No original module exists within this kernel
 - Installation
 - Installing to /lib/modules/3.13.0-24-generic/updates/dkms/

depmod....
DKMS: install completed.

[开始更新@Pilot6] 虽然上面的输出中没有错误,但我确实怀疑内核设置肯定出了问题。当我按 Ctrl-C 退出另一个 apt-get 命令时(在执行另一个 lsof、kill、dpkg 迭代之后),我得到下面的输出,表明配置不正确。仍然犹豫要不要重启。

^Cdpkg: error processing package bcmwl-kernel-source (--configure):
 subprocess installed post-installation script was interrupted
Setting up fglrx-updates (2:15.200-0ubuntu0.5) ...
update-alternatives: warning: forcing reinstallation of alternative /usr/lib/fglrx/ld.so.conf because link group x86_64-linux-gnu_gl_conf is broken
update-alternatives: error: unable to remove '/etc/ati': Is a directory
dpkg: error processing package fglrx-updates (--configure):
 subprocess installed post-installation script returned error exit status 2
dpkg: dependency problems prevent configuration of fglrx-amdcccle updates:
 fglrx-amdcccle-updates depends on fglrx-updates; however:
  Package fglrx-updates is not configured yet.

dpkg: error processing package fglrx-amdcccle-updates (--configure):
 dependency problems - leaving unconfigured
Errors were encountered while processing: bcmwl-kernel-source
 fglrx-updates
 fglrx-amdcccle-updates

我看到上面的 bcmwl 看起来像我的 Broadcomm 无线扩展卡的代码......

[结束更新] 我认为重启不是正确的选择。可能根本无法启动!Gad Zooks!有什么提示和技巧吗?

更新/升级之前可能应该有以下命令,但事后看来才是正确的

sudo apt-get autoclean
sudo apt-get autoremove

谢谢,布拉德

答案1

看起来我的 Broadcomm 无线驱动程序与最新的 Ubuntu 14.04 更新不能很好地兼容。

我刚刚删除了 debian 包 bcmwl-kernel-source 和 dkms。

这些软件包可能运行得很好,但是 apt-get upgrade 挂起了,而且我不想处理不断冻结的更新。

现在我可以运行“sudo apt-get dist-upgrade”并且一切顺利。

相关内容