Quantcast
Channel: Active questions tagged windows-subsystem-for-linux - Ask Ubuntu
Viewing all articles
Browse latest Browse all 2798

apt error on WSL caused by libc-devtools, libc6

$
0
0

I'm using WSL, and when I try to install or update anything, the I get a message that I should try:

apt --fix-broken install

screenshot of error

This is the error:

Reading package lists... DoneBuilding dependency tree... DoneReading state information... DoneYou might want to run 'apt --fix-broken install' to correct these.The following packages have unmet dependencies: libc-dev-bin : Depends: libc6 (> 2.35) but 2.34-4 is installed                Recommends: libc-devtools (> 2.35) but 2.34-4 is installed libc6-dev : Depends: libc6 (= 2.35-4) but 2.34-4 is installed python3-venv : Depends: python3.10-venv (>= 3.10.6-1~) but it is not installedE: Unmet dependencies. Try 'apt --fix-broken install' with no packages (or specify a solution).

When I try the suggested command (sudo apt --fix-broken install), it gives:

Reading package lists... DoneBuilding dependency tree... DoneReading state information... DoneYou might want to run 'apt --fix-broken install' to correct these.The following packages have unmet dependencies: libc-dev-bin : Depends: libc6 (> 2.35) but 2.34-4 is installedAfter this operation, 1,091 kB disk space will be freed.Do you want to continue? [Y/n] yPreconfiguring packages ...debconf: DbDriver "templatedb": rename failed: Permission denied(Reading database ... 61275 files and directories currently installed.)Preparing to unpack .../libc-l10n_2.36-4_all.deb ...Unpacking libc-l10n (2.36-4) over (2.35-4) ...dpkg: error processing archive /var/cache/apt/archives/libc-l10n_2.36-4_all.deb (--unpack): unable to securely remove '/usr/share/doc/libc-l10n/changelog.Debian.gz.dpkg-tmp': Permission denieddpkg-deb: error: paste subprocess was killed by signal (Broken pipe)Preparing to unpack .../libc-dev-bin_2.36-4_amd64.deb ...Unpacking libc-dev-bin (2.36-4) over (2.35-4) ...dpkg: error processing archive /var/cache/apt/archives/libc-dev-bin_2.36-4_amd64.deb (--unpack): unable to securely remove '/usr/bin/gencat.dpkg-tmp': Permission deniedPreparing to unpack .../libc6-dev_2.36-4_amd64.deb ...Unpacking libc6-dev:amd64 (2.36-4) over (2.35-4) ...dpkg: error processing archive /var/cache/apt/archives/libc6-dev_2.36-4_amd64.deb (--unpack): unable to securely remove '/usr/include/arpa/tftp.h.dpkg-tmp': Permission denieddpkg-deb: error: paste subprocess was killed by signal (Broken pipe)Preparing to unpack .../locales-all_2.36-4_amd64.deb ...Unpacking locales-all (2.36-4) over (2.34-4) ...dpkg: error processing archive /var/cache/apt/archives/locales-all_2.36-4_amd64.deb (--unpack): unable to securely remove '/usr/lib/locale/aa_DJ/LC_ADDRESS.dpkg-tmp': Permission denieddpkg-deb: error: paste subprocess was killed by signal (Broken pipe)Preparing to unpack .../libc6_2.36-4_amd64.deb ...Checking for services that may need to be restarted...Checking init scripts...rm: cannot remove '/etc/ld.so.cache': Permission denieddebconf: DbDriver "templatedb": rename failed: Permission denieddpkg: error processing archive /var/cache/apt/archives/libc6_2.36-4_amd64.deb (--unpack): new libc6:amd64 package pre-installation script subprocess returned error exit status 1Errors were encountered while processing: /var/cache/apt/archives/libc-l10n_2.36-4_all.deb /var/cache/apt/archives/libc-dev-bin_2.36-4_amd64.deb /var/cache/apt/archives/libc6-dev_2.36-4_amd64.deb /var/cache/apt/archives/locales-all_2.36-4_amd64.deb /var/cache/apt/archives/libc6_2.36-4_amd64.debW: Problem unlinking the file /var/log/apt/eipp.log.xz - FileFd::Open (13: Permission denied)W: Could not open file /var/log/apt/eipp.log.xz - open (17: File exists)W: Could not open file '/var/log/apt/eipp.log.xz' - EIPP::OrderInstall (17: File exists)E: Problem renaming the file /var/lib/apt/extended_states.Y1PJ6u to /var/lib/apt/extended_states - rename (13: Permission denied)E: Sub-process /usr/bin/dpkg returned an error code (1)

screenshot of second error

The version I'm using

C:\Users\zico>wsl -l -v  NAME          STATE           VERSION* kali-linux    Running         1

Viewing all articles
Browse latest Browse all 2798

Trending Articles



<script src="https://jsc.adskeeper.com/r/s/rssing.com.1596347.js" async> </script>