Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Can't run the program on Ubuntu 16.04 LTS #531

Closed
1 task done
ABADY1000 opened this issue May 8, 2024 · 6 comments
Closed
1 task done

Can't run the program on Ubuntu 16.04 LTS #531

ABADY1000 opened this issue May 8, 2024 · 6 comments
Labels
bug Something isn't working Linux Something related to Linux operating system

Comments

@ABADY1000
Copy link

ABADY1000 commented May 8, 2024

Is there an existing issue for this?

  • I have searched the existing issues.

What's the problem?

I can't run sniffnet on my machine, it complains of GLIBC version!

I installed it by downloading Debian package amd64 and install it using dpkg

sudo dpkg -i ./Sniffnet_linuxDEB_amd64.deb

When it didn't run I tried to install the dependecies mentioned in here
image

$ sudo apt-get install libpcap-dev libasound2-dev libfontconfig1-dev libgtk-3-dev

and it was installed successfully

When ever I try to run it this is what happen

 $ sudo sniffnet 
sniffnet: /lib/x86_64-linux-gnu/libm.so.6: version `GLIBC_2.29' not found (required by sniffnet)
sniffnet: /lib/x86_64-linux-gnu/libm.so.6: version `GLIBC_2.27' not found (required by sniffnet)
sniffnet: /lib/x86_64-linux-gnu/libc.so.6: version `GLIBC_2.29' not found (required by sniffnet)
sniffnet: /lib/x86_64-linux-gnu/libc.so.6: version `GLIBC_2.28' not found (required by sniffnet)
sniffnet: /lib/x86_64-linux-gnu/libc.so.6: version `GLIBC_2.25' not found (required by sniffnet)

My system details:

 $ uname -a
Linux ambat-PC 5.11.5 #1 SMP Sun Apr 4 12:39:37 +03 2021 x86_64 x86_64 x86_64 GNU/Linux
 $ lsb_release -a
No LSB modules are available.
Distributor ID:	Ubuntu
Description:	Ubuntu 16.04.7 LTS
Release:	16.04
Codename:	xenial

And I don't know exactly how to check GLIBC version, but here is something I tried:

 $ ls -al /lib/x86_64-linux-gnu/libc* | awk '{print $9}' 
/lib/x86_64-linux-gnu/libc-2.23.so
/lib/x86_64-linux-gnu/libcap.so.2
/lib/x86_64-linux-gnu/libcap.so.2.24
/lib/x86_64-linux-gnu/libcgmanager.so.0
/lib/x86_64-linux-gnu/libcgmanager.so.0.0.0
/lib/x86_64-linux-gnu/libcidn-2.23.so
/lib/x86_64-linux-gnu/libcidn.so.1
/lib/x86_64-linux-gnu/libcom_err.so.2
/lib/x86_64-linux-gnu/libcom_err.so.2.1
/lib/x86_64-linux-gnu/libcrypt-2.23.so
/lib/x86_64-linux-gnu/libcrypto.so.1.0.0
/lib/x86_64-linux-gnu/libcryptsetup.so.4
/lib/x86_64-linux-gnu/libcryptsetup.so.4.6.0
/lib/x86_64-linux-gnu/libcrypt.so.1
/lib/x86_64-linux-gnu/libc.so.6

Sounds my GLIBC version is old, how could I upgrade it safely? or is the problem somewhere else?

How did you install the app?

downloaded one of the provided packages

Operating System

Linux

Additional context

No response

@GyulyVGC
Copy link
Owner

GyulyVGC commented May 8, 2024

Hi @ABADY1000

$ sudo sniffnet
sniffnet: /lib/x86_64-linux-gnu/libm.so.6: version GLIBC_2.29' not found (required by sniffnet) sniffnet: /lib/x86_64-linux-gnu/libm.so.6: version GLIBC_2.27' not found (required by sniffnet)
sniffnet: /lib/x86_64-linux-gnu/libc.so.6: version GLIBC_2.29' not found (required by sniffnet) sniffnet: /lib/x86_64-linux-gnu/libc.so.6: version GLIBC_2.28' not found (required by sniffnet)
sniffnet: /lib/x86_64-linux-gnu/libc.so.6: version `GLIBC_2.25' not found (required by sniffnet)

Is the output the same if you run without sudo?
Could you please also try sudo -E sniffnet?

@GyulyVGC GyulyVGC added bug Something isn't working Linux Something related to Linux operating system labels May 8, 2024
@GyulyVGC
Copy link
Owner

GyulyVGC commented May 8, 2024

If the error persists try updating the package with:

sudo apt-get update
sudo apt-get install libc6

@ABADY1000
Copy link
Author

Hi @ABADY1000

$ sudo sniffnet
sniffnet: /lib/x86_64-linux-gnu/libm.so.6: version GLIBC_2.29' not found (required by sniffnet) sniffnet: /lib/x86_64-linux-gnu/libm.so.6: version GLIBC_2.27' not found (required by sniffnet)
sniffnet: /lib/x86_64-linux-gnu/libc.so.6: version GLIBC_2.29' not found (required by sniffnet) sniffnet: /lib/x86_64-linux-gnu/libc.so.6: version GLIBC_2.28' not found (required by sniffnet)
sniffnet: /lib/x86_64-linux-gnu/libc.so.6: version `GLIBC_2.25' not found (required by sniffnet)

Is the output the same if you run without sudo? Could you please also try sudo -E sniffnet?

Hello @GyulyVGC , thank you for your reply

Yes it is the same output:

$ sniffnet
sniffnet: /lib/x86_64-linux-gnu/libm.so.6: version `GLIBC_2.29' not found (required by sniffnet)
sniffnet: /lib/x86_64-linux-gnu/libm.so.6: version `GLIBC_2.27' not found (required by sniffnet)
sniffnet: /lib/x86_64-linux-gnu/libc.so.6: version `GLIBC_2.29' not found (required by sniffnet)
sniffnet: /lib/x86_64-linux-gnu/libc.so.6: version `GLIBC_2.28' not found (required by sniffnet)
sniffnet: /lib/x86_64-linux-gnu/libc.so.6: version `GLIBC_2.25' not found (required by sniffnet)

And the other command also generated the same error

$ sudo -E sniffnet
sniffnet: /lib/x86_64-linux-gnu/libm.so.6: version `GLIBC_2.29' not found (required by sniffnet)
sniffnet: /lib/x86_64-linux-gnu/libm.so.6: version `GLIBC_2.27' not found (required by sniffnet)
sniffnet: /lib/x86_64-linux-gnu/libc.so.6: version `GLIBC_2.29' not found (required by sniffnet)
sniffnet: /lib/x86_64-linux-gnu/libc.so.6: version `GLIBC_2.28' not found (required by sniffnet)
sniffnet: /lib/x86_64-linux-gnu/libc.so.6: version `GLIBC_2.25' not found (required by sniffnet)

@ABADY1000
Copy link
Author

If the error persists try updating the package with:

sudo apt-get update
sudo apt-get install libc6

Here is the output from the second command after updating the packages

$ sudo apt-get install libc6
Reading package lists... Done
Building dependency tree       
Reading state information... Done
libc6 is already the newest version (2.23-0ubuntu11.3).
The following packages were automatically installed and are no longer required:
  gcc-5-base:i386 pandoc-data
Use 'sudo apt autoremove' to remove them.
0 upgraded, 0 newly installed, 0 to remove and 9 not upgraded.

@ABADY1000
Copy link
Author

It sounds like Ubuntu 16.04 is not supported, I run it on my another machine with Ubuntu 20.04 and it work directly

@GyulyVGC
Copy link
Owner

GyulyVGC commented May 8, 2024

I'm happy you solved it somehow, even if the problem is still there... I imagine it's some dependency that's outdated and cannot be updated on older Ubuntu versions

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working Linux Something related to Linux operating system
Projects
None yet
Development

No branches or pull requests

2 participants