I installed WSL Ubuntu22.04 LTS on Windows 10. But when I wanna install build-essential
andg++
, it popup errors like follow:
dpkg-dev : Depends: bzip2 but it is not installable libc6-dev : Depends: libc6 (= 2.27-3ubuntu1.6) but 2.35-0ubuntu3 is to be installed Depends: libc-dev-bin (= 2.27-3ubuntu1.6) but it is not going to be installedE: Unable to correct problems, you have held broken packages.
And I check the system, I found libc6=2.35-0ubuntu3 is already installed.and I've tried apt-get --fix-broken install
&sudo apt-get -f install
But it not make any sence.
To solve this problem, I run apt install command on diffierent version of Ubuntu like 20.04 and 18.04 that I downloaded from Windows Store. I got the same errors on these systems.BTW, I also had the same problem when I am installing some other packs like libncurses5-dev
I will be very grateful to those who giving helping!