Trying to reinstall libc6-dev: Subprocess was killed by signal

The name of the pictureThe name of the pictureThe name of the pictureClash Royale CLAN TAG#URR8PPP








up vote
0
down vote

favorite












I'm trying to reinstall libc6-dev since I accidentally removed /usr/include/stdio.h, and I'm getting the following message:



Do you want to continue? [Y/n] y
Get:1 http://us.archive.ubuntu.com/ubuntu artful-updates/main amd64 libc6-dev amd64 2.26-0ubuntu2.1 [2,526 kB]
Get:2 http://us.archive.ubuntu.com/ubuntu artful-updates/main i386 libc6-dev i386 2.26-0ubuntu2.1 [2,144 kB]
Fetched 4,669 kB in 1s (4,293 kB/s)
(Reading database ... 910409 files and directories currently installed.)
Preparing to unpack .../libc6-dev_2.26-0ubuntu2.1_amd64.deb ...
Unpacking libc6-dev:amd64 (2.26-0ubuntu2.1) over (2.26-0ubuntu2.1) ...
dpkg: error processing archive /var/cache/apt/archives/libc6-dev_2.26-0ubuntu2.1_amd64.deb (--unpack):
trying to overwrite shared '/usr/include/stdlib.h', which is different from other instances of package libc6-dev:amd64
dpkg-deb: error: subprocess paste was killed by signal (Broken pipe)
Preparing to unpack .../libc6-dev_2.26-0ubuntu2.1_i386.deb ...
Unpacking libc6-dev:i386 (2.26-0ubuntu2.1) over (2.26-0ubuntu2.1) ...
dpkg: error processing archive /var/cache/apt/archives/libc6-dev_2.26-0ubuntu2.1_i386.deb (--unpack):
trying to overwrite shared '/usr/include/stdlib.h', which is different from other instances of package libc6-dev:i386
dpkg-deb: error: subprocess paste was killed by signal (Broken pipe)
Errors were encountered while processing:
/var/cache/apt/archives/libc6-dev_2.26-0ubuntu2.1_amd64.deb
/var/cache/apt/archives/libc6-dev_2.26-0ubuntu2.1_i386.deb
E: Sub-process /usr/bin/dpkg returned an error code (1)


I've searched for solutions, but those deal with using apt install -f, rather than reïnstalling packages.










share|improve this question

















  • 2




    Looks like your two packages both provide /dev/include/stdlib.h. Do you really mean to be installing libc6-dev for both amd64 and i386 architectures? This is not a typical thing to do.
    – Martin W
    Apr 17 at 20:15














up vote
0
down vote

favorite












I'm trying to reinstall libc6-dev since I accidentally removed /usr/include/stdio.h, and I'm getting the following message:



Do you want to continue? [Y/n] y
Get:1 http://us.archive.ubuntu.com/ubuntu artful-updates/main amd64 libc6-dev amd64 2.26-0ubuntu2.1 [2,526 kB]
Get:2 http://us.archive.ubuntu.com/ubuntu artful-updates/main i386 libc6-dev i386 2.26-0ubuntu2.1 [2,144 kB]
Fetched 4,669 kB in 1s (4,293 kB/s)
(Reading database ... 910409 files and directories currently installed.)
Preparing to unpack .../libc6-dev_2.26-0ubuntu2.1_amd64.deb ...
Unpacking libc6-dev:amd64 (2.26-0ubuntu2.1) over (2.26-0ubuntu2.1) ...
dpkg: error processing archive /var/cache/apt/archives/libc6-dev_2.26-0ubuntu2.1_amd64.deb (--unpack):
trying to overwrite shared '/usr/include/stdlib.h', which is different from other instances of package libc6-dev:amd64
dpkg-deb: error: subprocess paste was killed by signal (Broken pipe)
Preparing to unpack .../libc6-dev_2.26-0ubuntu2.1_i386.deb ...
Unpacking libc6-dev:i386 (2.26-0ubuntu2.1) over (2.26-0ubuntu2.1) ...
dpkg: error processing archive /var/cache/apt/archives/libc6-dev_2.26-0ubuntu2.1_i386.deb (--unpack):
trying to overwrite shared '/usr/include/stdlib.h', which is different from other instances of package libc6-dev:i386
dpkg-deb: error: subprocess paste was killed by signal (Broken pipe)
Errors were encountered while processing:
/var/cache/apt/archives/libc6-dev_2.26-0ubuntu2.1_amd64.deb
/var/cache/apt/archives/libc6-dev_2.26-0ubuntu2.1_i386.deb
E: Sub-process /usr/bin/dpkg returned an error code (1)


I've searched for solutions, but those deal with using apt install -f, rather than reïnstalling packages.










share|improve this question

















  • 2




    Looks like your two packages both provide /dev/include/stdlib.h. Do you really mean to be installing libc6-dev for both amd64 and i386 architectures? This is not a typical thing to do.
    – Martin W
    Apr 17 at 20:15












up vote
0
down vote

favorite









up vote
0
down vote

favorite











I'm trying to reinstall libc6-dev since I accidentally removed /usr/include/stdio.h, and I'm getting the following message:



Do you want to continue? [Y/n] y
Get:1 http://us.archive.ubuntu.com/ubuntu artful-updates/main amd64 libc6-dev amd64 2.26-0ubuntu2.1 [2,526 kB]
Get:2 http://us.archive.ubuntu.com/ubuntu artful-updates/main i386 libc6-dev i386 2.26-0ubuntu2.1 [2,144 kB]
Fetched 4,669 kB in 1s (4,293 kB/s)
(Reading database ... 910409 files and directories currently installed.)
Preparing to unpack .../libc6-dev_2.26-0ubuntu2.1_amd64.deb ...
Unpacking libc6-dev:amd64 (2.26-0ubuntu2.1) over (2.26-0ubuntu2.1) ...
dpkg: error processing archive /var/cache/apt/archives/libc6-dev_2.26-0ubuntu2.1_amd64.deb (--unpack):
trying to overwrite shared '/usr/include/stdlib.h', which is different from other instances of package libc6-dev:amd64
dpkg-deb: error: subprocess paste was killed by signal (Broken pipe)
Preparing to unpack .../libc6-dev_2.26-0ubuntu2.1_i386.deb ...
Unpacking libc6-dev:i386 (2.26-0ubuntu2.1) over (2.26-0ubuntu2.1) ...
dpkg: error processing archive /var/cache/apt/archives/libc6-dev_2.26-0ubuntu2.1_i386.deb (--unpack):
trying to overwrite shared '/usr/include/stdlib.h', which is different from other instances of package libc6-dev:i386
dpkg-deb: error: subprocess paste was killed by signal (Broken pipe)
Errors were encountered while processing:
/var/cache/apt/archives/libc6-dev_2.26-0ubuntu2.1_amd64.deb
/var/cache/apt/archives/libc6-dev_2.26-0ubuntu2.1_i386.deb
E: Sub-process /usr/bin/dpkg returned an error code (1)


I've searched for solutions, but those deal with using apt install -f, rather than reïnstalling packages.










share|improve this question













I'm trying to reinstall libc6-dev since I accidentally removed /usr/include/stdio.h, and I'm getting the following message:



Do you want to continue? [Y/n] y
Get:1 http://us.archive.ubuntu.com/ubuntu artful-updates/main amd64 libc6-dev amd64 2.26-0ubuntu2.1 [2,526 kB]
Get:2 http://us.archive.ubuntu.com/ubuntu artful-updates/main i386 libc6-dev i386 2.26-0ubuntu2.1 [2,144 kB]
Fetched 4,669 kB in 1s (4,293 kB/s)
(Reading database ... 910409 files and directories currently installed.)
Preparing to unpack .../libc6-dev_2.26-0ubuntu2.1_amd64.deb ...
Unpacking libc6-dev:amd64 (2.26-0ubuntu2.1) over (2.26-0ubuntu2.1) ...
dpkg: error processing archive /var/cache/apt/archives/libc6-dev_2.26-0ubuntu2.1_amd64.deb (--unpack):
trying to overwrite shared '/usr/include/stdlib.h', which is different from other instances of package libc6-dev:amd64
dpkg-deb: error: subprocess paste was killed by signal (Broken pipe)
Preparing to unpack .../libc6-dev_2.26-0ubuntu2.1_i386.deb ...
Unpacking libc6-dev:i386 (2.26-0ubuntu2.1) over (2.26-0ubuntu2.1) ...
dpkg: error processing archive /var/cache/apt/archives/libc6-dev_2.26-0ubuntu2.1_i386.deb (--unpack):
trying to overwrite shared '/usr/include/stdlib.h', which is different from other instances of package libc6-dev:i386
dpkg-deb: error: subprocess paste was killed by signal (Broken pipe)
Errors were encountered while processing:
/var/cache/apt/archives/libc6-dev_2.26-0ubuntu2.1_amd64.deb
/var/cache/apt/archives/libc6-dev_2.26-0ubuntu2.1_i386.deb
E: Sub-process /usr/bin/dpkg returned an error code (1)


I've searched for solutions, but those deal with using apt install -f, rather than reïnstalling packages.







apt 17.10 dpkg






share|improve this question













share|improve this question











share|improve this question




share|improve this question










asked Apr 17 at 20:05









bb94

189110




189110







  • 2




    Looks like your two packages both provide /dev/include/stdlib.h. Do you really mean to be installing libc6-dev for both amd64 and i386 architectures? This is not a typical thing to do.
    – Martin W
    Apr 17 at 20:15












  • 2




    Looks like your two packages both provide /dev/include/stdlib.h. Do you really mean to be installing libc6-dev for both amd64 and i386 architectures? This is not a typical thing to do.
    – Martin W
    Apr 17 at 20:15







2




2




Looks like your two packages both provide /dev/include/stdlib.h. Do you really mean to be installing libc6-dev for both amd64 and i386 architectures? This is not a typical thing to do.
– Martin W
Apr 17 at 20:15




Looks like your two packages both provide /dev/include/stdlib.h. Do you really mean to be installing libc6-dev for both amd64 and i386 architectures? This is not a typical thing to do.
– Martin W
Apr 17 at 20:15










1 Answer
1






active

oldest

votes

















up vote
1
down vote



accepted










If you are sure that this is really want to do (see comment above), you can do



sudo apt-get -o Dpkg::Options::="--force-overwrite" install libc6-dev-amd64 libc6-dev-i386



This passes the --force-overwrite flag to dpkg which allows one package to overwrite another one's file. Of course, if you have the deb files, you can using the underlying dpkg command directly as:



sudo dpkg -i --force-overwrite libc6-dev-amd64 libc6-dev-dev-i386






share|improve this answer




















    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: false,
    showLowRepImageUploadWarning: true,
    reputationToPostImages: 10,
    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%2faskubuntu.com%2fquestions%2f1025919%2ftrying-to-reinstall-libc6-dev-subprocess-was-killed-by-signal%23new-answer', 'question_page');

    );

    Post as a guest






























    1 Answer
    1






    active

    oldest

    votes








    1 Answer
    1






    active

    oldest

    votes









    active

    oldest

    votes






    active

    oldest

    votes








    up vote
    1
    down vote



    accepted










    If you are sure that this is really want to do (see comment above), you can do



    sudo apt-get -o Dpkg::Options::="--force-overwrite" install libc6-dev-amd64 libc6-dev-i386



    This passes the --force-overwrite flag to dpkg which allows one package to overwrite another one's file. Of course, if you have the deb files, you can using the underlying dpkg command directly as:



    sudo dpkg -i --force-overwrite libc6-dev-amd64 libc6-dev-dev-i386






    share|improve this answer
























      up vote
      1
      down vote



      accepted










      If you are sure that this is really want to do (see comment above), you can do



      sudo apt-get -o Dpkg::Options::="--force-overwrite" install libc6-dev-amd64 libc6-dev-i386



      This passes the --force-overwrite flag to dpkg which allows one package to overwrite another one's file. Of course, if you have the deb files, you can using the underlying dpkg command directly as:



      sudo dpkg -i --force-overwrite libc6-dev-amd64 libc6-dev-dev-i386






      share|improve this answer






















        up vote
        1
        down vote



        accepted







        up vote
        1
        down vote



        accepted






        If you are sure that this is really want to do (see comment above), you can do



        sudo apt-get -o Dpkg::Options::="--force-overwrite" install libc6-dev-amd64 libc6-dev-i386



        This passes the --force-overwrite flag to dpkg which allows one package to overwrite another one's file. Of course, if you have the deb files, you can using the underlying dpkg command directly as:



        sudo dpkg -i --force-overwrite libc6-dev-amd64 libc6-dev-dev-i386






        share|improve this answer












        If you are sure that this is really want to do (see comment above), you can do



        sudo apt-get -o Dpkg::Options::="--force-overwrite" install libc6-dev-amd64 libc6-dev-i386



        This passes the --force-overwrite flag to dpkg which allows one package to overwrite another one's file. Of course, if you have the deb files, you can using the underlying dpkg command directly as:



        sudo dpkg -i --force-overwrite libc6-dev-amd64 libc6-dev-dev-i386







        share|improve this answer












        share|improve this answer



        share|improve this answer










        answered Apr 17 at 20:45









        Martin W

        74238




        74238



























             

            draft saved


            draft discarded















































             


            draft saved


            draft discarded














            StackExchange.ready(
            function ()
            StackExchange.openid.initPostLogin('.new-post-login', 'https%3a%2f%2faskubuntu.com%2fquestions%2f1025919%2ftrying-to-reinstall-libc6-dev-subprocess-was-killed-by-signal%23new-answer', 'question_page');

            );

            Post as a guest













































































            Popular posts from this blog

            Which professions warranted travel in Medieval times?

            How do so many people here on Academia.SE, and in general, afford lavish higher education programs?

            Trouble downloading packages list due to a “Hash sum mismatch” error