The Notebook Review forums were hosted by TechTarget, who shut down them down on January 31, 2022. This static read-only archive was pulled by NBR forum users between January 20 and January 31, 2022, in an effort to make sure that the valuable technical information that had been posted on the forums is preserved. For current discussions, many NBR forum users moved over to NotebookTalk.net after the shutdown.
Problems? See this thread at archive.org.

    Is it possible to force install a .deb package?

    Discussion in 'Linux Compatibility and Software' started by Billt Joe, Apr 25, 2010.

  1. Billt Joe

    Billt Joe Notebook Consultant

    Reputations:
    9
    Messages:
    141
    Likes Received:
    0
    Trophy Points:
    30
    In ubuntu 9.10 I don't have internet access because my USB modem does not work in it. So to get packages I install Ubuntu in a Virtual machine in Windows and I use AptonCD to bring the packages to the real Ubuntu install. But AptonCD won't install the packages itself for whatever reason so I tried manually installing each package individually. The thing is that some packages depend on themselves to be installed. o_O
    Is there a way to force install these packages in the terminal or something?
     
  2. ALLurGroceries

    ALLurGroceries  Vegan Vermin Super Moderator

    Reputations:
    15,730
    Messages:
    7,146
    Likes Received:
    2,343
    Trophy Points:
    331
    You can use --force-depends to dpkg but you should be sure you need to do this, it might break things in which case you need to use it again to remove. If these are updates for critical packages you may not want to take this risk unless you have .debs for the current versions you have installed. For the USB modem to work it may just need a kernel module.
     
  3. Billt Joe

    Billt Joe Notebook Consultant

    Reputations:
    9
    Messages:
    141
    Likes Received:
    0
    Trophy Points:
    30
    The only culprit I can think of off the top of my head right now is Open Office. So I don't think that is too critical :)

    so what would the command be? "--force-depends *file name*"
    or something like that?
     
  4. ALLurGroceries

    ALLurGroceries  Vegan Vermin Super Moderator

    Reputations:
    15,730
    Messages:
    7,146
    Likes Received:
    2,343
    Trophy Points:
    331
    Yeah, dpkg --force-depends -i filename.deb to install and dpkg --force-depends -r packagename to remove.
     
  5. Falmarri

    Falmarri Notebook Enthusiast

    Reputations:
    0
    Messages:
    27
    Likes Received:
    0
    Trophy Points:
    5
    You may be better off just compiling what you need from source. That way you're sure to have the dependencies. Also, 10.04 may have a fix for your internet issues. Do you really not need internet other than the occasional package install?
     
  6. timberwolf

    timberwolf Notebook Consultant

    Reputations:
    131
    Messages:
    288
    Likes Received:
    0
    Trophy Points:
    30
  7. Billt Joe

    Billt Joe Notebook Consultant

    Reputations:
    9
    Messages:
    141
    Likes Received:
    0
    Trophy Points:
    30
    Oh wow. That thread got bigger since I last checked. (which was a long time ago) but I'm not trying to make this thread about that and was just stating why I don't have internet in ubuntu.

    Thanks for the answers though. They helped! :)