Hot answers tagged

94

Are you looking for all dpkg commands? click this link to have a read. 15 dpkg commands to Manage Debian based Linux Servers DPKG commands There are two actions, they are dpkg-query and dpkg-deb. Install a package # sudo dpkg -i {package_name} # sudo dpkg -i skype-ubuntu-precise_4.2.0.11-1_i386.deb Remove a package # sudo dpkg -r {package_name} # ...


91

If you are using firefox, and opted to download and open the file with Software Install, what has likely occurred is the file has been downloaded into the /tmp/mozilla_userX directory, from which the Ubuntu Software Installer is not able to install anything. Opting to save the file first before opening with Software Install should solve this issue. For files ...


75

While dpkg -i indeed installs the package, it doesn't do any automatic dependency resolution, meanwhile there are two other alternatives, using gdebi, or the apt-get tool. To use the later just use: sudo apt-get install /path/to/package.deb Even if you are on the directory with the package you need to give a path using ./ at the start: sudo apt-get ...


59

This is bug #1573026. Make sure you click the "this affects me too". This bug has now been fixed upstream. Hopefully an update will be issued promptly. What are the workarounds? You can use the GDebi package manager, available in the software centre or with sudo apt-get install gdebi via the command line. Then, to install the package, open GDebi and ...


52

Generally speaking, I would say you should stay with DEB for most applications that rely on system libraries. This has the advantage that if you update this one library e.g. for security reasons, all applications using this library will benefit, even if the maintainer of the original application is unaware of the vulnerability. SNAPS are good in cases where ...


35

Note: I work on the Ubuntu security team and helped design the application confinement story for Ubuntu. I reworded the questions for clarity. Q: "Will click packages be safer with regard to the system and user data or will it be the same?" A: In general, click packages are safer than debs with regard to system and user data. Click packages do not ...


32

From the 1.1 branch onwards, apt-get supports installing local packages along with dependencies in the way of: sudo apt-get install ./your-package.deb Note the ./ in front of package file name, which is mandatory otherwise the name will be used as package name, not a file name.


31

Every solution here assumes you know or can find the name of the package, but none provide how to remove a package if all you have is the deb. To that end, the below command will extract the package name from the deb and remove that package name. dpkg -r $(dpkg -f your-file-here.deb Package) NB: this does not confirm that the package being removed is the ...


31

If you're looking for a reliable GUI way to install .deb files, use gdebi. To see if you already have it installed on your system... dpkg -l gdebi | grep ii If it's not there, install it this way... sudo apt-get update sudo apt-get install gdebi Then get the "Properties" of any .deb file, and set the default "Open With" application as ...


27

A handy tip when installing a program like Libreoffice which has multiple .deb files in a folder is to use. sudo dpkg -i *.deb


27

Like the answer by @Eric Carvalho deb is not command line If you have deb then url like this: deb http://download.virtualbox.org/virtualbox/debian trusty contrib Edit Like commit of @muru, you need to create new file with the extension .list into /etc/apt/source.list.d/ folder: Example: I want to download Oracle virtualbox, create new file : sudo ...


25

Either you can install using terminal as previous answers say, sudo dpkg -i google-chrome-stable_current_i386.deb Or else, You can double click the downloaded .deb file and it will be opened in Ubuntu Software Center(If you are using ubuntu). Then you can install it clicking on install button.


25

I have found myself with the same problem. I solved by removing by hand the slack package, which is just some admin tool. If your are on the directory you downloaded the package, this should do the work: sudo apt-get remove slack && sudo dpkg -i slack-desktop-2.1.2-amd64.deb Have below my full log: xino@xinopc:~/Descargas$ sudo dpkg -i slack-...


24

One of the main disadvantages of snaps is the much more space needed since every software has its own dependencies in it while deb packages use shared dependencies across the system, with a much smaller impact. The utility of snaps comes in when you want to keep your system isolated (e.g. from proprietary binaries) or the package itself relies on ...


23

Background Information There are two things in Ubuntu (and in Debian, on which Ubuntu is based) that are commonly called "the package manager": dpkg, and APT. dpkg is a program that installs and removes packages and maintains a database of what packages are installed, at what versions. When it installs packages, it does so from .deb archive files. ...


22

By default, apt stores the .deb files in /var/cache/apt/archives. If you can't find them here, you or someone else or something else(a software like Ubuntu tweak) may have run a clean-up command like sudo apt-get clean to clear up the .deb files. However, you can manually search all .deb files in your system by doing the following(may require superuser ...


22

Why did Canonical chose snaps? To quote the Ubuntu website: We originally created the snappy technology and application confinement system to ensure a carrier-grade update experience for Ubuntu mobile users and set a new standard for application security in the mobile era. Essential idea was to fix issues that are present in both .deb packages and ...


21

deb is not a unix command. If you have a line like the following (source for docker): deb https://apt.dockerproject.org/repo ubuntu-xenial main it is a line that must be available in your ubuntu sources.list so that apt-get can find future packages from this new source. However, it's not a good practice to edit the /etc/apt/sources.list file directly. ...


21

If you have version 1.17.0 or later, you can use dpkg-parsechangelog --show-field Version No need to process the output further then. This version is currently (February 2014) available in Debian Testing.


21

The package seems to be unavailable, but, very basically, here it is: Go to the site you would like to download from Download the *.deb file here Go to the directory where you saved (Most likely the downloads folder) cd ~/Downloads ls if the libhal1_0.5.14-8ubuntu1_i386.deb package is listed, sudo dpkg -i libhal1_0.5.14-8ubuntu1_i386.deb input password, y ...


20

You may be looking for debdelta package. From man debdelta-upgrade: NAME debdelta-upgrade - Downloads all deltas that may be used to 'apt-get upgrade', and apply them. SYNOPSIS debdelta-upgrade [OPTION]... [PACKAGE] ... DESCRIPTION This program is designed to download changes (deltas) that may be used to apt-get ...


20

While technically you can download a .deb and install it, it's probably not a good idea in many instances. You need to make the phone read-write (it ships read-only by default) which is not a good idea for most non-developers because the archive used for the phone isn't the full archive, so you may not even find the deb you want. We don't test apt-get ...


19

This is because the Linux ecosystem contains many many different sub branches (click on the image for a larger version)1: Now, one of the basic differences between these distributions is the package manager they use. Debian and its derivatives (one of which is Ubuntu) use dpkg which deals with .deb packages. The other large player is the RedHat Package ...


19

Remove the repository version sudo apt-get remove python-setuptools If necessary, install pip again wget https://bootstrap.pypa.io/get-pip.py sudo -H python get-pip.py Install setuptools via pip sudo -H pip install -U pip setuptools And now, start you test again % python Python 2.7.9 (default, Apr 2 2015, 15:33:21) [GCC 4.9.2] on linux2 Type "help", ...


18

It has to be enabled in debian/rules. If the package uses dh, there is a line like this in debian/rules: dh $@ Change that to dh $@ --parallel Then your commands will work, at least DEB_BUILD_OPTIONS="parallel=4"


16

The gdebi command-line solution Here's the best way to install a .deb file on Ubuntu on the command-line: sudo gdebi skype.deb If you don't have gdebi installed already, install it using sudo apt install gdebi-core. Why gdebi? gdebi will look for all the dependencies of the .deb file, and will install them before attempting to install the .deb file. I ...


16

This is an example to download a deb file. This can be done. But it need not be, if you add a PPA to the system. e.g.: sudo apt-add-repository ppa:inkscape.dev/stable But let's go on with the example of downloading. Go to the PPA page, e.g. “Inkscape Developers” team Use the link eg. Inkscape Stable Use the link View package details Use the link eg. ...


16

I referred this blog and did the trick. solution found from this forum This command got fix my issue. dpkg-buildpackage -b -rfakeroot -us -uc


15

The process is quite easy, in short you need to modify the control file and that's it. sudo alien -g package-name.rpm cd package-dir/ sudo vi debian/control Now change the architecture (i386 in my case) to be the one you need. For example, I added the amd64 archicture and this is how the line ended up: Architecture: i386, amd64 Last step: sudo debian/...


13

On Ubuntu, you don't have to manually edit the source.list to add the repository. Instead, you can use add-apt-repository, as you would do for a PPA. For example, to add the LLVM repository, you can call: sudo add-apt-repository 'deb http://apt.llvm.org/trusty/ llvm-toolchain-trusty main' As you can see, we must pass the deb line as a single argument to ...


Only top voted, non community-wiki answers of a minimum length are eligible