Impossible to install deb after postinst script updated

Clash Royale CLAN TAG#URR8PPP
up vote
0
down vote
favorite
I followed the instructions from here (Easily unpack DEB, edit postinst, and repack DEB) to update a bad deb archive (only commenting two lines).
$ mkdir tmp
$ dpkg-deb -R original.deb tmp
# sudo vim tmp/DEBIAN/postinst
$ dpkg-deb -b tmp fixed.deb
But when I try to install the generated deb, I got a strange error
$ sudo dpkg -i fixed.deb
dpkg-deb: error: archive 'fixed.deb' has premature member 'control.tar.xz' before 'control.tar.gz', giving up
dpkg: error processing archive fixed.deb (--install):
subprocess dpkg-deb --control returned error exit status 2
Errors were encountered while processing:
fixed.deb
What is wrong in your opinion ?
debian packaging
add a comment |Â
up vote
0
down vote
favorite
I followed the instructions from here (Easily unpack DEB, edit postinst, and repack DEB) to update a bad deb archive (only commenting two lines).
$ mkdir tmp
$ dpkg-deb -R original.deb tmp
# sudo vim tmp/DEBIAN/postinst
$ dpkg-deb -b tmp fixed.deb
But when I try to install the generated deb, I got a strange error
$ sudo dpkg -i fixed.deb
dpkg-deb: error: archive 'fixed.deb' has premature member 'control.tar.xz' before 'control.tar.gz', giving up
dpkg: error processing archive fixed.deb (--install):
subprocess dpkg-deb --control returned error exit status 2
Errors were encountered while processing:
fixed.deb
What is wrong in your opinion ?
debian packaging
You can only have one `control.tar.*" file; the error seems to be in English, I think.
â Rui F Ribeiro
Mar 16 at 17:59
but the control.tar archive is generated by the dpkg-deb command :/
â Akira
Mar 17 at 17:00
add a comment |Â
up vote
0
down vote
favorite
up vote
0
down vote
favorite
I followed the instructions from here (Easily unpack DEB, edit postinst, and repack DEB) to update a bad deb archive (only commenting two lines).
$ mkdir tmp
$ dpkg-deb -R original.deb tmp
# sudo vim tmp/DEBIAN/postinst
$ dpkg-deb -b tmp fixed.deb
But when I try to install the generated deb, I got a strange error
$ sudo dpkg -i fixed.deb
dpkg-deb: error: archive 'fixed.deb' has premature member 'control.tar.xz' before 'control.tar.gz', giving up
dpkg: error processing archive fixed.deb (--install):
subprocess dpkg-deb --control returned error exit status 2
Errors were encountered while processing:
fixed.deb
What is wrong in your opinion ?
debian packaging
I followed the instructions from here (Easily unpack DEB, edit postinst, and repack DEB) to update a bad deb archive (only commenting two lines).
$ mkdir tmp
$ dpkg-deb -R original.deb tmp
# sudo vim tmp/DEBIAN/postinst
$ dpkg-deb -b tmp fixed.deb
But when I try to install the generated deb, I got a strange error
$ sudo dpkg -i fixed.deb
dpkg-deb: error: archive 'fixed.deb' has premature member 'control.tar.xz' before 'control.tar.gz', giving up
dpkg: error processing archive fixed.deb (--install):
subprocess dpkg-deb --control returned error exit status 2
Errors were encountered while processing:
fixed.deb
What is wrong in your opinion ?
debian packaging
asked Mar 16 at 17:47
Akira
12
12
You can only have one `control.tar.*" file; the error seems to be in English, I think.
â Rui F Ribeiro
Mar 16 at 17:59
but the control.tar archive is generated by the dpkg-deb command :/
â Akira
Mar 17 at 17:00
add a comment |Â
You can only have one `control.tar.*" file; the error seems to be in English, I think.
â Rui F Ribeiro
Mar 16 at 17:59
but the control.tar archive is generated by the dpkg-deb command :/
â Akira
Mar 17 at 17:00
You can only have one `control.tar.*" file; the error seems to be in English, I think.
â Rui F Ribeiro
Mar 16 at 17:59
You can only have one `control.tar.*" file; the error seems to be in English, I think.
â Rui F Ribeiro
Mar 16 at 17:59
but the control.tar archive is generated by the dpkg-deb command :/
â Akira
Mar 17 at 17:00
but the control.tar archive is generated by the dpkg-deb command :/
â Akira
Mar 17 at 17:00
add a comment |Â
active
oldest
votes
active
oldest
votes
active
oldest
votes
active
oldest
votes
active
oldest
votes
Sign up or log in
StackExchange.ready(function ()
StackExchange.helpers.onClickDraftSave('#login-link');
);
Sign up using Google
Sign up using Facebook
Sign up using Email and Password
Post as a guest
StackExchange.ready(
function ()
StackExchange.openid.initPostLogin('.new-post-login', 'https%3a%2f%2funix.stackexchange.com%2fquestions%2f430664%2fimpossible-to-install-deb-after-postinst-script-updated%23new-answer', 'question_page');
);
Post as a guest
Sign up or log in
StackExchange.ready(function ()
StackExchange.helpers.onClickDraftSave('#login-link');
);
Sign up using Google
Sign up using Facebook
Sign up using Email and Password
Post as a guest
Sign up or log in
StackExchange.ready(function ()
StackExchange.helpers.onClickDraftSave('#login-link');
);
Sign up using Google
Sign up using Facebook
Sign up using Email and Password
Post as a guest
Sign up or log in
StackExchange.ready(function ()
StackExchange.helpers.onClickDraftSave('#login-link');
);
Sign up using Google
Sign up using Facebook
Sign up using Email and Password
Sign up using Google
Sign up using Facebook
Sign up using Email and Password
You can only have one `control.tar.*" file; the error seems to be in English, I think.
â Rui F Ribeiro
Mar 16 at 17:59
but the control.tar archive is generated by the dpkg-deb command :/
â Akira
Mar 17 at 17:00