Page 1 of 4 123 ... LastLast
Results 1 to 10 of 33

Thread: Depends: libc6 (>= 2.38) but 2.35-0ubuntu3.8 is installed

  1. #1
    Join Date
    Oct 2024
    Beans
    16

    Depends: libc6 (>= 2.38) but 2.35-0ubuntu3.8 is installed

    Similar error has been posted on this forum, unfortunately, the solutions to them could not help me.

    The version of my OS is (lsb_release -a):

    Code:
    No LSB modules are available.
    Distributor ID:	Ubuntu
    Description:	Ubuntu 22.04.5 LTS
    Release:	22.04
    Codename:	jammy
    When I execute (sudo apt upgrade), I got the following:
    Code:
    Reading package lists... Done
    Building dependency tree... Done
    Reading state information... Done
    You might want to run 'apt --fix-broken install' to correct these.
    The following packages have unmet dependencies:
     linux-headers-6.5.0-060500-generic : Depends: libc6 (>= 2.38) but 2.35-0ubuntu3.8 is installed
    E: Unmet dependencies. Try 'apt --fix-broken install' with no packages (or specify a solution).
    I also tried to execute: (sudo apt install -f libc6=2.35-0ubuntu3.8 libc-bin=2.35-0ubuntu3.8), but still got:
    Code:
    Reading package lists... Done
    Building dependency tree... Done
    Reading state information... Done
    libc-bin is already the newest version (2.35-0ubuntu3.8).
    libc-bin set to manually installed.
    libc6 is already the newest version (2.35-0ubuntu3.8).
    libc6 set to manually installed.
    You might want to run 'apt --fix-broken install' to correct these.
    The following packages have unmet dependencies:
     linux-headers-6.5.0-060500-generic : Depends: libc6 (>= 2.38) but 2.35-0ubuntu3.8 is to be installed
    E: Unmet dependencies. Try 'apt --fix-broken install' with no packages (or specify a solution).
    Thank you in advance.

  2. #2
    Join Date
    Jul 2010
    Location
    ozarks, Arkansas, USA
    Beans
    14,349
    Distro
    Xubuntu 24.04 Noble Numbat

    Re: Depends: libc6 (>= 2.38) but 2.35-0ubuntu3.8 is installed

    Hello tengerye - Welcome to the forum.

    That kernel/header is old; current is:
    6.8.0.44.44.1~22.04.1
    Which leads to the question of what kernel you are presently booting and the headers that are installed.
    Please show us the outputs of terminal commands - between code tags:
    Code:
    uname -r
    ls -al /usr/src/
    code tag tutorial:
    http://ubuntuforums.org/showthread.p...8#post12776168
    and let us consider removing 6.5.0-060500-generic.

    -One way forward-
    THE current(cy) in Documentation:
    https://help.ubuntu.com/community/PopularPages

    Happy ubuntu'n !

  3. #3
    Join Date
    Oct 2024
    Beans
    16

    Re: Depends: libc6 (>= 2.38) but 2.35-0ubuntu3.8 is installed

    Thank you so much.

    The output of command: (uname -r) is:

    Code:
    6.5.0-41-generic

    The output command of (ls -al /usr/src/) is:

    Code:
    drwxr-xr-x  8 root root 4096 10月 11 20:58 .
    drwxr-xr-x 14 root root 4096  2月 21  2024 ..
    drwxr-xr-x 25 root root 4096 10月 11 20:58 linux-headers-6.5.0-060500
    drwxr-xr-x  7 root root 4096 10月 11 20:58 linux-headers-6.5.0-060500-generic
    drwxr-xr-x  7 root root 4096  7月  7 10:21 linux-headers-6.5.0-41-generic
    drwxr-xr-x  7 root root 4096 10月 10 11:13 linux-headers-6.8.0-45-generic
    drwxr-xr-x 26 root root 4096  7月  7 10:21 linux-hwe-6.5-headers-6.5.0-41
    drwxr-xr-x 26 root root 4096 10月 10 11:13 linux-hwe-6.8-headers-6.8.0-45


    My ultimate goal is to install NVIDIA CUDA on my Ubuntu. According to their lates instruction (https://docs.nvidia.com/cuda/cuda-in...n-guide-linux/), they support the version 5.15.0-102.

    May I ask what is next please?

  4. #4
    Join Date
    Jul 2010
    Location
    ozarks, Arkansas, USA
    Beans
    14,349
    Distro
    Xubuntu 24.04 Noble Numbat

    Re: Depends: libc6 (>= 2.38) but 2.35-0ubuntu3.8 is installed

    tengerye hummm -

    My ultimate goal is to install NVIDIA CUDA on my Ubuntu. According to their lates instruction (https://docs.nvidia.com/cuda/cuda-in...n-guide-linux/), they support the version 5.15.0-102.
    Now that is something I have no experience with and know nothing about -
    However
    As you do say - version 5.15.0-102 -
    then you would, if that is the case, install Focal - release 20.04 !
    see:
    https://packages.ubuntu.com/search?k...es&section=all

    Depending on what you find out and what you want to do is what is to be done next.

    which way did he go, George
    THE current(cy) in Documentation:
    https://help.ubuntu.com/community/PopularPages

    Happy ubuntu'n !

  5. #5
    Join Date
    Oct 2024
    Beans
    16

    Re: Depends: libc6 (>= 2.38) but 2.35-0ubuntu3.8 is installed

    Thank you for your help.

    May I ask, if I would like to keep kernel 6.8.0. Should I delete everything except kernel linux-headers-6.8.0-45-generic and linux-hwe-6.8-headers-6.8.0-45?

  6. #6
    Join Date
    Jul 2010
    Location
    ozarks, Arkansas, USA
    Beans
    14,349
    Distro
    Xubuntu 24.04 Noble Numbat

    Re: Depends: libc6 (>= 2.38) but 2.35-0ubuntu3.8 is installed

    tengerye

    If you desire to remain on this current install we need to find out why you are not booting the latest kernel - and of course fix that old header dependency issue. Generally speaking we want to keep the latest kernel and one other as a fall back.
    If one keeps latest and the one under it --- then "autoremove" will do the housecleaning for us.

    -here to help-
    THE current(cy) in Documentation:
    https://help.ubuntu.com/community/PopularPages

    Happy ubuntu'n !

  7. #7
    Join Date
    Oct 2024
    Beans
    16

    Re: Depends: libc6 (>= 2.38) but 2.35-0ubuntu3.8 is installed

    I tried to switch to 6.8.0, but still can install nothing.
    My command (uname -r) is:
    Code:
    6.8.0-45-generic


    And I tried this command: sudo apt install make, but I got:
    Code:
    Reading package lists... Done
    Building dependency tree... Done
    Reading state information... Done
    make is already the newest version (4.3-4.1build1).
    make set to manually installed.
    You might want to run 'apt --fix-broken install' to correct these.
    The following packages have unmet dependencies:
     linux-headers-6.5.0-060500-generic : Depends: libc6 (>= 2.38) but 2.35-0ubuntu3.8 is to be installed
    E: Unmet dependencies. Try 'apt --fix-broken install' with no packages (or specify a solution).


    Then I tried:
    sudo apt --fix-broken install
    but I got:
    Code:
    Reading package lists... Done
    Building dependency tree... Done
    Reading state information... Done
    Correcting dependencies... failed.
    The following packages have unmet dependencies:
     linux-headers-6.5.0-060500-generic : Depends: libc6 (>= 2.38) but 2.35-0ubuntu3.8 is installed
    E: Error, pkgProblemResolver::Resolve generated breaks, this may be caused by held packages.
    E: Unable to correct dependencies

  8. #8
    Join Date
    Jul 2010
    Location
    ozarks, Arkansas, USA
    Beans
    14,349
    Distro
    Xubuntu 24.04 Noble Numbat

    Re: Depends: libc6 (>= 2.38) but 2.35-0ubuntu3.8 is installed

    tengerye; Good -

    in that you are booting the 6.8.0-45 HWE kernel.
    Next we need to know what is going on with the libc6 package in order to purge no longer wanted kernels.

    show us:
    Code:
    apt policy libc6
    ls -al /boot/
    libc6 should be version 2.35-0ubuntu3.8 in jammy:
    https://packages.ubuntu.com/search?k...es&section=all

    see what we are going to do here
    THE current(cy) in Documentation:
    https://help.ubuntu.com/community/PopularPages

    Happy ubuntu'n !

  9. #9
    Join Date
    Apr 2011
    Location
    Mystletainn Kick!
    Beans
    13,931
    Distro
    Ubuntu

    Re: Depends: libc6 (>= 2.38) but 2.35-0ubuntu3.8 is installed

    Try
    Code:
    sudo dpkg --purge --force-all linux-headers-6.5.0-060500-generic
    Splat Double Splat Triple Splat
    Earn Your Keep
    Don't mind me, I'm only passing through.
    Once in a blue moon, I'm actually helpful
    .

  10. #10
    Join Date
    Oct 2024
    Beans
    16

    Re: Depends: libc6 (>= 2.38) but 2.35-0ubuntu3.8 is installed

    Thank you so much.

    My command: apt policy libc6
    Code:
    libc6:
      Installed: 2.35-0ubuntu3.8
      Candidate: 2.35-0ubuntu3.8
      Version table:
     *** 2.35-0ubuntu3.8 100
            100 /var/lib/dpkg/status
    My command: ls -al /boot/
    Code:
    drwxr-xr-x  5 root root     4096 10月 11 20:58 .
    drwxr-xr-x 20 root root     4096  5月 18 08:50 ..
    -rw-r--r--  1 root root   278502  8月 28  2023 config-6.5.0-060500-generic
    -rw-r--r--  1 root root   280657  6月  3 18:09 config-6.5.0-41-generic
    -rw-r--r--  1 root root   287058  9月 11 21:33 config-6.8.0-45-generic
    drwx------  4 root root     4096  1月  1  1970 efi
    drwxr-xr-x  5 root root     4096 10月 11 22:42 grub
    lrwxrwxrwx  1 root root       31 10月 11 20:58 initrd.img -> initrd.img-6.5.0-060500-generic
    -rw-r--r--  1 root root 70920863 10月 11 20:58 initrd.img-6.5.0-060500-generic
    -rw-r--r--  1 root root 71014197 10月 10 11:15 initrd.img-6.5.0-41-generic
    -rw-r--r--  1 root root 72026141 10月 10 11:15 initrd.img-6.8.0-45-generic
    lrwxrwxrwx  1 root root       27 10月 11 20:58 initrd.img.old -> initrd.img-6.8.0-45-generic
    drwx------  2 root root    16384  5月 18 08:48 lost+found
    -rw-r--r--  1 root root   182800  2月  7  2022 memtest86+.bin
    -rw-r--r--  1 root root   184476  2月  7  2022 memtest86+.elf
    -rw-r--r--  1 root root   184980  2月  7  2022 memtest86+_multiboot.bin
    -rw-------  1 root root  8221682  8月 28  2023 System.map-6.5.0-060500-generic
    -rw-------  1 root root  8268513  6月  3 18:09 System.map-6.5.0-41-generic
    -rw-------  1 root root  8657806  9月 11 21:33 System.map-6.8.0-45-generic
    lrwxrwxrwx  1 root root       28 10月 11 20:58 vmlinuz -> vmlinuz-6.5.0-060500-generic
    -rw-------  1 root root 14088704  8月 28  2023 vmlinuz-6.5.0-060500-generic
    -rw-------  1 root root 14271496  6月  3 18:10 vmlinuz-6.5.0-41-generic
    -rw-------  1 root root 14911880  9月 11 21:59 vmlinuz-6.8.0-45-generic
    lrwxrwxrwx  1 root root       24 10月 11 20:58 vmlinuz.old -> vmlinuz-6.8.0-45-generic

Page 1 of 4 123 ... LastLast

Bookmarks

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •