0
votes
0answers
55 views

How to avoid installing custom packages twice on Ubuntu 12.04

I have created a custom packages using dpkg --build . In the DEBIAN dir I have placed all the required files for package installation namely control,preinst,postinst,prerm etc. When I try to ...
1
vote
1answer
384 views

Where should I place templates and config file in debian hierarchy

I am writing a debian binary package for my application (foo). The postinst (post install) script wants to ask the user few questions and get the answers as well. I am trying to achieve this using ...
1
vote
0answers
159 views

How do I upgrade my code from dpkg-deb to dpkg-buildpackage

I inherited code that builds the .DEB using dpkg-deb -b -Zgzip -z9 debian ../$runner This works well, except that when the end user runs it, it refuses to install missing dependencies. Instead it ...
3
votes
1answer
775 views

unstripped binary or object creating debian package

I'm new to package creation and I'm trying to create a .deb package and keep getting 'unstripped-binary-or-object' on all my libraries and executables. I have everything setup in the directory tree ...
2
votes
1answer
189 views

How can I include a custom command in deb file, to be executed at the end of installation?

Well, I like to mark /usr/bin/program.sh as executable using following command: chmod +x /usr/bin/program.sh I want the above command to be executed at the end of installation of the Debian ...
3
votes
2answers
330 views

How can I prevent dpkg-buildpackage from modifying the modification date of the /debian directory when building a Debian package?

I have set up a working pbuilder toolchain for building Debian packages in i386 and amd64 varieties for Ubuntu. I am using reprepro to manage my own private apt repository and dupload to upload ...
4
votes
1answer
4k views

How do I recreate a deleted '/var/lib/dpkg' directory?

Yesterday I had some problem with /var/lib/dpkg/lock during update. I knew that in such cases removing lock file could solve problem. So I tried to do it, but by mistake I removed all DPKG directory. ...
1
vote
1answer
2k views

fakeroot debian/rules binary error

I have a package I'm maintaining. When I issue "fakeroot debian/rules binary" I get this error: dh_install --sourcedir=debian/tmp cp: cannot stat `debian/tmp/usr/share/prg/1.svg': No such file or ...
3
votes
2answers
422 views

Can I install Debian Unstable Scala 2.8.1 package in Ubuntu? Won't it cause problems?

I am coding Scala and would like an up-to-date 2.8.1 of it to be installed in my Ubuntu 10.10 system, but there is only obsolete 2.7 package available in Ubuntu repositories, so I have to go ...