All Questions
25
questions
0
votes
1
answer
38
views
Check for non-interactive mode in Debian package maintainer scripts
If I'm writing a Debian package maintainer script (such as a pre-install script) for a package I create, how can I make the script determine if it is supposed to be running in non-interactive mode (e....
1
vote
1
answer
47
views
Package installation failure and rollback options
I'm trying to understand how the creation of packages (rpm, deb, dpkg) work and what the architecture supports and doesn't.
Right now I struggle figuring out what happens when the installation or ...
0
votes
1
answer
81
views
How to build GNU Hello .deb?
I can't seem to work out how to build GNU Hello on Ubuntu 22.04. To reproduce, start a Docker container using docker run --interactive --rm --tty ubuntu:22.04, then run the following:
apt-get update
...
1
vote
0
answers
311
views
build Debian package "chromium 108" on Debian Buster
I am trying to build chromium 108 for Debian Buster. The package only exists for Debian Bullseye, so on my Debian Buster build machine, I need to change the /etc/apt/sources.list to bullesyse and ...
1
vote
0
answers
119
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 ...
1
vote
0
answers
292
views
How to assign new file to package in postinst script
In the postinst script of a Debian package, I create and install a file with a name not known in advance. How can I assign that file to the package so it shows up in dpkg-query --search as belonging ...
2
votes
1
answer
307
views
dpkg command spontaneously killed on first run, works second time
I have a home made Debian package that installs two scripts files, two systemd services and a tar file. The handmade maintainer scripts are preinst, post inst, prerm and postrm.
The problem I'm ...
3
votes
1
answer
2k
views
Dpkg dh_install: copy files from the build directory rather than the debian/tmp dir?
Suppose I have a debian package housing as follows:
project_pkg/
.git
project_0.0-1/
debian/
install
...
project (git submodule with tagged commit)
With the following ...
3
votes
1
answer
3k
views
Dpkg Debuild dh_helper: How to symlink binaries installed in /opt/package to /usr/local/bin?
I am packaging my first debian project, and I have things 100% worked out with gnu-make (anything is possible here, for me, and so my difficulties right now are exclusively in navigating the dpkg/...
2
votes
1
answer
85
views
Way to have a Debian package reinstall when dependency updates?
For a little something I made (that used to be a word-of-mouth thing only and that's interesting to just a very narrow, and usually non-technical, user base), I'd like to be able to provide a .deb ...
2
votes
1
answer
186
views
Debian conffiles alternative
I maintain a native Debian package which installs an application and an initial SQLite database. I expect the application to edit the database.
How do I prevent upgrades from replacing the database?
...
1
vote
0
answers
179
views
dpkg: Upgrading depending packages (with the depended on possibly failing)
I have two packages A and B where B is an optional component that depends on package A and its exact version. Therefore I need to enure that if both packages are installed they are of the same version....
2
votes
1
answer
1k
views
Fail to build for Ubuntu
I try and build my package for Ubuntu but I can't understand the error. I get this
debuild -S -sa
dpkg-buildpackage -rfakeroot -d -us -uc -S -sa
dpkg-buildpackage: source package opsh
dpkg-...
9
votes
2
answers
2k
views
How to resume package building in debian?
I am running debian stretch and following this guide for building package from source for debian.
Sometimes building process takes hours , when I run dpkg-buildpackage -rfakeroot again , it starts ...
3
votes
2
answers
675
views
Problems packing a .deb from autotools. (checkinstall, debhelper, ...)
I'm currently building a large project that contains sources written in few languages such as C,C++ & Python. I recently managed to (painfuly) handle autotools to make a proper install. Next step ...