Last call to make your voice heard! Our 2022 Developer Survey closes in less than a week. Take survey.

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.

Filter by
Sorted by
Tagged with
0 votes
1 answer
19 views

Are there common scripts one can use in its postinst, postrm, etc.?

I'm working on many separate projects each of which comes with a separate Debian package for Ubuntu. For all of the projects including a service, I end up doing similar things in their preinst, ...
user avatar
  • 2,440
4 votes
1 answer
137 views

build deb package that uninstall another package in case of remove or purge

i try to build an package, which can uninstall another package, if my package should be uninstall. I have tryed the "Depends" and the "Pre-Depends" policy in the control file. But ...
user avatar
  • 107
1 vote
0 answers
33 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 ...
user avatar
  • 11
0 votes
0 answers
29 views

Building linux-tools deb produces empty binary packages

I'm trying to build the linux-tools-generic package on Ubuntu Impish (i.e. 21.10). I am trying to follow the guides I can find (e.g. this one), so the workflow looks something like this: Set up by ...
user avatar
0 votes
0 answers
30 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 ...
user avatar
0 votes
1 answer
47 views

Can I make my own .deb's that modify files created by other .debs?

For example, I'd like all the Ubuntu Desktops that I deploy to have some customization's to the settings found in /usr/share/glib-2.0/schemas/, but if i edit those files, and then do apt update &&...
user avatar
1 vote
1 answer
106 views

After extracting an AppImage and making some changes how to build the AppImage again?

I have downloaded a software as an AppImage then I have extracted it as follows: ./softwareName.AppImage --appimage-extract # The result is a directory: squashfs-root I have made some changes to the ...
user avatar
2 votes
1 answer
45 views

What is the official Debian/Ubuntu way to install new configuration files in user directories?

I'm creating a package which includes some default settings for users. Things that generally appear under ~/.<some-name> or ~/.config/<app>/<some>.conf and similar files. In most ...
user avatar
  • 2,440
3 votes
2 answers
356 views

How does ubuntu manage packages?

A noob here. I really want to learn or at least have some ideas on how software is packaged in Ubuntu. Is it compiled and packaged by the package author? Or is it compiled by Ubuntu developers? How do ...
user avatar
0 votes
0 answers
31 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 ...
user avatar
0 votes
0 answers
29 views

Help creating source packages for launchpad [duplicate]

I want to upload the first version of my app to launchpad. Launchpad requires a source package of the app. My app is written in C, it compiles with gcc and generates one binary. How can I create a ...
user avatar
  • 323
5 votes
1 answer
149 views

Is there a debian package for the python module PyGLM?

I am trying to build a software in Launchpad, but I get the error ModuleNotFoundError: No module named 'glm' I found https://pypi.org/project/PyGLM/ but I could not find any package titled python3-...
user avatar
0 votes
0 answers
31 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 ...
user avatar
1 vote
1 answer
80 views

`bzr builddeb -- -us -uc` fails

[PS: What I really want to achieave here is learn how to package new software] I was following the instruction in https://packaging.ubuntu.com/html/packaging-new-software.html#building-the-package. ...
user avatar
-3 votes
1 answer
165 views

unable to install VS code software [duplicate]

E: Unable to locate package vscode.deb E: Couldn't find any package by glob 'vscode.deb'
user avatar
0 votes
0 answers
45 views

How to install wasabi wallet on armhf architecture

How to create and install wasabi wallet on armhf architecture? Is it possible to create it from its GitHub repository. If so, How?
user avatar
6 votes
3 answers
1k views

How to install Cozy Audiobook Player in Ubuntu 20.04 without Flatpak

I want to create a .deb file for Cozy from its GitHub repository. How do I make it? I don't want to use the Flathub version. I'm on Ubuntu 20.04.
user avatar
  • 455
2 votes
1 answer
233 views

brz: ERROR: unknown command "dh-make"

I'm trying to build a deb according to the https://packaging.ubuntu.com/html/packaging-new-software.html Everything was working 6 months ago. Now when I execute: bzr dh-make hello 2.10 hello-2.10.tar....
user avatar
  • 161
2 votes
1 answer
296 views

How to create your own Linux package from scratch? [duplicate]

How do you create your own package in Linux, just like cd, ls, or any third party package? All I know is how to create a .sh file, write a script in it and execute it using: bash file_name But in ...
user avatar
1 vote
2 answers
50 views

Copying debian directory from another branch to build in Launchpad

I am trying to build Cozy Audiobook in launchpad. I have the imported the source branch (master) from GitHub, and a there is a different branch (deb-packaging-juno) containing the debian/ directory. ...
user avatar
2 votes
1 answer
343 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=...
user avatar
1 vote
0 answers
60 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 ...
user avatar
  • 111
5 votes
1 answer
2k views

What creates the file /var/run/reboot-required

Does the file /var/run/reboot-required ONLY occur from a kernel update, or can a developer of a software package decide herself if she wants it to be created, if desired? The following link explain ...
user avatar
1 vote
0 answers
229 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 ...
user avatar
1 vote
0 answers
50 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
user avatar
  • 11
1 vote
1 answer
218 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 ...
user avatar
  • 11
1 vote
0 answers
54 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. ...
user avatar
  • 111
0 votes
0 answers
17 views

When are packages released on packages.ubuntu.com? [duplicate]

I have often observed this: A release of a package has long been made on Github, but if I upgrade it with apt, it is not found. Example: https://github.com/libgeos/geos : They show that 3.9 has ...
user avatar
5 votes
2 answers
703 views

DEBIAN or debian in .deb package?

I am experimenting with creating a .deb package and am unsure about the file structure of a package. Is the directory that contains control, changelog, rules, etc supposed to be named DEBIAN or debian?...
user avatar
1 vote
0 answers
29 views

Debian package with dependency to package in unconfigured PPA [duplicate]

I'm creating a debian package primary.deb (custom, home-made package for internal use) that depends on secondary.deb (hosted in external PPA). I'd like the users of primary.deb to not explicitly have ...
user avatar
1 vote
1 answer
186 views

How to run OpenBLAS source package test from debian/test directory?

I need to understand how to run test from debian/test directory for OpenBLAS package. Currently on my Ubuntu 20.04 LTS I did the following: cd ~/Downloads sudo apt-get build-dep openblas apt-get ...
user avatar
  • 88.9k
1 vote
0 answers
98 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/...
user avatar
1 vote
1 answer
88 views

How to install debcargo in Ubuntu? It is in the Debian repositories, but not in Ubuntu [duplicate]

debcargo is a Debian package for packaging rust apps in .deb format. It is available in Debian Buster and above, but I could not find the package in Ubuntu 20.04 and 20.10. Why is the package not ...
user avatar
1 vote
1 answer
140 views

Read version of changelog file from variable for debian packaging

I have debian changelog file. The Head of the file is as follows. my-package ($VERSION) UNRELEASED; urgency=low .... When I rebuild the package I need to get the version from the environment variable. ...
user avatar
1 vote
1 answer
91 views

Help me update the old rtirq-init script for Ubuntu?

rtirq-init is an important package for low latency audio system configuration. The current version has a 2021 version and regular updates: https://www.rncbc.org/drupal/node/2163 Problem 1. the version ...
user avatar
  • 155
2 votes
1 answer
64 views

How to manage translations of help pages in debian packaging?

I am trying to create debian package for an upstream source (which has not been debian packaged yet), and want to know if help pages translated in a new locale can be automatically configured in the ....
user avatar
0 votes
0 answers
124 views

Can I get nativefier to produce a .deb?

On macOS and Windows, the Electron JS app creator script nativefier is able to wrap a website into a .dmg or .exe. However, on Ubuntu, the nativefier script produces a big folder where you have to ...
user avatar
0 votes
2 answers
103 views

Attempt to package library results in package with no binary

I am new to packaging and I'm trying to package a library that one of my programs uses. The library is called Plytapus and it's used by the PerfectTIN program. You can find source code for both of ...
user avatar
1 vote
1 answer
427 views

How to build SDL2 from source and making a debian package and install the debian package?

I want to build SDL2 from source so I can use a newer version, that prefers dlopen instead of linking to libraries like the package that comes from ubuntu package manager, but also because I want to ...
user avatar
  • 646
1 vote
0 answers
249 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?
user avatar
0 votes
0 answers
416 views

Error creating the package: cannot create directory ‘/opt/simplest_studio’

I trying to create a .deb package. Created the control and rules files, did everything, as it was said in the instructions and after a ten thousandth attempt errors still pop up. The $(MAKE) command ...
user avatar
  • 101
0 votes
1 answer
2k views

Ubuntu 20.04 no longer contains font Noto Sans Syriac Eastern

In Ubuntu 18.04, the package fonts-noto-unhinted contained the font Noto Sans Syriac Eastern, i.e. /usr/share/fonts/truetype/noto/NotoSansSyriacEastern-Regular.ttf. However, in Ubuntu 20.04, no ...
user avatar
  • 189
0 votes
1 answer
766 views

Debian package builds in my computer, but fails to build in Launchpad and pbuilder - "msgfmt: cannot locate ITS rules"

I made a debian package for Blanket, and tried to build it with Launchpad recipe. While it builds successfully in my computer (Xubuntu 20.04), it fails to build for focal in Launchpad. Here is the ...
user avatar
2 votes
1 answer
98 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 ...
user avatar
2 votes
1 answer
71 views

How to package minimized JS files of an webapp in a debian package?

Usually JS files in Webapps are used in a minimized form (e.g. jquery.min.js), and lintian treats such files with very long lines as binaries. Usually these minimized JS files are not written by the ...
user avatar
2 votes
1 answer
205 views

How to specify the current kernel's header in the debian/control file?

I am trying to modify this debian source package which requires the the user to manually install the current Linux kernel's header (with sudo apt install linux-headers-$(uname -r) before installing ...
user avatar
1 vote
1 answer
46 views

How did quickly run work to run a software from source?

quickly used to be a very convenient software which could be used to debian package a new software in minutes, but it got discontinued. I have some old python code packaged with quickly, which I have ...
user avatar
4 votes
1 answer
3k views

Launchpad builderror - Can't locate Debian/Debhelper/Sequence/python3.pm

I am getting the following error while trying to package a source file using a Launchpad recipe. However, I can successfully build the package in my machine (running 18.04) dh: error: unable to load ...
user avatar
0 votes
1 answer
406 views

What are usable characters are for package names?

For example can we use [.+_,*] in the name? Would appreciate a link to documentation. I can't find any that specify a rule.
user avatar
2 votes
1 answer
278 views

Viewing the contents of a flatpak

When I install a package, I like to see what it's installed. With apt I can use apt-file show, with AppImages I can view the mounted filesystem, and with Snap I could mount the snap without running it ...
user avatar

1
2 3 4 5
14