无法通过 dpkg 在 Debian 上安装 Skype

无法通过 dpkg 在 Debian 上安装 Skype

这是我的终端输出:

# dpkg -i skype-debian_4.2.0.11-1_i386.deb 
Selecting previously unselected package skype.
(Reading database ... 148114 files and directories currently installed.)
Unpacking skype (from skype-debian_4.2.0.11-1_i386.deb) ...
dpkg: dependency problems prevent configuration of skype:
 skype depends on libasound2 (>= 1.0.16); however:
  Package libasound2:i386 is not installed.
 skype depends on libc6 (>= 2.3.6-6~); however:
  Package libc6:i386 is not installed.
 skype depends on libc6 (>= 2.7); however:
  Package libc6:i386 is not installed.
 skype depends on libgcc1 (>= 1:4.1.1); however:
  Package libgcc1:i386 is not installed.
 skype depends on libqt4-dbus (>= 4:4.5.3); however:
  Package libqt4-dbus is not installed.
 skype depends on libqt4-network (>= 4:4.8.0); however:
  Package libqt4-network:i386 is not installed.
 skype depends on libqt4-xml (>= 4:4.5.3); however:
  Package libqt4-xml:i386 is not installed.
 skype depends on libqtcore4 (>= 4:4.7.0~beta1); however:
  Package libqtcore4:i386 is not installed.
 skype depends on libqtgui4 (>= 4:4.8.0); however:
  Package libqtgui4:i386 is not installed.
 skype depends on libqtwebkit4 (>= 2.1.0~2011week13); however:
  Package libqtwebkit4:i386 is not installed.
 skype depends on l
dpkg: error processing skype (--install):
 dependency problems - leaving unconfigured
Processing triggers for desktop-file-utils ...
Processing triggers for gnome-menus ...
Processing triggers for hicolor-icon-theme ...
Errors were encountered while processing:
 skype


# apt-get install -f
Reading package lists... Done
Building dependency tree       
Reading state information... Done
Correcting dependencies... Done
The following packages will be REMOVED:
  skype:i386
0 upgraded, 0 newly installed, 1 to remove and 0 not upgraded.
1 not fully installed or removed.
After this operation, 39.2 MB disk space will be freed.
Do you want to continue [Y/n]?

我的架构是 amd64,并且我还使用“dpkg - add-architecture i386”添加了 i386。

有什么办法可以解决这个问题吗?

编辑:

# apt-get install libasound2:i386
Reading package lists... Done
Building dependency tree       
Reading state information... Done
Some packages could not be installed. This may mean that you have
requested an impossible situation or if you are using the unstable
distribution that some required packages have not yet been created or been moved out of Incoming.
The following information may help to resolve the situation:

The following packages have unmet dependencies:
 libasound2:i386 : Depends: libc6:i386 (>= 2.7) but it is not going to be installed
E: Unable to correct problems, you have held broken packages.

# apt-get install libc6:i386
Reading package lists... Done
Building dependency tree       
Reading state information... Done
The following packages were automatically installed and are no longer required:
  audacity-data discover-data eclipse-platform-data hp-ppd javascript-common klibc-utils libasm3-java libaspectj-java libcommons-cli-java libcommons-codec-java libcommons-dbcp-java libcommons-httpclient-java
  libcommons-lang-java libcommons-pool-java libeasymock-java libecj-java libequinox-osgi-java libfelix-bundlerepository-java libfelix-osgi-obr-java libgeronimo-jta-1.1-spec-java libgoocanvas-common
  libhamcrest-java libicu4j-4.4-java libjetty8-java libjs-xmlextras libklibc libkxml2-java libmlt-data libosgi-core-java libosgi-foundation-ee-java libservlet3.0-java libtomcat7-java logcheck-database
  mysql-common wwwconfig-common
Use 'apt-get autoremove' to remove them.
The following extra packages will be installed:
  libc6-i686:i386 libgcc1:i386 multiarch-support:i386
Suggested packages:
  glibc-doc:i386 locales:i386
The following packages will be REMOVED:
  accountsservice acl acpi acpi-fakekey acpi-support acpi-support-base acpid adduser aisleriot alacarte alsa-base alsa-utils anacron ant ant-optional apache2.2-bin apg apt apt-listchanges apt-utils


!!! here were a lot of packages !!!


  xserver-xorg-video-vmware xserver-xorg-video-voodoo xterm xulrunner-17.0 xz-utils yelp zeitgeist-core zenity zlib1g
The following NEW packages will be installed:
  libc6:i386 libc6-i686:i386 libgcc1:i386 multiarch-support:i386
WARNING: The following essential packages will be removed.
This should NOT be done unless you know exactly what you are doing!
  apt libapt-pkg4.12 (due to apt) libc6 (due to apt) libgcc1 (due to apt) libstdc++6 (due to apt) debian-archive-keyring (due to apt) gnupg (due to apt) base-files base-passwd bash debianutils (due to bash)
  dash (due to bash) libtinfo5 (due to bash) bsdutils coreutils dpkg (due to coreutils) install-info (due to coreutils) libacl1 (due to coreutils) libattr1 (due to coreutils) libselinux1 (due to coreutils)
  diffutils libbz2-1.0 (due to dpkg) liblzma5 (due to dpkg) zlib1g (due to dpkg) tar (due to dpkg) e2fsprogs e2fslibs (due to e2fsprogs) libblkid1 (due to e2fsprogs) libcomerr2 (due to e2fsprogs) libss2 (due
  to e2fsprogs) libuuid1 (due to e2fsprogs) util-linux (due to e2fsprogs) findutils grep gzip hostname login libpam0g (due to login) libpam-runtime (due to login) libpam-modules (due to login) mount libmount1
  (due to mount) libsepol1 (due to mount) ncurses-bin perl-base sed sysvinit initscripts (due to sysvinit) sysv-rc (due to sysvinit) sysvinit-utils (due to sysvinit) tzdata (due to util-linux) debconf (due to
  util-linux) libncurses5 (due to util-linux) libslang2 (due to util-linux)
0 upgraded, 4 newly installed, 1681 to remove and 0 not upgraded.
Need to get 5,358 kB/5,411 kB of archives.
After this operation, 3,116 MB disk space will be freed.
You are about to do something potentially harmful.
To continue type in the phrase 'Yes, do as I say!'
 ?]

答案1

现在,你可以通过启用多架构,然后安装i386包,如下:

   dpkg --add-architecture i386
   apt-get update
   wget -O skype-install.deb http://www.skype.com/go/getskype-linux-deb
   dpkg -i skype-install.deb

如果仍然无法安装软件包,则说明您尚未设置存储库。添加以下大部分或全部行(如须藤)到您的 /etc/apt/sources.list 文件:

   deb http://ftp.us.debian.org/debian/ wheezy main contrib non-free
   deb http://security.debian.org/ wheezy/updates main contrib non-free   
   deb http://ftp.us.debian.org/debian/ wheezy-updates main contrib non-free 
   deb http://ftp.us.debian.org/debian/ wheezy-proposed-updates main contrib non-free
   deb http://ftp.debian.org/debian/ wheezy-backports main      

然后运行

   sudo apt-get update

并再次尝试前四行。

答案2

$~ wget http://ftp.us.debian.org/debian/pool/main/a/alsa-plugins/libasound2-plugins_1.0.25-2_i386.deb

$~ mkdir /tmp/deb-temp
$~ dpkg-deb -x libasound2-plugins_1.0.25-2_i386.deb /tmp/deb-temp
$~ su - (your root password) or sudo su - (your password)
root $~
root $~ cp -a /tmp/deb-temp/usr/lib/i386-linux-gnu/alsa-lib /usr/lib/i386-linux-gnu/
root $~ touch /etc/ld.so.conf.d/zz_i386-alsalibasound-plugins.conf 
root $~ vi /etc/ld.so.conf.d/zz_i386-alsalibasound-plugins.conf

# make the file contents looks like:
# Legacy biarch compatibility support
/usr/lib/i386-linux-gnu/alsa-lib/

# save your file. Run: 

root $~ ldconfig

答案3

对于 Wheezy,请使用 Ubuntu Lucid 软件包。这样可行。最新版本有无法解决的依赖项。su 也是 root,在终端中包含 deb 的目录中(从 skype.com 下载)输入 dpkg -i,然后 apt-get -f install 以下载依赖项。或者使用 Gdebi 软件包安装程序。

相关内容