Questions tagged [deb]
Deb is the binary package format used by Debian, Ubuntu, Linux Mint, … Use this tag for questions about building or inspecting deb packages.
269
questions
1
vote
1
answer
19
views
With what shared objects are the debug symbols in a debug deb package assocciated with?
I am trying to find debug symbols that are associated with various shared objects shipped under the Ubuntu 22.04 distro.
For example, let's consider the amd64 deb package: libssl3 (version 3.0.2-...
0
votes
0
answers
15
views
Error 404 appears when running apt-get update. Debian [duplicate]
When I run the docker-compose build command, the Dockerfile does not build and I get the following error:
[app 2/21] RUN apt-get update && apt-get install -y zlib1g-dev libzip-dev libonig-dev ...
2
votes
2
answers
283
views
why this package is not proposed to me to remove?
As I understand it, if a package is auto-installed and has no other packages depending on it, the system should offer to remove it.
why doesn't this happen in this case?
:~$ sudo apt list --installed |...
0
votes
1
answer
67
views
Common practice for config files
I'm making a file manager system for managing my projects. My package is named filesystem. I need a config file that stores the path to the root of my file system.
I think I need to create a file /etc/...
0
votes
1
answer
39
views
How do you define a dynamic default value in a Debian package template?
I have a package where I want the administrator to enter a list of interface names. I'd like that list to have a default. Only each system has a different list (eth0, enp0s3, eno1, to list a few).
...
0
votes
2
answers
69
views
What Debian packages are there that depend on a service while building?
I have an issue trying to build a package which depends on several other packages, some of which include a service. Said service tries to start in the postinst script and as a result fails the build ...
0
votes
1
answer
45
views
Find correct license when several binaries share the same copyright file
I'm trying to automatically obtain a list of licenses of installed packages in my Debian distribution. I'm doing so by scanning the copyright files in /usr/share/doc/as explained in the answers to ...
0
votes
2
answers
89
views
Installing .deb package twice calls postrm
I am toubleshooting a basic .deb package built from the include script below, specifically its operation if it is installed twice via dpkg -i <package-name>. I found that the postrm script is ...
1
vote
1
answer
182
views
Cannot stat file while copying script from deb package to /usr/local/bin in postinst
I have a script (nginx-sb-setup.sh) inside of my deb package in usr/local/bin directory.
During postinst, I want to copy this usr/local/bin/nginx-sb-setup.sh which is inside of my deb package to /usr/...
0
votes
1
answer
35
views
Manually installing steam on Debian 10
After downloading the .DEB package from the steam website and extracting the files, I get a pop up when clicking the launcher that says "The desktop file steam.desktop is in an insecure location ...
2
votes
1
answer
214
views
dh_install cannot find files - tried in debian/buildtmp, but files exist in debian/buildtmpusr?
I'm trying to build https://github.com/wallix/redemption on Ubuntu 20.04.
The compilation actually succeeded, and then I realized they have a python script that would create a .deb file, tools/...
-1
votes
1
answer
445
views
Debian kernel version and its package version mismatch
I'm trying to install the latest available kernel from bullseye-backports:
ceremcem@erik3:~$ sudo apt install -t bullseye-backports linux-image-amd64 btrfs-progs linux-headers-amd64
Reading package ...
0
votes
0
answers
255
views
How to log the output of deb install scripts?
Running apt-get install package logs the terminal output to /var/log/apt/term.log and the summary info about installed packages to /var/log/apt/history.log. But I need to log what the package's ...
0
votes
0
answers
91
views
Why do .deb files never seem to install using Debian's GUI "Install Software"?
This is kind of an ongoing personal mystery for me since I so seldom install software from .deb files, but in my experience I don't think I've ever seen a .deb package actually get installed using the ...
0
votes
2
answers
121
views
How to limit sudo for user only for rpm/deb
Is there anyway to limit sudo for user, in order to only for invocation of rpm/deb to install packages?
0
votes
0
answers
25
views
How to set rpm/deb package as security update
I have fixed a security related issue and need to publish the rpm/deb package as security update.
How is the package "marked" as a security update?
Is it something to set in rpmspec while ...
1
vote
1
answer
1k
views
Installing a deb file build with checkinstall on Ubuntu into a docker container based on Debian
I have compiled a C++ software on my Ubuntu 22.04 laptop, and used checkinstall to install it. This build the corresponding .deb file and that's nice.
But now I want to install that .deb file into a ...
3
votes
2
answers
128
views
How are binary packages isolated from host system?
How are binary packages (rpm, deb, etc) created for binutils, gcc and other packages that link to different libs depending on what exists on the host system?
In the LFS project, to isolate the new ...
0
votes
1
answer
76
views
Is it possible to always have the latest version of the deb package of vs code installed?
I want to install the latest version of vs code in Pop OS. The apt repository doesn't offer the latest version and I don't prefer flatpaks/snaps so installing the deb package of vs-code from the ...
2
votes
0
answers
47
views
Best practice for including custom .deb in Debian preseed
I have a bootable Debian 11 USB drive, and I'm writing a preseed configuration file to be loading at installation time.
I've written a custom app.deb (not the actual name), and my goal is to have it ...
1
vote
1
answer
69
views
Debian - check which versions of a package were previously installed
Let's take NGINX as an example. I've installed NGINX and after a year it has received several security updates (through unattended-upgrades) and another system operator ran apt-get upgrade a couple of ...
1
vote
1
answer
182
views
Debian shared library setup
I have a Debian package for a shared library.
Lets assume the lib is called threadx.
And I have the version 0.0.1 installed.
So this package contains:
/lib/i386-linux-gnu/libthreadx.so.0.0.1
/lib/i386-...
0
votes
0
answers
89
views
apt-get is asking for an older .deb file from a local repo even after putting a newer version
I have a local repository setup on the server (server1) hosted by Nginx. It has few .deb packages and a bash script on another local server (server 2) uses the repo to install packages. I had to ...
-2
votes
1
answer
347
views
Is there any way to add all apt repository of Debian based Linux distros on your Debian system?
Let's take example of Ubuntu and Kali Linux, both are based on Debian Linux. but many packages in Kali's apt sources are not available in Ubuntu's apt sources. But if we add Kali's sources and GPG-...
1
vote
1
answer
107
views
Decode package and directory structure to URL from `/etc/apt/sources.list.d/` repo file
I'm not an apt user, but I'm in a scenario, where I need to grab a .deb package off of a repo.
I'm not a user of a deb-based distro, so I can't easily install a deb repo for what I need it. This would ...
1
vote
1
answer
143
views
Is a reboot required when installing a .deb package off-repo in Parrot OS?
I have just downloaded the .deb package for slack-desktop from the official site, however, when looking for it in the menu it didn't show up in the menu. Then I rebooted the PC and searched for the ...
0
votes
0
answers
85
views
Creating rpm/deb packages for different configurations of my app which will replace each other
TL;DR I want to ship my application in two configurations: basic package and full package with additional modules. How do i do that?
I have two packages for my application for CentOS: app.rpm which is ...
3
votes
0
answers
1k
views
How to verify deb package signature?
I download a deb package from GitHub, specifically gcm-linux_amd64.2.0.785.deb
How can I tell if the package is signed and how can I verify the signature?
I tried some dpkg commands. These seem to ...
1
vote
1
answer
131
views
dpkg-genbuildinfo: error: badly formed line in files list file, line 1
I am trying to debianize a collection of shell scripts. The build itself is quite simple, as there are no binaries to build – every file that will be installed on the target system is already present ...
1
vote
1
answer
283
views
What are the steps to get printing working during Bullseye install?
On Debian Buster, during the install process, I simply chose "Print server" from the short list of items to install (I believe in a component called the "tasksel"), and when I ...
0
votes
0
answers
1k
views
Error installing a dependency .deb package: depends on python (>= 2.7~); however: Package python is not installed
I am trying to install PyRenamer.deb in Xubuntu 22.04: https://launchpad.net/pyrenamer
Pyrenamer is written in Python2, and has several .deb package dependencies, which I have downloaded and collected....
0
votes
1
answer
33
views
create Debian package without bin dir
deb package with structure (project (bin(source)) DEBIAN(control)) can be created
But want to create deb package without bin directory instead there multiple directories and source file inside project,...
10
votes
2
answers
2k
views
What does a tilde (~) mean at the end of a dependency requirement in a deb file or in apt?
I'm curious to understand how ~ is processed in a dependency by Apt or how it's defined for deb files (I'm not sure exactly where the syntax is defined).
I ran into it with respect to dependencies of ...
0
votes
1
answer
561
views
"apt install <name>.deb" not correctly installing Nvidia driver in the deb package
EDIT solution: The problem was that I thought the package installs the driver but it was not the case (more about it in the accepted answer). When installing Nvidia driver I suggest going with .run ...
0
votes
1
answer
157
views
Conversion of Debian "source package" for use on GitHub
Perhaps a dumb question, but I am new at this - so please bear with me.
Here is a brief description of the situation:
I recently learned of a significant, long-standing bug in dhcpcd - the default ...
-1
votes
1
answer
422
views
How to know the destination directory before installing a package? [duplicate]
I want to install a large multi GiB package, (mostly just a load of optional data used by another package.) but I need to know what directories it will use before installing so that I can mount ...
2
votes
1
answer
711
views
Restrict which packages are installable from a repository
I have my official Debian repos (say repo1). Now I add a repo of the supplier from package X (repo2). Package X is not in the official Debian repos. Of course, repo 2 can have some overlapping ...
2
votes
3
answers
2k
views
how to get the deb package full path in the pre-install script
I have built a deb package with the pre-install script .
I want to auto bakup the deb package after installed.
So I want to get the full path of the package in the pre/post-install script. are there ...
1
vote
1
answer
342
views
Which tool to build a RPM inside a chroot?
I'm using pbuilder to build my binary package for Debian.
pbuilder creates a chroot environment, installs all the packages declared as required for the build, and then builds the binary .deb packages ...
0
votes
1
answer
122
views
run .deb package created by fpm
I created a .deb package with fpm. The package is very simple as it simply runs a docker-compose over this docker-compose.yml file.
The package is composed of 3 files:
.
├── diagnosticator
├── ...
0
votes
2
answers
813
views
Does reinstalling package also reinstall dependencies?
If package A depends on package B, if I reinstall package B, what would happen to A? Will it be forever removed? Will it be removed, and then reinstalled? Will it simply be ignored by the package ...
0
votes
1
answer
32
views
Accidentally deleted the apt.deb file after SSHing into my EC2 instance
Accidentally deleted the /ec2-user/apt.deb file.
This is after SSHing into my EC2 instance with username ec2-user with the following command:
ssh -i <pem file path> [email protected]...
0
votes
0
answers
293
views
.deb packages from internet V/S Snapccraft V/S Flathub
I am currently using Pop!_OS 21.10. I want to install MS Teams and there are 3 options for me:
1 - On the website of MS Teams they provide a .deb package that can be installed.
2 - Using Flathub
3 - ...
0
votes
1
answer
35
views
What is the "Unused" field in a Debian package control file? Is it official?
Package: a package name
Version: FROM GIT
Section: base
Priority: optional
Architecture: armhf
Depends: "some deps"
Unused: "some packages names"
Provides: lp304-base-installer
...
0
votes
2
answers
230
views
Is it more safe to manual install a .deb file then installing from test (apt, Debian'ish)
I want to keep my debian system as "stable" as possible, but I need the package virt-top which only exist in test repository
I see two options:
Adding test to the repository-file and ...
1
vote
3
answers
671
views
How to add fsck at boot like a regular service?
I remember that certain distros, used to run fsck at boot after x boots, in a regular way.
How can be added to the boot process the fsck service to be
deployed in rpm distro/Fedora,RHEL,Oracle,Suse?
...
1
vote
1
answer
807
views
building Debian package fails after even a minor change to code
I am able to build Debian package make using following procedure:
apt-get source make
cd make-*
dpkg-buildpackage --build=binary --no-sign
But as soon as I make any change to the code, even changing ...
1
vote
1
answer
158
views
Remove all traces of D-Bus when running Mousepad in Debian
I am trying to rebuild Debian package mousepad without D-Bus on Debian 10.
First, I try building the package without any change.
apt-get source mousepad
cd mousepad-0.4.1
dpkg-buildpackage --build=...
1
vote
1
answer
777
views
Conditional dependencies in `debian/control` file
I'm packaging the software, which depends on a particular version of a library shipped in the official Debian distribution. The software also has a bundled sources of the library.
Is there any way to ...
1
vote
2
answers
545
views
How to injecting user-defined fields in Debian binary package control files
It's possible to add user-defined fields in the debian/control file using the XBS- method, as defined in the Debian Policy Manual, and those will be injected into the binary .deb and source packages.
...