Stack Exchange Network

Stack Exchange network consists of 174 Q&A communities including Stack Overflow, the largest, most trusted online community for developers to learn, share their knowledge, and build their careers.

Visit Stack Exchange

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.

1
vote
0answers
19 views
+500

How can I remove a prefix from {latest-tag} in a Launchpad recipe?

I have a Launchpad recipe that looks like this: # git-build-recipe format 0.4 deb-version {latest-tag}-0~{time}~rev{revno}~pkg{revno:packaging} lp:kvantum master nest packaging lp:~krisives/kvantum/+...
2
votes
1answer
3k views

Error when creating debain source package with dpkg

When entering this dpkg-source -b <packagename> into the terminal to create a debian source package, I get the following error: dpkg-source: error: syntax error in ResolutionX_1.0-0/debian/...
0
votes
0answers
12 views

How can I handle tests that require an X display when packaging on Launchpad?

I have a build recipe that is failing because it wants to use an X display: Build log Is there a way in the Debian/Ubuntu build process that I can either use a fake display or do I need to skip ...
2
votes
1answer
219 views

How do I get the current running version of a package in deb file's postinst and preinst script?

I am creating a debian package that discard some database operations carried out in postinst script of the package if its previous version is installed. I googled and found it for RPM but I could not ...
1
vote
1answer
23 views

creating a .deb from archlinux tar.xz

I am trying to install the latest commit (4.0.3) of Nemo file manager on Ubuntu 18.04. It finally fixes the bug where searches do not include hidden folders. Since there is no configure file in the ...
0
votes
0answers
39 views
2
votes
1answer
50 views

Creating Debian package for multiple version of Ubuntu

I have a library and few binaries that I want to pack as Debian package. I have dependency on : libboost-log*, libprotobuf* etc. I don't want to add dependency on dev packages "libboost-all-dev" etc ...
17
votes
1answer
21k views

Adding post .deb install scripts

So I'm building a .deb, and I need to do a few post-install commands (linking libraries paths, and a few other things). Is there a way to have it so when you do a sudo dpkg -i <pacakage-name>....
2
votes
1answer
26 views

How should I upload a package after having used git-ubuntu to prepare it?

I prepared an upload by cloning a git-ubuntu repository and committing some changes locally. As an Ubuntu developer, I have permission to upload to the archive. What do I need to do to upload my ...
1
vote
2answers
25 views

How to notify a package maintainer about upstream updates?

I am running a pacemaker, pcs, corosync and I've just found that the current ubuntu package "fence_agents" is not as updated as the upstream source by various versions. Specifically, I'm having ...
0
votes
2answers
48 views

DEB package can't install its dependencies when using dpkg

I have a deb package which I build but when I test it with dpkg (before put it in our repo) it can't install the dependencies put in DEBIAN/control file. Package: package-name Version: 1.0-1 Section: ...
1
vote
1answer
37 views

Installing shortcuts as a package

I want to improve user experience on Linux, and one of the things that I have in mind is packaging keyboard shortcuts and tracking their usage. The benefits that I see from that: Know which package ...
2
votes
1answer
42 views

Check when package repo last updated

Is there a way to check when the current version of a package (that would have been installed when using apt install) was released, from within terminal? The intention is to check how out of date the ...
2
votes
1answer
51 views

Deploying own debian package to Launchpad

I am trying to generate a signed debian package for deployment to Launchpad. I can generate the binary-only build using : dpkg-buildpackage -b -pgpg -kmihaigalos@gmail.com dpkg-buildpackage: source ...
0
votes
1answer
56 views

How to make a snap package from a python project without setup.py?

Suppose, there is only one program.py, or 2. there are a few files and an init.py executes the program. How to turn it into a snap package? This guide assumes there is a setup.py.
2
votes
1answer
20 views

Software package wit its own dynamic library - where to install?

I have written a piece of software (a .deb package) which ships with a dynamic library (foo.so) which is only usable to my softare. Where should I place the library and how can I load it? I don't ...
0
votes
1answer
10 views

Create Multiarch package with prebuild binaries

Hi I am currently trying to create a package with prebuild binaries as for the source I have a binaries directory with a 32 and 64 subdirectory. I would like to install the 64bit binaries on a 64bit ...
1
vote
1answer
48 views

What is the detailed process of resolving `${shlibs:Depends}` when creating a Debian package?

My recent work involves a lot of Debian packaging, and I'm using the Debian New Maintainers' Guide as my main reference. What I haven't fully understood is how the ${shlibs:Depends} is resolved into ...
0
votes
0answers
9 views

Building Multiple Packages

I was given access to the source repository for a bunch of packages which were built on Debian 7. My task is to try to rebuild them for Ubuntu 18.04. These are packages which will only be used ...
0
votes
0answers
11 views

How to Create Multiple Binaries for Apache from source [duplicate]

I am using Ubuntu/Xenial and I need to create Apache2_2.4.34 packages from source. I use instructions from here. Resulting package is only one package "apache2_2.4.34-1_amd64.deb", because dh-make ...
1
vote
0answers
27 views

How are Qt modules/classes distributed amongst Ubuntu packages?

For example, I know that I need the core dependency or the network one. In other words I have the following lines in qbs project file Depends { name: "Qt.core" } Depends { name: "Qt.network" } Now, ...
12
votes
1answer
404 views

What's the difference between the different “rename” commands?

Since Ubuntu 14.04 there are at least three rename commands: rename provided by the util-linux package, see man rename.ul rename provided by the perl package, see man prename rename provided by the ...
0
votes
0answers
41 views

Unable to install a package from the postinst of another package [duplicate]

I have Ubuntu 14.04. I have 2 deb packages, deb1 and deb2 I'm trying to install deb2 in the postinst of deb1 using dpkg -i deb2 but I get this error: dpkg: error: dpkg status database is locked by ...
8
votes
1answer
9k views

How to create a .deb file with dependency?

I have a game made with the LÖVE framework and I want to package it into a .deb file so it can be easily installed by others and be easily findable through the Unity dash for example. I also have ...
11
votes
3answers
20k views

How do I install a package with aptitude?

I've looked at an aptitude tutorial and read the man page, but I just don't get it. After you launch aptitude, how do you say "install package foo"? Or search for all packages with "foo" in their ...
0
votes
0answers
12 views

Packaging my Flask app using snapcraft

I am new to snapcraft, pls bear me.... I have my web application developed using Flask and opencv 3.0 technologies. We need to deploy this application in the client environment without revealing ...
0
votes
0answers
24 views

How to package for multiple Ubuntu versions with different package dependencies in a single PPA from launchpad? [duplicate]

I have an existing PPA for a Qt-based application that dates back to xenial that I recently updated to support bionic. I did this by just checking in all the changes required for bionic (in ...
1
vote
0answers
33 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 ...
16
votes
3answers
8k views

How to run parallel make with debuild?

I am trying to make a package of a piece of software that I've (co-) written. I'm using debuild -i -us -uc -b And in principle that works fine. In order to shorten compilation time I'd like to ...
2
votes
1answer
154 views

snapcraft build issue: GLIBC wrong version

Rebuilding package with new version after successfully build it last week this week I am having issues: The GLIBC version of the targeted core is 2.23. A newer libc will be required for the following ...
1
vote
1answer
196 views

How to add a shell script as a command offered by a Snap?

Say I have a basic shell script foo.sh: #!/bin/sh while [ 1 ] do echo "looping" sleep 1 done And I want to have this offered up as a command: /snap/bin/myapp.foo I have the snapcraft.yaml: ...
1
vote
0answers
29 views

How to create an Ubuntu distro from VirtualBox Ubuntu Image? [duplicate]

I have an UbuntuServer installed and filled with packages that I need, and it's ready for work. Can I make a distro from VirtualBox image of UbuntuServer in to .iso installable file with all the ...
1
vote
1answer
405 views

How to create a deb package when upstream developer has not a release a tarball

I want to create a deb package of https://github.com/manojgudi/sandhi. But I cannot find any tarball there. All the tutorials that I came across on the net assume that there is an upstream tarball ...
0
votes
1answer
86 views

Debian packaging of python library with extra files

Is there a minimal modification I can do to a Python 3 Debian package source in order to install additional folders under the dist-utils/my-package folder like unit tests? I am using pybuild which ...
175
votes
5answers
219k views

What is an “AppImage”? How do I install it?

I just read Meet Etcher, A Stylish Open-Source USB Image Writer Tool. It talks about downloading an AppImage. Yes, Linux; the Linux packages is distributed as an .appimage for 32-bit and 64-bit ...
12
votes
1answer
3k views

What is the meaning of the XubuntuY string in Ubuntu package names?

Each package name is in the form: package-XubuntuY*_amd64(i386) So my questions are: What does the X stand for? What does the Y stand for? for example binutils_2.22-6ubuntu1.3_amd64 What is the ...
24
votes
2answers
4k views

Why do some packages have extra numbers before a colon on the front of their version string?

I have just noticed that Wine (and a number of other packages) have shifted their versioning scheme to something like: 1:1.6.2-0ubuntu3 I understand everything after the 1:... But what does the 1: ...
2
votes
2answers
302 views

Install non-executable files with dh_install

I have some debian package which has the following install file: src/an_executable_python_script usr/bin src/web/* usr/share/packagename inside the src/web folder are some html and css files. It ...
0
votes
1answer
316 views

Build linux kernel 4.15.0-22 scripts/Makefile.clean [closed]

I want to compile linux-source-4.15.0-22 on xenial(16.04-4). When i use the following command I have received an error. make clean distclean && make mrproper && make-kpkg clean cp /...
11
votes
2answers
551 views

Why do snap-packages exist - is there a real need?

Assumptions Honestly, I do not know much about snap-packages - but this is irrelevant for this question - see below. I assume the system is significantly different from the existing one. Does the ...
1
vote
1answer
204 views

Does Snap package supports private repository?

https://docs.snapcraft.io/build-snaps/ci-integration As documented here i am a game developer and have created a game on Unreal Engine and i have put my game package on git in a private repository ...
2
votes
0answers
156 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 ...
0
votes
0answers
25 views

Why is the version of Mono in the Ubuntu repositories so old? [duplicate]

I am having an issue with a mono application I use failing to auto-update from github due to github retiring support for now outdated security protocols (TLS v1.0/1.1). Since the versions of mono ...
14
votes
5answers
18k views

How to run a script only during first install of a package and during upgrades?

I recently started packaging up some of my software and publishing it on Launchpad. The installation and removal works fine, but upgrading the package form one version to the next version is ...
8
votes
1answer
21k views

Where is the downloaded package files directory?

Where can I find the location of downloaded .deb files? I want to copy this folder before I reinstall Ubuntu so I don't have to redownload the packages. I am running Ubuntu 12.10 32-bit. How can I ...
1
vote
1answer
61 views

Automation of installing programs from source

I occasionally face a problem when using programs for which developers don't publish deb packages and only provide source. Sometimes I find a PPA providing the package but sometimes I don't or ...
1
vote
1answer
96 views

How can I apply the packaging for libvirt to build a package out of a git version?

I've been trying to work on a patch to libvirt to enable Ceph/RBD storage volumes. I would like to test my code now. I would like to do this as a package (or even a Launchpad PPA), so that I can ...
3
votes
1answer
55 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 ...
2
votes
1answer
141 views

How to create a .tar.gz file to install a custom application

I have written a simple program, and I made a .deb file to install it on Debian based OSs. but for other distros like Arch, I usually use a .tar.gz file (and doing :./configure, make and make install),...
3
votes
2answers
59 views

Whats the simplest way to make source and binary package when you are the original author?

The Debian packaging guides, which I have read so far, assume that the packager is not the maintainer, and so needs to have original tarballs, patches, etc. If I have an app which builds with "make" (...