How to automatically fetch missing dependencies when installing software from .deb? [duplicate]


This question already has an answer here:

I’m trying to install MySQL Workbench on my Ubuntu box (11.04). The website has a Ubuntu .deb available for download (for 10.10 and 10.04 so I chose 10.10).


sudo dpkg -i mysql-workbench-gpl-5.2.34-1ubu1010-amd64.deb


(Reading database ... 194069 files and directories currently installed.) Preparing to replace mysql-workbench-gpl 5.2.34-1ubu1010 (using mysql-workbench-gpl-5.2.34-1ubu1010-amd64.deb) ... Unpacking replacement mysql-workbench-gpl ... dpkg: dependency problems prevent configuration of mysql-workbench-gpl: mysql-workbench-gpl depends on libctemplate0; however: Package libctemplate0 is not installed. mysql-workbench-gpl depends on libpython2.6 (>= 2.6); however: Package libpython2.6 is not installed. mysql-workbench-gpl depends on libzip1 (>= 0.8); however: Package libzip1 is not installed. mysql-workbench-gpl depends on python-paramiko; however: Package...
0 0

Ubuntu Install Deb Package Resolve DependenciesRating: 3,9/5 1643 reviews

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

Get packages and dependencies for installing offline. the packages to your Ubuntu box and either put them in. try to install all dependencies. How to install.deb file with dependencies. typical.deb package has dependencies. How to add proxy exceptions on Ubuntu desktop; Xmodulo List. Kryo. This section explains how to install packages. Debian/Ubuntu packages. which contains all of the files which the package will install. Dependency.

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...

0 0

Just some thoughts.

Not every package is available from the repositories. And not every package made available on the web comes through an Ubuntu-based PPA. And perchance you have to convert an rpm to deb through alien?? ....

That being said, here's my experience...

Gdebi -- great GUI tool that will try to resolve dependencies as much as possible. But you may be stuck if your package depends on libraries not available in the repositories you use.

aptitude -- as a command-line tool, it is interchangeable with apt-get. These have a problem in that, if you have a system where packages are marked as automatically installed but no longer have any dependent packages installed, or an install failed with several packages still marked for update, any attempt to install any new pacakges will attempt to work also on all the other marked packages. So, trying to install a single package with aptitude or apt-get may do more than you want it to.

dpkg -- will...

0 0

AFAIK, dpkg provides no mechanism for dependency resolving. It checks/warns for dependencies, but does not do any further action. You'll have to solve the problems on your own.

As the Debian wiki states here:

dpkg checks dependencies and will refuse to install a package whose dependencies aren't met, but it won't help you find and install those dependencies. You need a higher-level tool (eg dselect or apt-get) for that.

So i think that you'll have to use apt-get or aptitude in order to install the package you're interested in, as well as any dependencies involved.

Update: Since this package is not in the 11.04 repositories, just run:

sudo apt-get install libctemplate0 libzip1 libpython2.6 python-pysqlite2 python-paramiko

and then

sudo dpkg -i mysql-workbench-gpl-5.2.34-1ubu1010-amd64.deb

and you should be...

0 0

dpkg doesn't have dependency support. There is a way around it but that would require you to make a local database (and thus you would already know the dependencies) and it is considered obsolete (...).

Does it have to be command line? (server install?) If so also have a look at apt-get -f but be careful: solving dependencies after install could have you end up with a broken system.

gdebi (gui frontend) used to be able to do this but got replaced with USC.

How did you download the .deb. Some of the new 11.04 features is the handling of .deb downloaded from a website: it gets opend in USC so dependencies will be solved by the installer.

EDIT based on comment by andrew: sudo gdebi foo-1.2.3.deb would do the...

0 0