dpkg package pre-installation script subprocess returned error exit status 2 on 18.04











up vote
0
down vote

favorite












I used Docker to set up an Ubuntu 18.04 container, and then tried to install the .deb file with an error as shown below.



root@hashirama:/sc5xx_dev/lib/toolchain# dpkg -i  adi-CrossCoreEmbeddedStudio-linux-x86-2.7.0.deb 
(Reading database ... 52942 files and directories currently installed.)
Preparing to unpack adi-CrossCoreEmbeddedStudio-linux-x86-2.7.0.deb ...
dpkg: error processing archive adi-CrossCoreEmbeddedStudio-linux-x86-2.7.0.deb (--install):
new adi-cces-2.7.0:i386 package pre-installation script subprocess returned error exit status 2
Errors were encountered while processing:
adi-CrossCoreEmbeddedStudio-linux-x86-2.7.0.deb


Output of sudo apt install ./adi-CrossCoreEmbeddedStudio-linux-x86-2.7.0.deb:




dpkg: error processing archive /sc5xx_dev/lib/toolchain/adi-CrossCoreEmbeddedStudio-linux-x86-2.7.0.deb (--unpack):
new adi-cces-2.7.0:i386 package pre-installation script subprocess returned error exit status 2
Errors were encountered while processing: /sc5xx_dev/lib/toolchain/adi-CrossCoreEmbeddedStudio-linux-x86-2.7.0.deb E: Sub-process /usr/bin/dpkg returned an error code (1)











share|improve this question
























  • Please try sudo apt install ./adi-CrossCoreEmbeddedStudio-linux-x86-2.7.0.deb.
    – N0rbert
    Nov 24 at 8:40










  • Thanks for your warm heart, I try that but still has error:
    – Sullivan
    Nov 24 at 14:51










  • dpkg: error processing archive /sc5xx_dev/lib/toolchain/adi-CrossCoreEmbeddedStudio-linux-x86-2.7.0.deb (--unpack): new adi-cces-2.7.0:i386 package pre-installation script subprocess returned error exit status 2 Errors were encountered while processing: /sc5xx_dev/lib/toolchain/adi-CrossCoreEmbeddedStudio-linux-x86-2.7.0.deb E: Sub-process /usr/bin/dpkg returned an error code (1)
    – Sullivan
    Nov 24 at 14:52










  • Could you please share a link, where I can download yours ADI tool?
    – N0rbert
    Nov 24 at 15:25










  • Apologize for checking the mesage late, link is here download.analog.com/tools/CrossCoreEmbeddedStudio/Releases/…
    – Sullivan
    Nov 25 at 0:03















up vote
0
down vote

favorite












I used Docker to set up an Ubuntu 18.04 container, and then tried to install the .deb file with an error as shown below.



root@hashirama:/sc5xx_dev/lib/toolchain# dpkg -i  adi-CrossCoreEmbeddedStudio-linux-x86-2.7.0.deb 
(Reading database ... 52942 files and directories currently installed.)
Preparing to unpack adi-CrossCoreEmbeddedStudio-linux-x86-2.7.0.deb ...
dpkg: error processing archive adi-CrossCoreEmbeddedStudio-linux-x86-2.7.0.deb (--install):
new adi-cces-2.7.0:i386 package pre-installation script subprocess returned error exit status 2
Errors were encountered while processing:
adi-CrossCoreEmbeddedStudio-linux-x86-2.7.0.deb


Output of sudo apt install ./adi-CrossCoreEmbeddedStudio-linux-x86-2.7.0.deb:




dpkg: error processing archive /sc5xx_dev/lib/toolchain/adi-CrossCoreEmbeddedStudio-linux-x86-2.7.0.deb (--unpack):
new adi-cces-2.7.0:i386 package pre-installation script subprocess returned error exit status 2
Errors were encountered while processing: /sc5xx_dev/lib/toolchain/adi-CrossCoreEmbeddedStudio-linux-x86-2.7.0.deb E: Sub-process /usr/bin/dpkg returned an error code (1)











share|improve this question
























  • Please try sudo apt install ./adi-CrossCoreEmbeddedStudio-linux-x86-2.7.0.deb.
    – N0rbert
    Nov 24 at 8:40










  • Thanks for your warm heart, I try that but still has error:
    – Sullivan
    Nov 24 at 14:51










  • dpkg: error processing archive /sc5xx_dev/lib/toolchain/adi-CrossCoreEmbeddedStudio-linux-x86-2.7.0.deb (--unpack): new adi-cces-2.7.0:i386 package pre-installation script subprocess returned error exit status 2 Errors were encountered while processing: /sc5xx_dev/lib/toolchain/adi-CrossCoreEmbeddedStudio-linux-x86-2.7.0.deb E: Sub-process /usr/bin/dpkg returned an error code (1)
    – Sullivan
    Nov 24 at 14:52










  • Could you please share a link, where I can download yours ADI tool?
    – N0rbert
    Nov 24 at 15:25










  • Apologize for checking the mesage late, link is here download.analog.com/tools/CrossCoreEmbeddedStudio/Releases/…
    – Sullivan
    Nov 25 at 0:03













up vote
0
down vote

favorite









up vote
0
down vote

favorite











I used Docker to set up an Ubuntu 18.04 container, and then tried to install the .deb file with an error as shown below.



root@hashirama:/sc5xx_dev/lib/toolchain# dpkg -i  adi-CrossCoreEmbeddedStudio-linux-x86-2.7.0.deb 
(Reading database ... 52942 files and directories currently installed.)
Preparing to unpack adi-CrossCoreEmbeddedStudio-linux-x86-2.7.0.deb ...
dpkg: error processing archive adi-CrossCoreEmbeddedStudio-linux-x86-2.7.0.deb (--install):
new adi-cces-2.7.0:i386 package pre-installation script subprocess returned error exit status 2
Errors were encountered while processing:
adi-CrossCoreEmbeddedStudio-linux-x86-2.7.0.deb


Output of sudo apt install ./adi-CrossCoreEmbeddedStudio-linux-x86-2.7.0.deb:




dpkg: error processing archive /sc5xx_dev/lib/toolchain/adi-CrossCoreEmbeddedStudio-linux-x86-2.7.0.deb (--unpack):
new adi-cces-2.7.0:i386 package pre-installation script subprocess returned error exit status 2
Errors were encountered while processing: /sc5xx_dev/lib/toolchain/adi-CrossCoreEmbeddedStudio-linux-x86-2.7.0.deb E: Sub-process /usr/bin/dpkg returned an error code (1)











share|improve this question















I used Docker to set up an Ubuntu 18.04 container, and then tried to install the .deb file with an error as shown below.



root@hashirama:/sc5xx_dev/lib/toolchain# dpkg -i  adi-CrossCoreEmbeddedStudio-linux-x86-2.7.0.deb 
(Reading database ... 52942 files and directories currently installed.)
Preparing to unpack adi-CrossCoreEmbeddedStudio-linux-x86-2.7.0.deb ...
dpkg: error processing archive adi-CrossCoreEmbeddedStudio-linux-x86-2.7.0.deb (--install):
new adi-cces-2.7.0:i386 package pre-installation script subprocess returned error exit status 2
Errors were encountered while processing:
adi-CrossCoreEmbeddedStudio-linux-x86-2.7.0.deb


Output of sudo apt install ./adi-CrossCoreEmbeddedStudio-linux-x86-2.7.0.deb:




dpkg: error processing archive /sc5xx_dev/lib/toolchain/adi-CrossCoreEmbeddedStudio-linux-x86-2.7.0.deb (--unpack):
new adi-cces-2.7.0:i386 package pre-installation script subprocess returned error exit status 2
Errors were encountered while processing: /sc5xx_dev/lib/toolchain/adi-CrossCoreEmbeddedStudio-linux-x86-2.7.0.deb E: Sub-process /usr/bin/dpkg returned an error code (1)








18.04 software-installation docker






share|improve this question















share|improve this question













share|improve this question




share|improve this question








edited Nov 24 at 15:22









N0rbert

19.8k54392




19.8k54392










asked Nov 24 at 7:02









Sullivan

182




182












  • Please try sudo apt install ./adi-CrossCoreEmbeddedStudio-linux-x86-2.7.0.deb.
    – N0rbert
    Nov 24 at 8:40










  • Thanks for your warm heart, I try that but still has error:
    – Sullivan
    Nov 24 at 14:51










  • dpkg: error processing archive /sc5xx_dev/lib/toolchain/adi-CrossCoreEmbeddedStudio-linux-x86-2.7.0.deb (--unpack): new adi-cces-2.7.0:i386 package pre-installation script subprocess returned error exit status 2 Errors were encountered while processing: /sc5xx_dev/lib/toolchain/adi-CrossCoreEmbeddedStudio-linux-x86-2.7.0.deb E: Sub-process /usr/bin/dpkg returned an error code (1)
    – Sullivan
    Nov 24 at 14:52










  • Could you please share a link, where I can download yours ADI tool?
    – N0rbert
    Nov 24 at 15:25










  • Apologize for checking the mesage late, link is here download.analog.com/tools/CrossCoreEmbeddedStudio/Releases/…
    – Sullivan
    Nov 25 at 0:03


















  • Please try sudo apt install ./adi-CrossCoreEmbeddedStudio-linux-x86-2.7.0.deb.
    – N0rbert
    Nov 24 at 8:40










  • Thanks for your warm heart, I try that but still has error:
    – Sullivan
    Nov 24 at 14:51










  • dpkg: error processing archive /sc5xx_dev/lib/toolchain/adi-CrossCoreEmbeddedStudio-linux-x86-2.7.0.deb (--unpack): new adi-cces-2.7.0:i386 package pre-installation script subprocess returned error exit status 2 Errors were encountered while processing: /sc5xx_dev/lib/toolchain/adi-CrossCoreEmbeddedStudio-linux-x86-2.7.0.deb E: Sub-process /usr/bin/dpkg returned an error code (1)
    – Sullivan
    Nov 24 at 14:52










  • Could you please share a link, where I can download yours ADI tool?
    – N0rbert
    Nov 24 at 15:25










  • Apologize for checking the mesage late, link is here download.analog.com/tools/CrossCoreEmbeddedStudio/Releases/…
    – Sullivan
    Nov 25 at 0:03
















Please try sudo apt install ./adi-CrossCoreEmbeddedStudio-linux-x86-2.7.0.deb.
– N0rbert
Nov 24 at 8:40




Please try sudo apt install ./adi-CrossCoreEmbeddedStudio-linux-x86-2.7.0.deb.
– N0rbert
Nov 24 at 8:40












Thanks for your warm heart, I try that but still has error:
– Sullivan
Nov 24 at 14:51




Thanks for your warm heart, I try that but still has error:
– Sullivan
Nov 24 at 14:51












dpkg: error processing archive /sc5xx_dev/lib/toolchain/adi-CrossCoreEmbeddedStudio-linux-x86-2.7.0.deb (--unpack): new adi-cces-2.7.0:i386 package pre-installation script subprocess returned error exit status 2 Errors were encountered while processing: /sc5xx_dev/lib/toolchain/adi-CrossCoreEmbeddedStudio-linux-x86-2.7.0.deb E: Sub-process /usr/bin/dpkg returned an error code (1)
– Sullivan
Nov 24 at 14:52




dpkg: error processing archive /sc5xx_dev/lib/toolchain/adi-CrossCoreEmbeddedStudio-linux-x86-2.7.0.deb (--unpack): new adi-cces-2.7.0:i386 package pre-installation script subprocess returned error exit status 2 Errors were encountered while processing: /sc5xx_dev/lib/toolchain/adi-CrossCoreEmbeddedStudio-linux-x86-2.7.0.deb E: Sub-process /usr/bin/dpkg returned an error code (1)
– Sullivan
Nov 24 at 14:52












Could you please share a link, where I can download yours ADI tool?
– N0rbert
Nov 24 at 15:25




Could you please share a link, where I can download yours ADI tool?
– N0rbert
Nov 24 at 15:25












Apologize for checking the mesage late, link is here download.analog.com/tools/CrossCoreEmbeddedStudio/Releases/…
– Sullivan
Nov 25 at 0:03




Apologize for checking the mesage late, link is here download.analog.com/tools/CrossCoreEmbeddedStudio/Releases/…
– Sullivan
Nov 25 at 0:03










2 Answers
2






active

oldest

votes

















up vote
0
down vote



accepted










For me it seems that it was broken download issue.

I have downloaded your file:



wget http://download.analog.com/tools/CrossCoreEmbeddedStudio/Releases/Release_2.8.0/adi-CrossCoreEmbeddedStudio-linux-x86-2.8.0.deb


and checked it size




$ ls -al adi-CrossCoreEmbeddedStudio-linux-x86-2.8.0.deb

-rw-rw-r-- 1 user user 580754562 ноя 25 12:33 adi-CrossCoreEmbeddedStudio-linux-x86-2.8.0.deb




also I checked MD5 sum:




$ md5sum adi-CrossCoreEmbeddedStudio-linux-x86-2.8.0.deb

2814b42b1fdefa254701b2c802e35c1d adi-CrossCoreEmbeddedStudio-linux-x86-2.8.0.deb




It installs normally:




$ sudo apt-get install ./adi-CrossCoreEmbeddedStudio-linux-x86-2.8.0.deb 
Reading package lists... Done
Building dependency tree
Reading state information... Done
Note, selecting 'adi-cces-2.8.0:i386' instead of './adi-CrossCoreEmbeddedStudio-linux-x86-2.8.0.deb'
The following NEW packages will be installed:
adi-cces-2.8.0:i386
0 upgraded, 1 newly installed, 0 to remove and 0 not upgraded.
Need to get 0 B/581 MB of archives.
After this operation, 1 644 MB of additional disk space will be used.
Get:1 /home/user/adi-CrossCoreEmbeddedStudio-linux-x86-2.8.0.deb adi-cces-2.8.0 i386 2.8.0 [581 MB]
Selecting previously unselected package adi-cces-2.8.0:i386.
(Reading database ... 215776 files and directories currently installed.)
Preparing to unpack .../adi-CrossCoreEmbeddedStudio-linux-x86-2.8.0.deb ...
Unpacking adi-cces-2.8.0:i386 (2.8.0) ...
Setting up adi-cces-2.8.0:i386 (2.8.0) ...
Processing triggers for mime-support (3.60ubuntu1) ...
Processing triggers for desktop-file-utils (0.23-1ubuntu3.18.04.1) ...
Processing triggers for bamfdaemon (0.5.3+18.04.20180207.2-0ubuntu1) ...
Rebuilding /usr/share/applications/bamf-2.index...



Also you need to install 32-bit libraries:



sudo apt-get install libc6:i386 libgtk-3-0:i386 libxtst6:i386


Consider to redownload the file.






share|improve this answer























  • Hi dear, Really thanks for your guiding for that, I can install it successfully following your comment in the OS ubuntu-18.04(do use the docker image), bu still have the issue in docker image using. Thanks again.
    – Sullivan
    Nov 26 at 2:02










  • I got what's wrong with my configuration, I set the Dockerfile "ENV DEBIAN_FRONTEND noninteractive" to auto-build the image, but for my package adi-CrossCoreEmbeddedStudio-linux-x86-2.8.0.deb, it need not in the noninteractive mode, so the error occurred.
    – Sullivan
    Nov 26 at 15:13


















up vote
1
down vote













I find how to solve this question. It's caused by the "ENV DEBIAN_FRONTEND=noninteractive" in Dockerfile.



To install the ubuntu-18.04 we should set the package in the mode of noninteractive
To install the adi_xxx.deb package we should set the event in the mode of interactive.



So The correct Dockerfile:



RUN apt-get -y update
RUN DEBIAN_FRONTEND=noninteractive apt-get -y -q install net-tools build-essential minicom tftpd-hpa git-all subversion openssh-server ncurses-dev php gawk g++ m4 libncurses5-dev texinfo flex bison php-cli vim php-xml python-setuptools python-dev unzip rsync cpio bc lib32z1 lib32stdc++6 lib32ncurses5



The wrong Dockerfile:



EVN DEBIAN_FRONTEND=noninteractive
RUN apt-get -y update
RUN apt-get -y -q install net-tools build-essential minicom tftpd-hpa git-all subversion openssh-server ncurses-dev php gawk g++ m4 libncurses5-dev texinfo flex bison php-cli vim php-xml python-setuptools python-dev unzip rsync cpio bc lib32z1 lib32stdc++6 lib32ncurses5



Note:
Do not use the command "ENV DEBIAN_FRONTEND=noninteractive" in configuring the Dockerfile this is definitely not a reasonable default, and setting it via ENV should be actively discouraged, Refer to https://github.com/moby/moby/issues/4032






share|improve this answer










New contributor




Sullivan is a new contributor to this site. Take care in asking for clarification, commenting, and answering.
Check out our Code of Conduct.


















    Your Answer








    StackExchange.ready(function() {
    var channelOptions = {
    tags: "".split(" "),
    id: "89"
    };
    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: true,
    noModals: true,
    showLowRepImageUploadWarning: true,
    reputationToPostImages: 10,
    bindNavPrevention: true,
    postfix: "",
    imageUploader: {
    brandingHtml: "Powered by u003ca class="icon-imgur-white" href="https://imgur.com/"u003eu003c/au003e",
    contentPolicyHtml: "User contributions licensed under u003ca href="https://creativecommons.org/licenses/by-sa/3.0/"u003ecc by-sa 3.0 with attribution requiredu003c/au003e u003ca href="https://stackoverflow.com/legal/content-policy"u003e(content policy)u003c/au003e",
    allowUrls: true
    },
    onDemand: true,
    discardSelector: ".discard-answer"
    ,immediatelyShowMarkdownHelp:true
    });


    }
    });














    draft saved

    draft discarded


















    StackExchange.ready(
    function () {
    StackExchange.openid.initPostLogin('.new-post-login', 'https%3a%2f%2faskubuntu.com%2fquestions%2f1095590%2fdpkg-package-pre-installation-script-subprocess-returned-error-exit-status-2-on%23new-answer', 'question_page');
    }
    );

    Post as a guest















    Required, but never shown

























    2 Answers
    2






    active

    oldest

    votes








    2 Answers
    2






    active

    oldest

    votes









    active

    oldest

    votes






    active

    oldest

    votes








    up vote
    0
    down vote



    accepted










    For me it seems that it was broken download issue.

    I have downloaded your file:



    wget http://download.analog.com/tools/CrossCoreEmbeddedStudio/Releases/Release_2.8.0/adi-CrossCoreEmbeddedStudio-linux-x86-2.8.0.deb


    and checked it size




    $ ls -al adi-CrossCoreEmbeddedStudio-linux-x86-2.8.0.deb

    -rw-rw-r-- 1 user user 580754562 ноя 25 12:33 adi-CrossCoreEmbeddedStudio-linux-x86-2.8.0.deb




    also I checked MD5 sum:




    $ md5sum adi-CrossCoreEmbeddedStudio-linux-x86-2.8.0.deb

    2814b42b1fdefa254701b2c802e35c1d adi-CrossCoreEmbeddedStudio-linux-x86-2.8.0.deb




    It installs normally:




    $ sudo apt-get install ./adi-CrossCoreEmbeddedStudio-linux-x86-2.8.0.deb 
    Reading package lists... Done
    Building dependency tree
    Reading state information... Done
    Note, selecting 'adi-cces-2.8.0:i386' instead of './adi-CrossCoreEmbeddedStudio-linux-x86-2.8.0.deb'
    The following NEW packages will be installed:
    adi-cces-2.8.0:i386
    0 upgraded, 1 newly installed, 0 to remove and 0 not upgraded.
    Need to get 0 B/581 MB of archives.
    After this operation, 1 644 MB of additional disk space will be used.
    Get:1 /home/user/adi-CrossCoreEmbeddedStudio-linux-x86-2.8.0.deb adi-cces-2.8.0 i386 2.8.0 [581 MB]
    Selecting previously unselected package adi-cces-2.8.0:i386.
    (Reading database ... 215776 files and directories currently installed.)
    Preparing to unpack .../adi-CrossCoreEmbeddedStudio-linux-x86-2.8.0.deb ...
    Unpacking adi-cces-2.8.0:i386 (2.8.0) ...
    Setting up adi-cces-2.8.0:i386 (2.8.0) ...
    Processing triggers for mime-support (3.60ubuntu1) ...
    Processing triggers for desktop-file-utils (0.23-1ubuntu3.18.04.1) ...
    Processing triggers for bamfdaemon (0.5.3+18.04.20180207.2-0ubuntu1) ...
    Rebuilding /usr/share/applications/bamf-2.index...



    Also you need to install 32-bit libraries:



    sudo apt-get install libc6:i386 libgtk-3-0:i386 libxtst6:i386


    Consider to redownload the file.






    share|improve this answer























    • Hi dear, Really thanks for your guiding for that, I can install it successfully following your comment in the OS ubuntu-18.04(do use the docker image), bu still have the issue in docker image using. Thanks again.
      – Sullivan
      Nov 26 at 2:02










    • I got what's wrong with my configuration, I set the Dockerfile "ENV DEBIAN_FRONTEND noninteractive" to auto-build the image, but for my package adi-CrossCoreEmbeddedStudio-linux-x86-2.8.0.deb, it need not in the noninteractive mode, so the error occurred.
      – Sullivan
      Nov 26 at 15:13















    up vote
    0
    down vote



    accepted










    For me it seems that it was broken download issue.

    I have downloaded your file:



    wget http://download.analog.com/tools/CrossCoreEmbeddedStudio/Releases/Release_2.8.0/adi-CrossCoreEmbeddedStudio-linux-x86-2.8.0.deb


    and checked it size




    $ ls -al adi-CrossCoreEmbeddedStudio-linux-x86-2.8.0.deb

    -rw-rw-r-- 1 user user 580754562 ноя 25 12:33 adi-CrossCoreEmbeddedStudio-linux-x86-2.8.0.deb




    also I checked MD5 sum:




    $ md5sum adi-CrossCoreEmbeddedStudio-linux-x86-2.8.0.deb

    2814b42b1fdefa254701b2c802e35c1d adi-CrossCoreEmbeddedStudio-linux-x86-2.8.0.deb




    It installs normally:




    $ sudo apt-get install ./adi-CrossCoreEmbeddedStudio-linux-x86-2.8.0.deb 
    Reading package lists... Done
    Building dependency tree
    Reading state information... Done
    Note, selecting 'adi-cces-2.8.0:i386' instead of './adi-CrossCoreEmbeddedStudio-linux-x86-2.8.0.deb'
    The following NEW packages will be installed:
    adi-cces-2.8.0:i386
    0 upgraded, 1 newly installed, 0 to remove and 0 not upgraded.
    Need to get 0 B/581 MB of archives.
    After this operation, 1 644 MB of additional disk space will be used.
    Get:1 /home/user/adi-CrossCoreEmbeddedStudio-linux-x86-2.8.0.deb adi-cces-2.8.0 i386 2.8.0 [581 MB]
    Selecting previously unselected package adi-cces-2.8.0:i386.
    (Reading database ... 215776 files and directories currently installed.)
    Preparing to unpack .../adi-CrossCoreEmbeddedStudio-linux-x86-2.8.0.deb ...
    Unpacking adi-cces-2.8.0:i386 (2.8.0) ...
    Setting up adi-cces-2.8.0:i386 (2.8.0) ...
    Processing triggers for mime-support (3.60ubuntu1) ...
    Processing triggers for desktop-file-utils (0.23-1ubuntu3.18.04.1) ...
    Processing triggers for bamfdaemon (0.5.3+18.04.20180207.2-0ubuntu1) ...
    Rebuilding /usr/share/applications/bamf-2.index...



    Also you need to install 32-bit libraries:



    sudo apt-get install libc6:i386 libgtk-3-0:i386 libxtst6:i386


    Consider to redownload the file.






    share|improve this answer























    • Hi dear, Really thanks for your guiding for that, I can install it successfully following your comment in the OS ubuntu-18.04(do use the docker image), bu still have the issue in docker image using. Thanks again.
      – Sullivan
      Nov 26 at 2:02










    • I got what's wrong with my configuration, I set the Dockerfile "ENV DEBIAN_FRONTEND noninteractive" to auto-build the image, but for my package adi-CrossCoreEmbeddedStudio-linux-x86-2.8.0.deb, it need not in the noninteractive mode, so the error occurred.
      – Sullivan
      Nov 26 at 15:13













    up vote
    0
    down vote



    accepted







    up vote
    0
    down vote



    accepted






    For me it seems that it was broken download issue.

    I have downloaded your file:



    wget http://download.analog.com/tools/CrossCoreEmbeddedStudio/Releases/Release_2.8.0/adi-CrossCoreEmbeddedStudio-linux-x86-2.8.0.deb


    and checked it size




    $ ls -al adi-CrossCoreEmbeddedStudio-linux-x86-2.8.0.deb

    -rw-rw-r-- 1 user user 580754562 ноя 25 12:33 adi-CrossCoreEmbeddedStudio-linux-x86-2.8.0.deb




    also I checked MD5 sum:




    $ md5sum adi-CrossCoreEmbeddedStudio-linux-x86-2.8.0.deb

    2814b42b1fdefa254701b2c802e35c1d adi-CrossCoreEmbeddedStudio-linux-x86-2.8.0.deb




    It installs normally:




    $ sudo apt-get install ./adi-CrossCoreEmbeddedStudio-linux-x86-2.8.0.deb 
    Reading package lists... Done
    Building dependency tree
    Reading state information... Done
    Note, selecting 'adi-cces-2.8.0:i386' instead of './adi-CrossCoreEmbeddedStudio-linux-x86-2.8.0.deb'
    The following NEW packages will be installed:
    adi-cces-2.8.0:i386
    0 upgraded, 1 newly installed, 0 to remove and 0 not upgraded.
    Need to get 0 B/581 MB of archives.
    After this operation, 1 644 MB of additional disk space will be used.
    Get:1 /home/user/adi-CrossCoreEmbeddedStudio-linux-x86-2.8.0.deb adi-cces-2.8.0 i386 2.8.0 [581 MB]
    Selecting previously unselected package adi-cces-2.8.0:i386.
    (Reading database ... 215776 files and directories currently installed.)
    Preparing to unpack .../adi-CrossCoreEmbeddedStudio-linux-x86-2.8.0.deb ...
    Unpacking adi-cces-2.8.0:i386 (2.8.0) ...
    Setting up adi-cces-2.8.0:i386 (2.8.0) ...
    Processing triggers for mime-support (3.60ubuntu1) ...
    Processing triggers for desktop-file-utils (0.23-1ubuntu3.18.04.1) ...
    Processing triggers for bamfdaemon (0.5.3+18.04.20180207.2-0ubuntu1) ...
    Rebuilding /usr/share/applications/bamf-2.index...



    Also you need to install 32-bit libraries:



    sudo apt-get install libc6:i386 libgtk-3-0:i386 libxtst6:i386


    Consider to redownload the file.






    share|improve this answer














    For me it seems that it was broken download issue.

    I have downloaded your file:



    wget http://download.analog.com/tools/CrossCoreEmbeddedStudio/Releases/Release_2.8.0/adi-CrossCoreEmbeddedStudio-linux-x86-2.8.0.deb


    and checked it size




    $ ls -al adi-CrossCoreEmbeddedStudio-linux-x86-2.8.0.deb

    -rw-rw-r-- 1 user user 580754562 ноя 25 12:33 adi-CrossCoreEmbeddedStudio-linux-x86-2.8.0.deb




    also I checked MD5 sum:




    $ md5sum adi-CrossCoreEmbeddedStudio-linux-x86-2.8.0.deb

    2814b42b1fdefa254701b2c802e35c1d adi-CrossCoreEmbeddedStudio-linux-x86-2.8.0.deb




    It installs normally:




    $ sudo apt-get install ./adi-CrossCoreEmbeddedStudio-linux-x86-2.8.0.deb 
    Reading package lists... Done
    Building dependency tree
    Reading state information... Done
    Note, selecting 'adi-cces-2.8.0:i386' instead of './adi-CrossCoreEmbeddedStudio-linux-x86-2.8.0.deb'
    The following NEW packages will be installed:
    adi-cces-2.8.0:i386
    0 upgraded, 1 newly installed, 0 to remove and 0 not upgraded.
    Need to get 0 B/581 MB of archives.
    After this operation, 1 644 MB of additional disk space will be used.
    Get:1 /home/user/adi-CrossCoreEmbeddedStudio-linux-x86-2.8.0.deb adi-cces-2.8.0 i386 2.8.0 [581 MB]
    Selecting previously unselected package adi-cces-2.8.0:i386.
    (Reading database ... 215776 files and directories currently installed.)
    Preparing to unpack .../adi-CrossCoreEmbeddedStudio-linux-x86-2.8.0.deb ...
    Unpacking adi-cces-2.8.0:i386 (2.8.0) ...
    Setting up adi-cces-2.8.0:i386 (2.8.0) ...
    Processing triggers for mime-support (3.60ubuntu1) ...
    Processing triggers for desktop-file-utils (0.23-1ubuntu3.18.04.1) ...
    Processing triggers for bamfdaemon (0.5.3+18.04.20180207.2-0ubuntu1) ...
    Rebuilding /usr/share/applications/bamf-2.index...



    Also you need to install 32-bit libraries:



    sudo apt-get install libc6:i386 libgtk-3-0:i386 libxtst6:i386


    Consider to redownload the file.







    share|improve this answer














    share|improve this answer



    share|improve this answer








    edited Nov 25 at 10:10

























    answered Nov 25 at 9:45









    N0rbert

    19.8k54392




    19.8k54392












    • Hi dear, Really thanks for your guiding for that, I can install it successfully following your comment in the OS ubuntu-18.04(do use the docker image), bu still have the issue in docker image using. Thanks again.
      – Sullivan
      Nov 26 at 2:02










    • I got what's wrong with my configuration, I set the Dockerfile "ENV DEBIAN_FRONTEND noninteractive" to auto-build the image, but for my package adi-CrossCoreEmbeddedStudio-linux-x86-2.8.0.deb, it need not in the noninteractive mode, so the error occurred.
      – Sullivan
      Nov 26 at 15:13


















    • Hi dear, Really thanks for your guiding for that, I can install it successfully following your comment in the OS ubuntu-18.04(do use the docker image), bu still have the issue in docker image using. Thanks again.
      – Sullivan
      Nov 26 at 2:02










    • I got what's wrong with my configuration, I set the Dockerfile "ENV DEBIAN_FRONTEND noninteractive" to auto-build the image, but for my package adi-CrossCoreEmbeddedStudio-linux-x86-2.8.0.deb, it need not in the noninteractive mode, so the error occurred.
      – Sullivan
      Nov 26 at 15:13
















    Hi dear, Really thanks for your guiding for that, I can install it successfully following your comment in the OS ubuntu-18.04(do use the docker image), bu still have the issue in docker image using. Thanks again.
    – Sullivan
    Nov 26 at 2:02




    Hi dear, Really thanks for your guiding for that, I can install it successfully following your comment in the OS ubuntu-18.04(do use the docker image), bu still have the issue in docker image using. Thanks again.
    – Sullivan
    Nov 26 at 2:02












    I got what's wrong with my configuration, I set the Dockerfile "ENV DEBIAN_FRONTEND noninteractive" to auto-build the image, but for my package adi-CrossCoreEmbeddedStudio-linux-x86-2.8.0.deb, it need not in the noninteractive mode, so the error occurred.
    – Sullivan
    Nov 26 at 15:13




    I got what's wrong with my configuration, I set the Dockerfile "ENV DEBIAN_FRONTEND noninteractive" to auto-build the image, but for my package adi-CrossCoreEmbeddedStudio-linux-x86-2.8.0.deb, it need not in the noninteractive mode, so the error occurred.
    – Sullivan
    Nov 26 at 15:13












    up vote
    1
    down vote













    I find how to solve this question. It's caused by the "ENV DEBIAN_FRONTEND=noninteractive" in Dockerfile.



    To install the ubuntu-18.04 we should set the package in the mode of noninteractive
    To install the adi_xxx.deb package we should set the event in the mode of interactive.



    So The correct Dockerfile:



    RUN apt-get -y update
    RUN DEBIAN_FRONTEND=noninteractive apt-get -y -q install net-tools build-essential minicom tftpd-hpa git-all subversion openssh-server ncurses-dev php gawk g++ m4 libncurses5-dev texinfo flex bison php-cli vim php-xml python-setuptools python-dev unzip rsync cpio bc lib32z1 lib32stdc++6 lib32ncurses5



    The wrong Dockerfile:



    EVN DEBIAN_FRONTEND=noninteractive
    RUN apt-get -y update
    RUN apt-get -y -q install net-tools build-essential minicom tftpd-hpa git-all subversion openssh-server ncurses-dev php gawk g++ m4 libncurses5-dev texinfo flex bison php-cli vim php-xml python-setuptools python-dev unzip rsync cpio bc lib32z1 lib32stdc++6 lib32ncurses5



    Note:
    Do not use the command "ENV DEBIAN_FRONTEND=noninteractive" in configuring the Dockerfile this is definitely not a reasonable default, and setting it via ENV should be actively discouraged, Refer to https://github.com/moby/moby/issues/4032






    share|improve this answer










    New contributor




    Sullivan is a new contributor to this site. Take care in asking for clarification, commenting, and answering.
    Check out our Code of Conduct.






















      up vote
      1
      down vote













      I find how to solve this question. It's caused by the "ENV DEBIAN_FRONTEND=noninteractive" in Dockerfile.



      To install the ubuntu-18.04 we should set the package in the mode of noninteractive
      To install the adi_xxx.deb package we should set the event in the mode of interactive.



      So The correct Dockerfile:



      RUN apt-get -y update
      RUN DEBIAN_FRONTEND=noninteractive apt-get -y -q install net-tools build-essential minicom tftpd-hpa git-all subversion openssh-server ncurses-dev php gawk g++ m4 libncurses5-dev texinfo flex bison php-cli vim php-xml python-setuptools python-dev unzip rsync cpio bc lib32z1 lib32stdc++6 lib32ncurses5



      The wrong Dockerfile:



      EVN DEBIAN_FRONTEND=noninteractive
      RUN apt-get -y update
      RUN apt-get -y -q install net-tools build-essential minicom tftpd-hpa git-all subversion openssh-server ncurses-dev php gawk g++ m4 libncurses5-dev texinfo flex bison php-cli vim php-xml python-setuptools python-dev unzip rsync cpio bc lib32z1 lib32stdc++6 lib32ncurses5



      Note:
      Do not use the command "ENV DEBIAN_FRONTEND=noninteractive" in configuring the Dockerfile this is definitely not a reasonable default, and setting it via ENV should be actively discouraged, Refer to https://github.com/moby/moby/issues/4032






      share|improve this answer










      New contributor




      Sullivan is a new contributor to this site. Take care in asking for clarification, commenting, and answering.
      Check out our Code of Conduct.




















        up vote
        1
        down vote










        up vote
        1
        down vote









        I find how to solve this question. It's caused by the "ENV DEBIAN_FRONTEND=noninteractive" in Dockerfile.



        To install the ubuntu-18.04 we should set the package in the mode of noninteractive
        To install the adi_xxx.deb package we should set the event in the mode of interactive.



        So The correct Dockerfile:



        RUN apt-get -y update
        RUN DEBIAN_FRONTEND=noninteractive apt-get -y -q install net-tools build-essential minicom tftpd-hpa git-all subversion openssh-server ncurses-dev php gawk g++ m4 libncurses5-dev texinfo flex bison php-cli vim php-xml python-setuptools python-dev unzip rsync cpio bc lib32z1 lib32stdc++6 lib32ncurses5



        The wrong Dockerfile:



        EVN DEBIAN_FRONTEND=noninteractive
        RUN apt-get -y update
        RUN apt-get -y -q install net-tools build-essential minicom tftpd-hpa git-all subversion openssh-server ncurses-dev php gawk g++ m4 libncurses5-dev texinfo flex bison php-cli vim php-xml python-setuptools python-dev unzip rsync cpio bc lib32z1 lib32stdc++6 lib32ncurses5



        Note:
        Do not use the command "ENV DEBIAN_FRONTEND=noninteractive" in configuring the Dockerfile this is definitely not a reasonable default, and setting it via ENV should be actively discouraged, Refer to https://github.com/moby/moby/issues/4032






        share|improve this answer










        New contributor




        Sullivan is a new contributor to this site. Take care in asking for clarification, commenting, and answering.
        Check out our Code of Conduct.









        I find how to solve this question. It's caused by the "ENV DEBIAN_FRONTEND=noninteractive" in Dockerfile.



        To install the ubuntu-18.04 we should set the package in the mode of noninteractive
        To install the adi_xxx.deb package we should set the event in the mode of interactive.



        So The correct Dockerfile:



        RUN apt-get -y update
        RUN DEBIAN_FRONTEND=noninteractive apt-get -y -q install net-tools build-essential minicom tftpd-hpa git-all subversion openssh-server ncurses-dev php gawk g++ m4 libncurses5-dev texinfo flex bison php-cli vim php-xml python-setuptools python-dev unzip rsync cpio bc lib32z1 lib32stdc++6 lib32ncurses5



        The wrong Dockerfile:



        EVN DEBIAN_FRONTEND=noninteractive
        RUN apt-get -y update
        RUN apt-get -y -q install net-tools build-essential minicom tftpd-hpa git-all subversion openssh-server ncurses-dev php gawk g++ m4 libncurses5-dev texinfo flex bison php-cli vim php-xml python-setuptools python-dev unzip rsync cpio bc lib32z1 lib32stdc++6 lib32ncurses5



        Note:
        Do not use the command "ENV DEBIAN_FRONTEND=noninteractive" in configuring the Dockerfile this is definitely not a reasonable default, and setting it via ENV should be actively discouraged, Refer to https://github.com/moby/moby/issues/4032







        share|improve this answer










        New contributor




        Sullivan is a new contributor to this site. Take care in asking for clarification, commenting, and answering.
        Check out our Code of Conduct.









        share|improve this answer



        share|improve this answer








        edited Nov 27 at 20:41









        N0rbert

        19.8k54392




        19.8k54392






        New contributor




        Sullivan is a new contributor to this site. Take care in asking for clarification, commenting, and answering.
        Check out our Code of Conduct.









        answered Nov 27 at 5:56









        Sullivan

        182




        182




        New contributor




        Sullivan is a new contributor to this site. Take care in asking for clarification, commenting, and answering.
        Check out our Code of Conduct.





        New contributor





        Sullivan is a new contributor to this site. Take care in asking for clarification, commenting, and answering.
        Check out our Code of Conduct.






        Sullivan is a new contributor to this site. Take care in asking for clarification, commenting, and answering.
        Check out our Code of Conduct.






























            draft saved

            draft discarded




















































            Thanks for contributing an answer to Ask Ubuntu!


            • Please be sure to answer the question. Provide details and share your research!

            But avoid



            • Asking for help, clarification, or responding to other answers.

            • Making statements based on opinion; back them up with references or personal experience.


            To learn more, see our tips on writing great answers.





            Some of your past answers have not been well-received, and you're in danger of being blocked from answering.


            Please pay close attention to the following guidance:


            • Please be sure to answer the question. Provide details and share your research!

            But avoid



            • Asking for help, clarification, or responding to other answers.

            • Making statements based on opinion; back them up with references or personal experience.


            To learn more, see our tips on writing great answers.




            draft saved


            draft discarded














            StackExchange.ready(
            function () {
            StackExchange.openid.initPostLogin('.new-post-login', 'https%3a%2f%2faskubuntu.com%2fquestions%2f1095590%2fdpkg-package-pre-installation-script-subprocess-returned-error-exit-status-2-on%23new-answer', 'question_page');
            }
            );

            Post as a guest















            Required, but never shown





















































            Required, but never shown














            Required, but never shown












            Required, but never shown







            Required, but never shown

































            Required, but never shown














            Required, but never shown












            Required, but never shown







            Required, but never shown







            Popular posts from this blog

            Quarter-circle Tiles

            build a pushdown automaton that recognizes the reverse language of a given pushdown automaton?

            Mont Emei