Questions tagged [packaging]
refers to the creation and maintenance of Debian or snap packages. Whether you are looking to update a package for your personal use or wondering how to get your software into the hands of Ubuntu users, this tag is for you.
120
questions with no upvoted or accepted answers
6
votes
1
answer
4k
views
How to package shared library in deb packages
My application uses some shared libraries, which i need to package with the binary, and as per
Debian Policy Rules
It is recommended that supporting files and run-time support programs that do not ...
5
votes
0
answers
4k
views
How to create an AppImages from deb or tar.gz?
I have a software downloaded from web in deb and tar.gz files which I have not installed in my system itself. I want to convert these files as an AppImage for personal use. How can I do this?
In the ...
4
votes
1
answer
673
views
Creating a Debian package for a Qt application built using CMake
I would like to create a .deb installation package for a GUI based Qt5 application. Most of the links available for this problem are pretty old, so I'm curious if there are more up-to-date solutions ...
4
votes
1
answer
416
views
python3-pygments is missing the executable
In 18.04 it seems the python3-pygments package is missing the pygmentize executable. That is, with python-pygments I can call pygmentize, but if I uninstall it and instead use python3-pygments, ...
4
votes
0
answers
553
views
How to create *-dev package from source?
I want to install SILE Typesetter which depends on HarfBuzz (libharfbuzz-dev). The libharfbuzz-dev available from repositories is version 1.0.1 (released 2015), while the latest version available from ...
4
votes
1
answer
83
views
Guidelines for packaging web app
For a while now, I'm trying to build an Ubuntu package for PPA upload, and facing all sort of issues understanding bzr dh-make and such. The package is web application (php-based). Most packaging ...
4
votes
1
answer
317
views
How to create and submit package for Qt application
I have an application that I developed in Qt and Ubuntu. Its primary target is Windows but I prefer working in Ubuntu for all sorts of obvious reasons, so I rebuild it using Qt under XP and create an ...
3
votes
0
answers
236
views
Bittorent tracker packaged for Ubuntu?
I am looking for a bittorrent tracker that I can run on an Ubuntu server. Is one packaged for Ubuntu?
I have found the Wikipedia list of bittorrent trackers, and as far as I can tell, none are ...
3
votes
0
answers
542
views
What is the proper way to package path unit files?
I have a lot of application packages that I help maintain. Many of the applications run as systemd services. To install a package as a service it is very easy to place a service file in the debian ...
3
votes
0
answers
295
views
How do I build a 32-bit Debian binary on 64-bit Ubuntu?
I would like to build a 32-bit binary for the Atom text editor on 64-bit Ubuntu by building Atom (with script/build) and then running script/grunt mkdeb). script/grunt mkdeb calls on this script to ...
3
votes
0
answers
202
views
Why does 3rd digit in Ubuntu kernel version not match 3rd digit in its mainline upstream kernel version number?
From the Ubuntu Kernel FAQ ( https://wiki.ubuntu.com/Kernel/FAQ ) :
Given an Ubuntu kernel package version how do we find the release it
is from? The kernel package version is of the following ...
3
votes
1
answer
2k
views
How can I include files in a debian package for use in the postinst script?
Recently after performing an upgrade, and hence having to redo some of the manual configuration changes I'd performed, e.g. to configs in /etc or /usr/share, I decided I'd be more strict with myself ...
3
votes
2
answers
528
views
How can I compile a .deb file for network-manager's git
I need to install a version of network-manager that has the enhanced nmcli (allowing creation of new connections from cli only), and I wasn't able to find a PPA with a recent enough version. How can I ...
3
votes
0
answers
1k
views
Specify the target directory in a package
I created a package (with dpkk-build and dh_make) from my own program source and got a deb-binary. So far, so good. No if I'd upload the package to my ppa and installed it from there, the program ...
2
votes
0
answers
61
views
How would one craft a dsc that builds a package from multiple upstream source repositories
This is a complex one releated specifically to Debian/Ubuntu packaging (i.e. making .debs).
I've got a set of projects that are all currently separate. Using my real project (Jellyfin) here for ...
2
votes
0
answers
349
views
Packaging New Software on Ubuntu 22.04 LTS
My goal is to learn the correct and current process for packaging software on Ubuntu 22.04 LTS. I am following the Packaging guide for Ubuntu.
The documentation section "Starting a Package" (...
2
votes
0
answers
157
views
Build deb package with more recent cmake on launchpad
I created a library that I'd like to share via deb packages in a ppa.
I'd like to support from ubuntu 20.04 but I need a more recent version of cmake to build the library, and I'm wondering what would ...
2
votes
0
answers
306
views
Set default application for mime type on deb file
I create a deb package using dpkg-deb on Ubuntu 20.04, in myApp.desktop I added a MimeType=text/plain;, but is-it possible to set myApp to open by default the file of mime type text/plain ?
I need it ...
2
votes
1
answer
1k
views
Is it possible to create several debian packages with different names from one sources adding specific option
I created debian packages using debuild.
One by command with variable for one target type:
debuild --set-envvar=TARGET=S_SS -b -us -uc -aarm64
and another one for another one:
debuild --set-envvar=...
2
votes
1
answer
318
views
Some files listed in Debian/package.install do not install while building deb
I'm trying to build GIMP 2.10.20 into Ubuntu PPA. Everything's good, GIMP was built success and working good, except the languages (missing *gimp20*.mo files).
They are not included in the libgimp2.0 ...
2
votes
0
answers
1k
views
How do I create a symlink from my app bin to /usr/bin?
So I have a deb package built using electron-installer-debian. When I sudo dpkg -i app.deb, it's unpacked in /usr/lib/myapp/myappbin and there's no symbolic link created. How do make it so the ...
2
votes
0
answers
816
views
dpkg-genchanges: error: cannot read dsc
I want to bump the version of libqca-qt5-2 package to 2.2.0.
# get sources
git clone git://anongit.kde.org/qca.git
git archive HEAD --prefix=qca-qt5-2.2.0/ -o qca-qt5-2.2.0.tar.xz
mkdir ../deb-qca
...
2
votes
1
answer
527
views
Python rpi.GPIO with Snapcraft / snap?
I'm having great trouble trying to build a snap for a simple python code for Rpi2.
Code I would like to put into a Snap is:
# External module imports
import RPi.GPIO as GPIO
import time
print("...
2
votes
1
answer
307
views
Attempting to upload to my PPA: the signature could not be verified
I've created a PPA (https://launchpad.net/~brentonhorne/+archive/ubuntu/eclipse-ide-cpp) that is presently completely empty but I have been trying to upload my .changes file to it (with dput eclipse-...
2
votes
0
answers
226
views
Add kernel boot parameter from package
I'm creating my own debian package which has to add a kernel boot parameter when installed in order to work properly.
The place to have this is GRUB_CMDLINE_LINUX_DEFAULT in /etc/default/grub.
My ...
2
votes
0
answers
86
views
Launchpad invoking 64-bit programme in 32-bit build environment
I am trying to package a Qt programme for Trusty. I have successfully built the package in my system and uploaded it to a PPA. The control file includes the following:
Build-Depends: debhelper (>= ...
2
votes
1
answer
231
views
Commercial Debian Packaging
I am in the process of submitting commercial software to the Ubuntu Software Center, the packaging I am using is of Debian format. I was hoping someone could show me how to create a debian package ...
2
votes
0
answers
45
views
Need help building package on Ubuntu
I'm trying to build a local package on Ubuntu 12.04.01 LTS using this guide. I'm having problems getting debuild to pass the correct make command, and I can't seem to figure out what I'm doing wrong.
...
2
votes
0
answers
3k
views
How to build a newer version of a package than is available for my stable release?
I want to use a newer package version with my stable Ubuntu release. Asking for backport takes too long without visible result, so I thought that maybe I can build newer version myself.
Can anybody ...
2
votes
1
answer
238
views
Display name for DEB package in Ubuntu Software Center
Suppose I have a package mypack_1.1.0_i386.deb.
When I open it via Ubuntu Software Center it displays "mypack" as a display name.
Obviously it gets the name from the "Package:" attribute of the '...
2
votes
1
answer
1k
views
How to make a dependency to the latest version of boost?
I'm packaging a couple of libraries that have some dependencies with one-another.
To simplify, let's say I have: libA and libB.
libB depends on libA for both building and installing.
libA depends ...
2
votes
1
answer
2k
views
Debian Package Creation- how to define environment variables within the package
I built a package with the sudo-ldap package defined as a dependency in the control file (please see below). I'm going to have people install using the gdebi command to install which should install ...
2
votes
1
answer
77
views
How to a deb package without Quickly?
I am developing an app now, I'm using GSetting as my setting back-end, but I can't make my .gschema file installed while open the .deb file.
I'm wandering if there is some simple guide for green ...
2
votes
0
answers
99
views
Daemon won't start up as root when clicking .deb instead of installing with dpkg
I'm developing a debian package that should start up a backup service as the root user. All works fine when I install it from the command line e.g. sudo dpkg -i xxx.deb but when I install this by ...
1
vote
1
answer
81
views
Making deb package for a few commands
I want to make a package to execute a few commands.
The first option I considered was making a postinst file.
But it seems that thus would be executed after the package is installed, so if that script ...
1
vote
0
answers
68
views
Debian rules files determine init
I want to modify the gdm3 package. I need a ifeq condition in the rules file, which should check whether systemd is installed. If systemd is the init system, then different build options are used. I ...
1
vote
0
answers
41
views
What is this error "brz: ERROR: TypeError: a bytes-like object is required, not 'str'"?
I am following this tutorial: https://packaging.ubuntu.com/html/packaging-new-software.html to create an ubuntu package.
When it comes to bzr dh-make hello 2.10 hello-2.10.tar.gz I translate it to my ...
1
vote
0
answers
114
views
How to injecting user-defined fields in 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 Policy Manual.
Something like this before calling dpkg-buildpackage will work to inject a ...
1
vote
0
answers
82
views
How to show text to user with snap install hook?
Hello I'm creating a snap package and I need to show something to user after install.
How to do it?
Thank you
1
vote
1
answer
552
views
How to check some dependency for deb in preinst script when compat=9
I want to check some dependencies for the deb which compat equals to 9. If the dependency is not OK, just echo some warning but the deb can still be installed(It seems that Depends:xxx is not suitable ...
1
vote
0
answers
65
views
Is there a canonical (no pun intended) source for Ubuntu version badges?
I just added a Debian version badge (from https://badges.debian.net/) to my font (https://github.com/rbanffy/3270font/tree/develop), and, since it's also available on Ubuntu, I'd like to add one too. ...
1
vote
0
answers
185
views
Struggling to create python3 debian packages
I setup https://github.com/MirahezeBots/MirahezeBots/pull/436 which should run make-deb then dpkg-buildpackage -us -uc but that doesn't seem to work per https://github.com/MirahezeBots/MirahezeBots/...
1
vote
0
answers
331
views
Why isn't NVIDIA Linux modules part of the NVIDIA driver
I noticed that I had to manually install a linux-modules-nvidia-* package, and it doesn't come bundled with NVIDIA drivers. Why is that?
1
vote
1
answer
859
views
How to properly specify dependency package versions on a deb package
I'm trying to build a package that depends on libssl. Here's how my control file looks like:
Architecture: i386
Maintainer: Name
Installed-Size: 938
Depends: libc6 (>= 2.7), libncursesw5 (>= 5....
1
vote
1
answer
714
views
Install Tor 0.4.x on Ubuntu 18.04
We can install Tor 0.3.x on Ubuntu from Ubuntu's default repository.
I want to have updated tor version. Because the 0.3.x version doesn't work here any more.
Is there any repository that offers Tor 0....
1
vote
1
answer
84
views
License not working inside snap package
we're using ubuntu 16.04 for our packaging of java application in snap. we’ve developed a Java application for face recognition with the help of third party SDK. The application needs license from the ...
1
vote
1
answer
2k
views
Install python2.7 unmet dependencies problems - Ubuntu 18.04
I recently clean reinstalled Ubuntu 18.04 and now wanted to install python2.7 for various other dependencies, however am unable to do so. Running sudo apt install python and sudo apt install python-...
1
vote
1
answer
1k
views
equivs-build: fatal error occurred while parsing debian/changelog
There is no debian/changelog file involved when using equivs-build, so would the fatal error occurred while parsing debian/changelog error be a bug?
Here are the details:
$ cat ttf-ubuntu-font-...
1
vote
0
answers
6k
views
Python packages locations in Ubuntu
I try to install python packages in Ubuntu and those packagers successfully. I am not good for Ubuntu that is why I am asking.
But when I check locations of some of python packages, locations are ...
1
vote
0
answers
80
views
How to update a debian package for a python program with a setup.py
For the first time, the command dh_make will create all necessary files and directories and this can be packaged with debuild -S.
After I make some changes, am I supposed to manually update the ...