-2

Since upgrading from 17.04 to 17.10, while using Ubuntu Software, I get

E: The package libc6-dev needs to be reinstalled, 
   but I can't find an archive for it

What to do to solve this?

Zanna
  • 70,465
  • Which version of Ubuntu are you on? What are you trying to install? When did this start happening? We need a ton more information to even begin to help diagnose the issue. – Thomas Ward May 16 '18 at 18:42
  • Ubuntu 17.10. This start happening right after I updated from 17.04 to 17.10 – Watermelon May 16 '18 at 19:02
  • 2
    Have you tried doing sudo apt-get install --reinstall libc6-dev? Or are there more errors than just that one? – Thomas Ward May 16 '18 at 19:09
  • No, there is only one error. If I try to reinstall, then I get following : Reading package lists... Done Building dependency tree
    Reading state information... Done

    E: The package libc6-dev needs to be reinstalled, but I can't find an archive for it.

    – Watermelon May 17 '18 at 01:58
  • Close voters. Answered. – Elder Geek May 24 '18 at 21:47
  • https://stackoverflow.com/questions/30451939/cant-install-libc6-package provides an explanation of how to reinstall a specific version of libc6 – K7AAY May 25 '18 at 17:28

1 Answers1

1

There are very few reasons why you might not be able to install libc6-dev as it's available for all currently supported versions of Ubuntu.

One possibility is that you thought you had upgraded to 17.10 but did not succeed in the attempt, and it's looking for a 17.04 version which has moved.

You can confirm your current version of Ubuntu with the commands lsb_release -a and grep Ubuntu /etc/issue The version listed on the Description line of the former commands output should match the version you get from the latter command.

Since you say you get no other errors the other possibilities (network down, sever down) are unlikely, so I won't bother suggesting that you connect to the internet and choose a different mirror.

Elder Geek
  • 36,023
  • 25
  • 98
  • 183