Discussion:
dpkg-deb: error: control directory has bad permissions
(too old to reply)
T o n g
2013-06-09 14:40:01 UTC
Permalink
Hi,

How can I fix the "dpkg-deb: error: control directory has bad
permissions" error?

I was simply trying to use pbuilder-satisfydepends with the emacs source
package.

apt-get source emacs24
cd emacs24*
sudo /usr/lib/pbuilder/pbuilder-satisfydepends

and this is what I get:

$ sudo /usr/lib/pbuilder/pbuilder-satisfydepends
 -> Attempting to satisfy build-dependencies
 -> Creating pbuilder-satisfydepends-dummy package
Package: pbuilder-satisfydepends-dummy
Version: 0.invalid.0
Architecture: i386
Maintainer: Debian Pbuilder Team <pbuilder-***@lists.alioth.debian.org>
Description: Dummy package to satisfy dependencies with aptitude -
created by pbuilder
 This package was created automatically by pbuilder to satisfy the
 build-dependencies of the package being currently built.
Depends: bsd-mailx | mailx, libncurses5-dev, texinfo, liblockfile-dev,
librsvg2-dev, libgif-dev | libungif4-dev, libtiff4-dev | libtiff-dev,
xaw3dg-dev, libpng-dev, libjpeg-dev, libm17n-dev, libotf-dev, libgpm-dev,
libdbus-1-dev, autoconf, automake, autotools-dev, dpkg-dev (>> 1.10.0),
quilt (>= 0.42), debhelper (>= 9), libxaw7-dev, sharutils, imagemagick,
libgtk-3-dev, libgnutls-dev, libxml2-dev, libselinux1-dev, libmagick++-
dev, libgconf2-dev, libasound2-dev
dpkg-deb: error: control directory has bad permissions 751 (must be
=0755 and <=0775)
I tried to remove the whole source directory, set my 'umask 0002', then
redo everything, but get the same result. Then, in desperation, I did

chmod -R 0755 .

under the whole directory, but I still get the above problem.

Anyone can help?
Thanks!
--
To UNSUBSCRIBE, email to debian-mentors-***@lists.debian.org
with a subject of "unsubscribe". Trouble? Contact ***@lists.debian.org
Archive: http://lists.debian.org/kp23rr$i9c$***@ger.gmane.org
Andrey Rahmatullin
2013-06-09 18:10:02 UTC
Permalink
Post by T o n g
How can I fix the "dpkg-deb: error: control directory has bad
permissions" error?
I was simply trying to use pbuilder-satisfydepends with the emacs source
package.
Don't do that?
--
WBR, wRAR
Stuart Prescott
2013-06-10 05:20:02 UTC
Permalink
Post by Andrey Rahmatullin
Post by T o n g
How can I fix the "dpkg-deb: error: control directory has bad
permissions" error?
I was simply trying to use pbuilder-satisfydepends with the emacs source
package.
Don't do that?
Why not? What should the poster do instead? (using pbuilder-satisfydepends
is a perfectly good route to installing all build-deps for a package
although I wouldn't do it on a real system, only in a disposable chroot)
--
Stuart Prescott http://www.nanonanonano.net/ ***@nanonanonano.net
Debian Developer http://www.debian.org/ ***@debian.org
GPG fingerprint BE65 FD1E F4EA 08F3 23D4 3C6D 9FE8 B8CD 71C5 D1A8
--
To UNSUBSCRIBE, email to debian-mentors-***@lists.debian.org
with a subject of "unsubscribe". Trouble? Contact ***@lists.debian.org
Archive: http://lists.debian.org/kp3dos$hrp$***@ger.gmane.org
Andrey Rahmatullin
2013-06-10 05:30:03 UTC
Permalink
Post by Stuart Prescott
Post by Andrey Rahmatullin
Post by T o n g
How can I fix the "dpkg-deb: error: control directory has bad
permissions" error?
I was simply trying to use pbuilder-satisfydepends with the emacs source
package.
Don't do that?
Why not?
Because I don't think it's intended to be used like this. It's not even in
/usr/bin.
Post by Stuart Prescott
What should the poster do instead? (using pbuilder-satisfydepends
is a perfectly good route to installing all build-deps for a package
although I wouldn't do it on a real system, only in a disposable chroot)
mk-build-deps is one of the usual way to do this.
--
WBR, wRAR
Stuart Prescott
2013-06-10 13:50:01 UTC
Permalink
Post by Andrey Rahmatullin
Post by Stuart Prescott
Post by Andrey Rahmatullin
Post by T o n g
How can I fix the "dpkg-deb: error: control directory has bad
permissions" error?
I was simply trying to use pbuilder-satisfydepends with the emacs
source package.
Don't do that?
Why not?
Because I don't think it's intended to be used like this. It's not even in
/usr/bin.
Actually, it's pretty much exactly what it is for -- pbuilder calls it or
one of the other variants to install build-deps. But as I said, I wouldn't
use it on a real system.
Post by Andrey Rahmatullin
Post by Stuart Prescott
What should the poster do instead? (using pbuilder-satisfydepends
is a perfectly good route to installing all build-deps for a package
although I wouldn't do it on a real system, only in a disposable chroot)
mk-build-deps is one of the usual way to do this.
sure. I know that. I just don't understand why that suggestion wasn't in the
first message. If you're going to go to the trouble of replying to a
question on the mentors mailing list, why not answer the question? "Don't do
that" has precisely zero informational value but has more than a hint of
(unwelcome) hostility.
--
Stuart Prescott http://www.nanonanonano.net/ ***@nanonanonano.net
Debian Developer http://www.debian.org/ ***@debian.org
GPG fingerprint BE65 FD1E F4EA 08F3 23D4 3C6D 9FE8 B8CD 71C5 D1A8
--
To UNSUBSCRIBE, email to debian-mentors-***@lists.debian.org
with a subject of "unsubscribe". Trouble? Contact ***@lists.debian.org
Archive: http://lists.debian.org/kp4lcu$q7s$***@ger.gmane.org
Andrey Rahmatullin
2013-06-10 14:10:02 UTC
Permalink
Post by Stuart Prescott
Post by Andrey Rahmatullin
Post by Stuart Prescott
Post by Andrey Rahmatullin
Post by T o n g
How can I fix the "dpkg-deb: error: control directory has bad
permissions" error?
I was simply trying to use pbuilder-satisfydepends with the emacs
source package.
Don't do that?
Why not?
Because I don't think it's intended to be used like this. It's not even in
/usr/bin.
Actually, it's pretty much exactly what it is for -- pbuilder calls it or
one of the other variants to install build-deps.
I wouldn't assume it calls it directly, in the package directory and
without arguments. Without documentation and taking into account its
clearly internal nature and placement I wouldn't risk calling it manually.
This doesn't mean it can't be used, of course, but I wouldn't be surprised
if it couldn't.
Post by Stuart Prescott
Post by Andrey Rahmatullin
Post by Stuart Prescott
What should the poster do instead? (using pbuilder-satisfydepends
is a perfectly good route to installing all build-deps for a package
although I wouldn't do it on a real system, only in a disposable chroot)
mk-build-deps is one of the usual way to do this.
sure. I know that. I just don't understand why that suggestion wasn't in the
first message. If you're going to go to the trouble of replying to a
question on the mentors mailing list, why not answer the question? "Don't do
that" has precisely zero informational value but has more than a hint of
(unwelcome) hostility.
Sorry, I have a bad habit of not trying to guess what people are trying to
do when they ask why some undocumented things broke instead of asking
directly how to achieve the original goal.
--
WBR, wRAR
--
To UNSUBSCRIBE, email to debian-mentors-***@lists.debian.org
with a subject of "unsubscribe". Trouble? Contact ***@lists.debian.org
Archive: http://lists.debian.org/***@belkar.wrar.name
T o n g
2013-06-26 03:00:02 UTC
Permalink
Post by Stuart Prescott
Post by Andrey Rahmatullin
mk-build-deps is one of the usual way to do this.
sure. I know that. I just don't understand why that suggestion wasn't in
the first message. If you're going to go to the trouble of replying to a
question on the mentors mailing list, why not answer the question?
"Don't do that" has precisely zero informational value but has more than
a hint of (unwelcome) hostility.
Thank you very much Stuart to speak out for me. Learning to maintaining
Debian packages could be very intimidating, and it couldn’t be any worse
than being intimidated by being labelled as asking "silly" questions. I
know it's been quite a while, but I was so intimidated that I only have
the courage to revisit the thread today after getting the initial hostile
respond.

It is apparent in OP that I was trying to get depends installed for the
emacs source package and I only know pbuilder-satisfydepends. I don't
think anyone would misread that except using it as a lame excuse to cover
up bullying. It really make me sick that I've been jerked around by some
people who think they know enough to bully newcomers.

Thanks again Stuart for trying to set things straight for new people like
me.

Thanks
--
To UNSUBSCRIBE, email to debian-mentors-***@lists.debian.org
with a subject of "unsubscribe". Trouble? Contact ***@lists.debian.org
Archive: http://lists.debian.org/kqdl37$i5$***@ger.gmane.org
Loading...