Impossible to install deb after postinst script updated

The name of the pictureThe name of the pictureThe name of the pictureClash 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 ?







share|improve this question




















  • 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















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 ?







share|improve this question




















  • 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













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 ?







share|improve this question












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 ?









share|improve this question











share|improve this question




share|improve this question










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

















  • 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
















active

oldest

votes











Your Answer







StackExchange.ready(function()
var channelOptions =
tags: "".split(" "),
id: "106"
;
initTagRenderer("".split(" "), "".split(" "), channelOptions);

StackExchange.using("externalEditor", function()
// Have to fire editor after snippets, if snippets enabled
if (StackExchange.settings.snippets.snippetsEnabled)
StackExchange.using("snippets", function()
createEditor();
);

else
createEditor();

);

function createEditor()
StackExchange.prepareEditor(
heartbeatType: 'answer',
convertImagesToLinks: false,
noModals: false,
showLowRepImageUploadWarning: true,
reputationToPostImages: null,
bindNavPrevention: true,
postfix: "",
onDemand: true,
discardSelector: ".discard-answer"
,immediatelyShowMarkdownHelp:true
);



);








 

draft saved


draft discarded


















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



































active

oldest

votes













active

oldest

votes









active

oldest

votes






active

oldest

votes










 

draft saved


draft discarded


























 


draft saved


draft discarded














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













































































Popular posts from this blog

Peggy Mitchell

The Forum (Inglewood, California)

Palaiologos