最近与一个朋友联络,要用 QQ
去QQ官网上只有比较早的版本,安装后,还提示必须更新,点击还找不到下载,悲了个催。
后面幸好有 web qq 暂时解决了这个问题。
不过安装的时候产生的影响,让人无语。
由于采用 dpkg -i --force-all 安装,不能用也就不说了。还产生了一个依赖问题。
过了一段时间,发现 skype amd64 不能用了。
找到之前的安装包 skype-ubuntu-intrepid_2.1.0.81-1_amd64.deb 重新 dpkg -i 安装提示:
dpkg: warning: parsing file '/var/lib/dpkg/available' near line 16035 package 'linuxqq':
error in 'Version' field string 'v1.0.2-beta1': version number does not start with digit
Selecting previously unselected package skype.
(Reading database ... 193043 files and directories currently installed.)
Preparing to unpack skype-ubuntu-intrepid_2.1.0.81-1_amd64.deb ...
Unpacking skype (2.1.0.81-1) ...
dpkg: dependency problems prevent configuration of skype:
skype depends on lib32asound2 (>> 1.0.14); however:
Package lib32asound2 is not installed.
dpkg: error processing package skype (--install):
dependency problems - leaving unconfigured
Processing triggers for gnome-menus (3.10.1-0ubuntu2) ...
Processing triggers for desktop-file-utils (0.22-1ubuntu1) ...
Processing triggers for bamfdaemon (0.5.1+14.04.20140409-0ubuntu1) ...
Rebuilding /usr/share/applications/bamf-2.index...
Processing triggers for mime-support (3.54ubuntu1) ...
Errors were encountered while processing:
skype
分明是依赖库的问题,这是Linux 最心烦的问题。
后来查资料 https://answers.launchpad.net/ubuntu/+question/10265
上说用 sudo dpkg --clear-avail && sudo apt-get update 重新建立依赖关系。
重新安装:sudo dpkg -i skype-ubuntu-intrepid_2.1.0.81-1_amd64.deb 提示:
(Reading database ... 193180 files and directories currently installed.)
Preparing to unpack skype-ubuntu-intrepid_2.1.0.81-1_amd64.deb ...
Unpacking skype (2.1.0.81-1) over (2.1.0.81-1) ...
dpkg: dependency problems prevent configuration of skype:
skype depends on lib32asound2 (>> 1.0.14); however:
Package lib32asound2 is not installed.
dpkg: error processing package skype (--install):
dependency problems - leaving unconfigured
Processing triggers for gnome-menus (3.10.1-0ubuntu2) ...
Processing triggers for desktop-file-utils (0.22-1ubuntu1) ...
Processing triggers for bamfdaemon (0.5.1+14.04.20140409-0ubuntu1) ...
Rebuilding /usr/share/applications/bamf-2.index...
Processing triggers for mime-support (3.54ubuntu1) ...
Errors were encountered while processing:
skype
是说 lib32aound2 这个库找不到。各种安装(apt-get synaptic)装不上。
提示 libasound2 这个被依赖的库没有安装。可明明已经安装了,想可能是 x86 与 amd64 的问题。问题就大了去了。
又查了些资料,有的说要重新配置一下。
于是:sudo dpkg --configure -a
再安装问题依旧。
然后参考: http://unix.stackexchange.com/questions/45996/installing-skype-on-debian-x64
习惯上:sudo dpkg -i -f skype-ubuntu-intrepid_2.1.0.81-1_amd64.deb
提示:dpkg: error: conflicting actions -f (--field) and -i (--install)
然后:sudo dpkg -f skype-ubuntu-intrepid_2.1.0.81-1_amd64.deb
提示了一些 skype 基本信息。以为安装好了。
执行:sudo dpkg -i skype-ubuntu-intrepid_2.1.0.81-1_amd64.deb
问题依旧。
然后执行:aptitude search ia32-libs
以为安装了,其实也只是搜索了下,显示:
i ia32-libs - ia32 shared libraries - transitional packa
v ia32-libs-gtk -
v ia32-libs-multiarch -
i A ia32-libs-multiarch:i386 - Multi-arch versions of former ia32-librari
v ia32-libs-sdl -
安装问题依旧。当然上面这些提示是安装不了的,因为我之前安装过了ia32-libs.不过它提示:
sudo apt-get install ia32-libs-multiarch:i386
Reading package lists... Done
Building dependency tree
Reading state information... Done
ia32-libs-multiarch:i386 is already the newest version.
ia32-libs-multiarch:i386 set to manually installed.
You might want to run 'apt-get -f install' to correct these:
The following packages have unmet dependencies:
skype : Depends: lib32asound2 (> 1.0.14) but it is not going to be installed
E: Unmet dependencies. Try 'apt-get -f install' with no packages (or specify a solution).
它竟然猜到了我想干嘛,呵呵
于是:sudo apt-get -f install
取部分提示:
The following extra packages will be installed:
skype skype-bin:i386
The following NEW packages will be installed:
skype-bin:i386
The following packages will be upgraded:
skype
1 upgraded, 1 newly installed, 0 to remove and 364 not upgraded.
1 not fully installed or removed.
Need to get 16.1 kB/20.1 MB of archives.
After this operation, 18.3 MB of additional disk space will be used.
Do you want to continue? [Y/n] y
眼前一片光明。它自动升级、安装了。
安装完以后,启动 OK. 没有之前的 can't connect 问题。而且还是新版本的。
到底哪一部升效了呢?
习惯上 sudo apt-get -f install 后面加个包名。没有仔细看提示呀。
看来主要是 -f 修复了依赖关系,其实本来应该是没有关系的。因为之前一切正常。
后来 dpkg -i --force-all 安装破坏了依赖关系。
所以 Linux 下强制安装时一定要小心呀,切记切记。
感谢:http://unix.stackexchange.com/questions/45996/installing-skype-on-debian-x64 的提示,没有仔细看 jordanm 的回复,现在是明白了。
该死的 Linux QQ 做得烂不说,载之后还有依赖的问题。
难道以上的操作都没有起作用吗?会不会对以后其它库产生影响?要小心啊。