Results 1 to 5 of 5

Thread: HOWTO: Install downloaded .DEB packages (and their dependencies) in 2 steps

  1. #1
    Join Date
    Nov 2004
    Location
    Portugal
    Beans
    362

    HOWTO: Install downloaded .DEB packages (and their dependencies) in 2 steps

    HOWTO: Install downloaded .DEB packages (and their dependencies) in 2 steps

    The first command will unpack the package, and most probably give an error of missing dependencies.
    The second command instructs apt-get to fix this problem. If these dependencies are available in the repositories, it will install them, and sucessfully finish the installation of downloaded_package.deb.

    Code:
    sudo dpkg -i downloaded_package.deb
    sudo apt-get -f install
    Be aware though, that not all .DEB packages were made with your version of Ubuntu in mind. You should inform yourself if it was intended for Ubuntu Hoary. If it was not (for example, many are packaged with Debian in mind), it may still work, but then again it may not. It might even make apt-get want to remove some packages you want to keep. You'll have to tell him not to continue , and then remove the offending reason with
    Code:
    sudo apt-get remove downloaded_package
    .
    If you are not too knowledgable yet with apt-get, dpkg, or ubuntu for that matter, get your new software from the oficial Main and Backports repositories as much as you can (using Synaptic or apt-get). It have been reviewed, packaged and tested to integrate well with your ubuntu system.
    Are you into the White-Plastic Life-Style?

  2. #2
    Join Date
    Jul 2007
    Location
    Dharan, Nepal
    Beans
    22
    Distro
    Ubuntu 11.04 Natty Narwhal

    Re: HOWTO: Install downloaded .DEB packages (and their dependencies) in 2 steps

    from shell, go to the folder where you have downloaded the .deb and the dependencies...
    and then use:

    sudo dpkg -i --force-depends *.deb

    in a single line

  3. #3
    Join Date
    Jul 2007
    Location
    Dharan, Nepal
    Beans
    22
    Distro
    Ubuntu 11.04 Natty Narwhal

    Re: HOWTO: Install downloaded .DEB packages (and their dependencies) in 2 steps

    from shell, go to the folder where you have downloaded the .deb and the dependencies...
    and then use:

    sudo dpkg -i --force-depends *.deb

    in a single line

  4. #4
    Join Date
    Aug 2008
    Beans
    30

    Re: HOWTO: Install downloaded .DEB packages (and their dependencies) in 2 steps

    Thank you all!! Very helpful - and the

    Code:
    sudo dpkg -i --force-depends *.deb
    is a real time saver!

    John

  5. #5
    Join Date
    Apr 2006
    Beans
    22
    Distro
    Ubuntu 9.04 Jaunty Jackalope

    Exclamation Re: HOWTO: Install downloaded .DEB packages (and their dependencies) in 2 steps

    DONT USE --force-depends!
    It will not install dependencies, but it will configure package without validating dependencies.
    Installed package will probably NOT WORK at all or work with mysterious behaviour.

    From the "man dpkg" it says for "depends":
    Code:
    depends: Turn all dependency problems into warnings
    To properly install follow the first post:
    Code:
    sudo dpkg -i downloaded_package.deb
    sudo apt-get -f install

Bookmarks

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •