Questions tagged [deb]

Questions about the Debian packaging format with the extension '.deb'. Packages for Ubuntu are provided in this format.

.deb is the extension of the Debian software package format and the most often used name for such binary packages. Like the "Deb" part of the term Debian, it originates from the name of Debra, erstwhile girlfriend and now ex-wife of Debian's founder Ian Murdock.

Debian packages are also used in distributions based on Debian, such as Ubuntu and official derivatives of Ubuntu (Lubuntu, Xubuntu).

Technically, such a package is a .ar archive with a different file extension, possibly compressed, and containing a file called control. This file includes important information, such as dependencies, recommendations, and conflicting packages. It will also include scripts (including a shebang to allow running under any executable). Four such scripts exist: Pre-install, post-install, pre-remove, and post-remove. The package(and the control file) must conform to the Debian policy manual. Many aspects of this policy can be automatically checked using a tool called Lintian (list of tags).

Any question specifically relating to installing a .deb file should be tagged with this as well as , weather you are installing from the command line or through the software centre or similar GUI installation program, such as gdebi.

Any questions about the .deb format should be tagged with this, including (but not limited to) questions about why ubuntu uses it, how to make one and the way it works.

No questions about intalling via apt-get or another system, unless it is installing off a .deb file that has been saved on the machine.

861 questions
332
votes
12 answers

How to uninstall a .deb package?

Suppose I download a .deb package from a website and install it. (I assume that when I double click the .deb file, the package is installed through a GUI that interfaces with dpkg right?) How can I uninstall it?
183
votes
7 answers

Why am I getting "Command 'deb' not found"?

I have come across several installation instructions that include the command deb. But it appears that this command is not available on my installation. Where can I get this command? Is there a work-around?
Kevin Burton
  • 1,979
166
votes
8 answers

How can I check dependency list for a deb package

How can I check dependency list for a deb package. I am running Ubuntu 11.10 and I have backed up all deb packages from var/cache/apt/archives. I want to format my pc and re-install selected applications only. Also how can I get the list of…
Vikramjeet
  • 5,936
  • 10
  • 37
  • 43
94
votes
8 answers

How do I create a deb package for a single python script?

I have a single python script that I want to distribute as a deb package. It is a indicator which shows local date in Unity panel. I did follow create a .deb Package from scripts or binaries but I could not create a deb package because it fails.…
sagarchalise
  • 24,306
77
votes
6 answers

Problem installing .deb in Software Install Ubuntu 20.04

I tried to install some .deb files in Ubuntu 20.04 from GitHub and other internet sources, but when I open it with Software Install it gives me this problem (Failed to install file: not supported). The only way for me to install them is to go to the…
0xFR
  • 949
  • 1
  • 8
  • 16
77
votes
7 answers

If a package is available as both a deb and a snap, which method is preferrable?

Of course for most packages the answer is trivial: if it's some tool or library, deb is the only option, while for some proprietary software snap is the only option. It seems Ubuntu is heavily pushing and promoting Snap packages, citing advantages…
Pepijn
  • 873
75
votes
1 answer

create a .deb Package from scripts or binaries

I searched for a simple way to create .deb Packages for things which have no source code to compile (configs, shellscripts, proprietary software). This was quite a problem because most of the package tutorials are assuming you have a source tarball…
56
votes
8 answers

Problem with .deb packages on Ubuntu 16.04

This bug has now been fixed upstream. An update has been issued. If you still cannot install, ensure you have updated fully, and then restart your computer. I am trying to install downloaded DEB packages. Each time, I see a warning like this: And…
40
votes
4 answers

Compiling source into a DEB package

I have always had a problem installing and removing compiled software, so I have decided I would like to build software from source into a .deb package for easier installation/removal. I would like to know of an easy and short way to build source…
Ashu
  • 9,642
38
votes
6 answers

How do I install an application by DEB file for a single user only?

When installing applications via the software center or by a DEB file they will usually be installed system wide for all users. Is there a way to install an application for a single user only?
Takkat
  • 144,580
32
votes
2 answers

AnyDesk doesn’t work after upgrading to Ubuntu 22.04 LTS

After upgrading to Ubuntu 22.04 LTS, when I open AnyDesk app (downloaded from official website .deb file) nothing happens. In logs I can see this error/message: Could not create transient scope for PID 7866:…
sky
  • 321
31
votes
2 answers

What security differences are between click and .deb package?

Installing a random (nasty?) .deb can be dangerous because it will grant all privilege to the apps and daemon installed because the .deb has some configs asking to applied if the user valid his password at the installation process. Click package…
cm-t
  • 539
30
votes
2 answers

What is the Snap packaging format?

I have a very little knowledge about the 'Snap packaging format'. What I know is that 'Snap' is an alternative packaging format like .deb. What I don't know is Why did Canonical chose it? What are the main advantages of 'Snap' over .deb? Will…
29
votes
2 answers

What precautions should I take with .debs I find on the internet?

So I was browsing the web the other day, and I came across a few places that wanted me to download .deb files - and since those are installed by root (and as such have the "powers" and capabilities of root), I wasn't sure about that.
jrg
  • 61,707
27
votes
2 answers

What is the apt equivalent to "rpm -V" (Verify installed packages)

On a RedHat/CentOS system, I can verify the installed RPMs on my system using rpm -V. What is the Ubuntu or apt equivalent of this command?
1
2 3
57 58