2

I keep trying to install programs, by simply downloading the program, and clicking on it, but I see things are not that simple. Has anyone come up with a simple way to install different programs, without having to rely on Synaptic or Aptitude?

Example: I tried to install a .deb package. Went to the site, downloaded the package, opened up the command line (after making the file executable), the errors began. First there was a dependency file that was required, then there was a public key that was needed, man can someone make this a little bit simpler for a newbie. I think a newbie spends half of his time searching google to figure out how to make things work on Linux. Someone please help make this more simple? Tanks

3
  • Install Gdebi. askubuntu.com/a/23739/163331
    – Parto
    Feb 11, 2014 at 17:30
  • sounds like you are looking to install a specific ".deb" which program are you having a problem with? And which version are you using.
    – Mateo
    Feb 11, 2014 at 17:42
  • ffmpeg -i video.mp4 -f mp3 -ab 192000 -vn music.mp3
    – showmemn
    Feb 11, 2014 at 17:55

2 Answers 2

4

To install a .deb package, just press Ctrl+Alt+T on your keyboard to open Terminal. When it opens, run the command(s) below:

sudo dpkg -i <package_name>.deb

If you get a dependency error, you can run sudo apt-get install -f to download and install dependencies, otherwise; you'll have to install dependencies on your own.

For a new user, its easier to use synaptic , Ubuntu software Center, or apt to install packages. Take a look at How do I install applications in Ubuntu?

For more info on dpkg, see dpkg Command Cheat Sheet

17
  • What about installing other programs like .exe, is that also possible with gdebi? I know the program is for Windows, but is there a way to recompile this?
    – showmemn
    Feb 11, 2014 at 17:38
  • Also, what about installing from a URL?
    – showmemn
    Feb 11, 2014 at 17:39
  • .exe files are windows based, and can't be installed natively in Ubuntu. The way to use .exe files in Ubuntu is by using Wine. what do you mean installing from a UR?
    – Mitch
    Feb 11, 2014 at 17:43
  • I remember seeing something about useing apt-get from the browser windows
    – showmemn
    Feb 11, 2014 at 17:45
  • do you mean "apt-links" the "Ubuntu apps directory" gives you an apt link that will open in the software center for example apps.ubuntu.com/cat/applications/precise/gdebi (these usually are only found there because it often confuses users, and makes it hard to download files in other browsers/systems)
    – Mateo
    Feb 11, 2014 at 17:47
3

Try to install .deb packages through gdebi,

 sudo gdebi filename.deb

Run the below command to install gdebi,

 sudo apt-get install gdebi

Installing the .deb file through gdebi will remove the dependency errors.

3
  • sudo apt-get install gdebi sudo: unable to resolve host srv1 Reading package lists... Done Building dependency tree Reading state information... Done You might want to run 'apt-get -f install' to correct these: Returned the following error:The following packages have unmet dependencies: gdebi : Depends: gdebi-core (= 0.8.5ubuntu1.1) but it is not going to be installed
    – showmemn
    Feb 11, 2014 at 17:42
  • sounds like you broke your system trying to install something else @showmemn
    – Mateo
    Feb 11, 2014 at 17:43
  • worked, had to run sudo apt-get install -f
    – showmemn
    Feb 11, 2014 at 17:44

Not the answer you're looking for? Browse other questions tagged or ask your own question.