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
1 vote
1 answer
152 views

I need a little guidance on creating a snap package

I'm planning to create a snap on my python3 app trespass (password keeper). I host it on github https://github.com/gps1539/trespass and it can be installed from pypi via pip install trespass. I think ...
user192749's user avatar
1 vote
1 answer
783 views

Making a snap package: nginx crashes when confined, needs capname="chown"

I'm trying to make a snap package for a custom nginx version - the idea being I can run my snap and it will start an nginx server with the HTML content that the snap contains. So far, I have a ...
seanlano's user avatar
  • 2,986
0 votes
1 answer
117 views

How to package from source? [duplicate]

I would like to package Nagios 4 on Ubuntu. Installation from source involves multiple make commands and a configure command. wget -O nagioscore.tar.gz https://github.com/NagiosEnterprises/nagioscore/...
pdna's user avatar
  • 103
1 vote
2 answers
56 views

Valid characters in field identifiers of binary package control file

What are the restrictions on characters in debian binary package control files within Ubuntu? python-tempest currently uses an identifier called Python_version in the control file in trusty and this ...
Gerhard Poul's user avatar
1 vote
1 answer
2k views

Build deb package version with command line option

Newbie to build deb package. I've a build script to generate packages for Ubuntu. Version number is there in changelog. I'd like to automate the process of building deb packages without touching ...
user6136315's user avatar
15 votes
1 answer
3k 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 ...
dessert's user avatar
  • 40k
1 vote
1 answer
4k views

How to install telegram-cli with Persian/Arabic support

I want to install telegram-cli in Ubuntu 17.04 AMD64. So I use this commands: sudo snap install telegram-cli But it not support Persian/Arabic letters. All Persian/Arabic letters has been messed up. ...
Ali Razmdideh's user avatar
0 votes
1 answer
30 views

How to set up package-building?

Though we are largely satisfied with the official packages provided by Ubuntu, some times we'd like to make a change (like adding a patch or upgrade version) to an existing package or even add a ...
Mikhail T.'s user avatar
3 votes
0 answers
57 views

What do all these fields really mean in an Ubuntu package version? [duplicate]

For example, in Ubuntu 14.04, dpkg -l bind9 outputs: ||/ Name Version Architecture Description +++-===============-============================-========...
Sajuuk's user avatar
  • 252
3 votes
1 answer
5k views

Creating deb package that depends either on A or B package

I created a deb package that has: Package: foo Depends: libssl1.0.1 (>= 1.0.1) This works fine on trusty or jessie but it won't work on zesty since libssl1.0.2 is a different package than libssl1....
Pete Darrow's user avatar
4 votes
1 answer
1k views

Why does postrm run twice on purge?

I've created a package that has a postrm script which removes a user. When running sudo apt-get remove ..., the postrm script behaves as expected: vagrant@vagrant-ubuntu-trusty-64:~$ sudo apt-get -y ...
Ulad Kasach's user avatar
  • 1,696
1 vote
1 answer
259 views

What are private packages in the ubuntu Repository?

I see private packages in the Repos from time to time. What exactly does having a package labelled private delineate? What would I need it for?
Anon's user avatar
  • 12.1k
0 votes
0 answers
49 views

Targeting different releases when creating binary .debs

I am building .deb binary packages on ubuntu 14.04 but I want to target different releases including 14.04, 16.04 and 17.04. Is it possible to build a binary package on ubuntu 14.04 that targets a ...
hertzsprung's user avatar
0 votes
0 answers
151 views

Getting the debian source from java maven projejct

I have an open source project which was built in Java maven. In order to build a debian package a bebian source files are required as tarballs. How I can get those files from java maven?. I would ...
n.a.s's user avatar
  • 113
1 vote
0 answers
198 views

Create a sloppy Ubuntu package for Travis CI

I develop on software A which depends on software B and C, software B depends on D, which ships a convenience copy of C as well. For my work on A and B, I'd like to have continuous integration with ...
Martin Ueding's user avatar
1 vote
1 answer
1k views

Error while cloning source code of package (bzr: ERROR: Not a branch)

I'm following the Ubuntu Packaging Guide (UDD) and was faced with an error when I had tried to clone an existing package on third step. $ bzr branch ubuntu:kdetoys bzr: ERROR: Not a branch: "bzr+ssh:/...
mymedia's user avatar
  • 125
3 votes
1 answer
2k views

How to setup PYTHONPATH for a snap package?

I'm trying to snap package a non-pure python project. I used python plugin with custom build/install scripts. This project contains 2 python packages that are required for desktop app: alfanous (API)...
user.dz's user avatar
  • 48.1k
5 votes
2 answers
1k views

How to apply a patch on upstream source code while snapcraft build?

I used to build Debian packages (quilt), it supports applying patches while build process. Patches are stored in debian/patches folder and they are usually used to add fixes not committed yet to the ...
user.dz's user avatar
  • 48.1k
3 votes
1 answer
517 views

Turning node.js projects into snap packages

How can I convert node.js applications into Ubuntu snaps? I found this page on the Ubuntu developer website but the tutorial has been moved or removed. My nodejs application is built on MEAN stack.
user299662's user avatar
2 votes
1 answer
6k views

How do I create a deb package for a precompiled files?

I know how to package rpm for RHEL, but have little experience of deb packaging. I'd like to package other OS's library and headers for making cross-compiler, so there won't need any compilation ...
Byoungchan Lee's user avatar
8 votes
1 answer
1k views

How do I cache packages for a snapcraft cleanbuild?

snapcraft cleanbuild is supposed to let me build snaps in clean-room environments. Accordingly it starts from a minimal LXD image and installs necessary packages. However, it seems to use the base ...
muru's user avatar
  • 198k
5 votes
1 answer
867 views

How do I build a snap in an isolated environment?

While building Debian packages, pbuilder (and similar tools) help in building packages in an isolated environment, so that odd settings in my system don't cause problems in building: pbuilder aims ...
muru's user avatar
  • 198k
3 votes
1 answer
500 views

Editing a java snap

I'm trying to change the source of a java snap. Here's what I do: Download the sample project. svn export https://github.com/snapcore/snapcraft/trunk/demos/java-hello-world Build the snap named ...
Osvald Laurits's user avatar
1 vote
0 answers
114 views

PPA: How to force an older lib version from PPA for building?

I maintain this PPA: https://launchpad.net/~qbittorrent-team/+archive/ubuntu/qbittorrent-stable I want to build qbittorrent against the provided(in the PPA) libtorrent version. This is because we don'...
sledgehammer999's user avatar
1 vote
0 answers
251 views

Delay the installation/configuration of my Debian package

I'm working on a custom Debian package and I'd like to delay its installation/configuration when installed with other packages, eg; $ sudo apt-get install htop curl my-pkg rsync ... Apt-get should ...
Javier López's user avatar
3 votes
1 answer
2k views

How to define an optional dependency in a debian package

I'm working in some Debian packages and at some point I'd like to add optional dependencies, e.g. if foo-pkg is marked as to be installed at the same time as my-pkg let foo-pkg install first and then ...
Javier López's user avatar
3 votes
1 answer
808 views

Need to bundle a bunch of .service files in deb package

I am building a deb package (openstack-swift-account) and have dumped a bunch of service files in my debian directory. I need to bundle all the .service files in my package but, by default, it picks ...
Mittal's user avatar
  • 83
3 votes
0 answers
541 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 ...
SunSparc's user avatar
  • 137
6 votes
1 answer
254 views

How can I create an architecture independent snap?

I've created a small snap package that contains no compiled architecture dependent code. When I build the package it ends up named like ..._amd64.snap, but there is no reason why the program within ...
James Henstridge's user avatar
4 votes
2 answers
9k views

How do I create a new application icon?

I'm creating a .deb package for an application (not for public distribution) and want to have an icon for the application for the taskbar, menu, dock, etc. My application's .desktop file has a line to ...
Nick's user avatar
  • 579
1 vote
0 answers
707 views

Creating Debian package: How to create folder using rule file in user/Desktop?

I am packing .deb and I want to create folder on the Desktop I am creating folders using : mkdir -p $(CURDIR)/debian/tmp/usr/share/icons/hicolor/128x128/apps/ mkdir -p $(CURDIR)/debian/uome/username/...
AlexL's user avatar
  • 11
2 votes
1 answer
569 views

Building python2 snap with snapcraft, python setup.py egg_info error

EDIT: It seems that the setup.py purpose is to produce a package for Mac OSX with py2app. So the question is now: How do I prevent the snapcraft python plugin to call setup.py? I am trying to create ...
alci's user avatar
  • 5,839
5 votes
1 answer
10k views

Changing default directory for debhelper while packaging (.deb)

I am trying to turn Spamdyke 4.3.1 (download link) into Debian package (.deb). This is pretty easy software to build, no crazy dependencies, just libssl-dev so: apt-get install build-essential ...
Marcin Orlowski's user avatar
2 votes
1 answer
1k views

echo-cancel does not work after PulseAudio rebuild

I work with Ubuntu 14.04.5 and faced troubles with rebuilding PulseAudio from source. PulseAudio here is 4.0-0ubuntu11.1, but I need to rebuild it and include recent patch https://patchwork....
Dmitriy Vinokurov's user avatar
1 vote
1 answer
1k views

How to move config files during snap install

I am trying to package my app to be able to install it using snap. App is already compiled as executable and has one config file and one certificate file which I package inside the snap. Once ...
Jasko's user avatar
  • 115
1 vote
0 answers
144 views

Process for building OpenStack packages?

I am trying to build OpenStack packages (swift and keytone from Mitaka's release) and all its dependencies for Ubuntu 16.04. By exploring jobs like https://jenkins.qa.ubuntu.com/view/Releases/view/...
maap8's user avatar
  • 11
1 vote
1 answer
387 views

Snapcraft and .sh

How can I tell Snapcraft to run a .sh file before make? I know I have to use the after command in the yaml file but how do I make Snapcraft run the .sh file?
arctic-sea-otter's user avatar
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 ...
Velkan's user avatar
  • 3,616
5 votes
1 answer
204 views

How to overwrite a previously uploaded malformed upstream tarball in Launchpad's PPA?

I have been maintaining a PPA for quite a while for an open-source project. On the new release of the program, I compiled the .deb package accidentally with a malformed upstream tarball and uploaded ...
OverCoder's user avatar
  • 490
1 vote
1 answer
761 views

Are system-wide Thunar custom actions possible?

[Note: I'm sorry if this has been asked before. I googled, I searched StackOverflow and other forums but couldn't find anything. Which is pretty weird in my opinion, because to me this seems like a ...
NobodyInPerson's user avatar
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("...
SebastianL's user avatar
1 vote
1 answer
612 views

pbuilder-dist dh_build fails to find/install debian/control Depends

I have been following the tutorial 6. Packaging New Software on how to create an ubuntu/debian package. I have successfully managed the hello example, but I have been having some problems with my own ...
Guillaume's user avatar
  • 171
1 vote
1 answer
4k views

Error running postinst script in Debian package

I want to create my own deb package on Ubtunu 14.04 using dh_make and dh_install. I put the postinst file in mypackage-1.0/debian/postinst. I have no problem to create the deb. But when I try to ...
Brian Nate's user avatar
3 votes
1 answer
11k views

dpkg-shlibdeps: error: couldn't find library needed by .so while packaging a package dependent on my another package

I have packaged a library named base and uploaded to my ppa:satyagowtham-k-gmail/ferryfair.ppa. launchpad has successfully built the base package and I successfully installed it by sudo apt install ...
Necktwi's user avatar
  • 1,057
3 votes
1 answer
4k views

dh_auto_configure with buildsystem=cmake failing

I am trying to publish my cmake built project to my launchpad ppa. While I am doing fake build below is the error being thrown. gowtham@ubuntu:~/Packages/build-area$ pbuilder-dist xenial build ...
Necktwi's user avatar
  • 1,057
2 votes
1 answer
2k views

dh_install -O--buildsystem=cmake dh_install: missing files: usr/lib/*/lib*.so

I am trying to publish my cmake project to ppa at launchpad. The project is a library named "base". bzr builddeb -- -us -uc -sd fails with following error while trying to fake install dev version of ...
Necktwi's user avatar
  • 1,057
4 votes
1 answer
1k views

How do I represent $ARCH-pc-linux-gnu in a Debian install file?

I am presently working on a GNU Octave PPA. My octave.install file (which to my knowledge follows the same formatting conventions of rules files) needs to include files from: usr/lib/${...
Josh Pinto's user avatar
  • 7,919
1 vote
1 answer
944 views

How can I create directories using snapcraft?

I have a file I want to copy from my snapcraft source into the .snap I am building: parts: foo-config: plugin: dump source: . stage: - etc/foo.conf If I try and build ...
Robert Ancell's user avatar
4 votes
1 answer
235 views

How do I submit a patch to an ubuntu package which is using git?

Some ubuntu packages are now using Launchpad's git support. e.g. apache2 https://code.launchpad.net/~usd-import-team/ubuntu/+source/apache2/+git/apache2 How do I create a Merge Request for such a ...
Jay _silly_evarlast_ Wren's user avatar
7 votes
1 answer
984 views

Custom .deb does not install all files

I'm developing a proprietary cross-platform file manager called fman. I want to distribute it to Ubuntu users as a .deb file, which can be downloaded from my web site. I use fpm to create this file, ...
Michael Herrmann's user avatar

1 2 3
4
5
15