linux - Can't install Skype on Debian through dpkg

06
2014-04
  • AbitDeveloper

    This is my terminal output:

    # 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]?
    

    I amd64 architecture and I also added i386 using "dpkg - add-architecture i386".

    Is there any way to fix it?

    EDIT:

    # 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!'
     ?]
    
  • Answers
  • MariusMatutiae

    Nowadays, you install skype on Debian by enabling MultiArch, then installing the i386 package, as follows:

       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
    

    If you still cannot install the package, it means you have not set the repos. Add most, or all, of the following lines (as sudo) to your /etc/apt/sources.list file:

       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      
    

    then run

       sudo apt-get update
    

    and try the first four lines again.

  • stein

    for Wheezy use Ubuntu Lucid package. that works. latest has unsolvable deps. su too root in terminal in directory containing deb (download from skype.com) type dpkg -i then apt-get -f install to pull down dependencies. Or use Gdebi package installer.


  • Related Question

    mon installation in Linux/Debian
  • sjain

    Hi I am installing mon in Debian?linux using command apt-get install mon

    But It's showing the error and aborting the installation. error is like :

    apt-get install mon

    Reading package lists... Done

    Building dependency tree

    Reading state information... Done

    The following NEW packages will be installed:

    mon 0 upgraded, 1 newly installed, 0 to remove and 109 not upgraded.

    Need to get 0B/179kB of archives.

    After this operation, 741kB of additional disk space will be used.

    (Reading database ... 106004 files and directories currently installed.)

    Unpacking mon (from .../mon_0.99.2-13_i386.deb) ...

    Looking for user name availability (mon)... already taken.

    Installation aborted!

    dpkg: error processing /var/cache/apt/archives/mon_0.99.2-13_i386.deb (--unpack):

    subprocess pre-installation script returned error exit status 1

    Errors were encountered while processing:

    /var/cache/apt/archives/mon_0.99.2-13_i386.deb

    E: Sub-process /usr/bin/dpkg returned an error code (1)


  • Related Answers
  • Gilles

    Looking for user name availability (mon)... already taken.

    The mon program runs as a dedicated system user also called mon. The installer tried to create this system user, but there is already a user with this name on your system.

    If you can remove or rename the existing mon user (and group if you also have one), this will let you install the mon package. Otherwise you'll have to pick a different name to run the mon program under, which requires modifying and recompiling the source package.


    EDIT: Here's how to rename the existing mon user to newname (pick a better name), at least the easy part. I assume this is a local user, not a NIS or LDAP user (otherwise the resolution would be very different). It's ok if some of the mv commands are for files that don't exist, just skip them.

    usermod -l newname mon
    groupmod -n newname mon
    mv /var/spool/cron/crontabs/mon /var/spool/cron/crontabs/newname
    mv /var/spool/main/mon /var/spool/main/newname
    

    The hard part is finding any reference you have on your system to the old mon user name. There's no hard-and-fast rule for this, it depends a lot on what that user's been doing.

  • Janne Pikkarainen

    Sounds like that mon deb package was not transferred completely or it was otherwise corrupted.

    What if you perform

    rm -f /var/cache/apt/archives/mon_0.99.2-13_i386.deb
    

    and then retry the installation?