UbuntuThis forum is for the discussion of Ubuntu Linux.
Notices
Welcome to LinuxQuestions.org, a friendly and active Linux Community.
You are currently viewing LQ as a guest. By joining our community you will have the ability to post topics, receive our newsletter, use the advanced search, subscribe to threads and access many other special features. Registration is quick, simple and absolutely free. Join our community today!
Note that registered members see fewer ads, and ContentLink is completely disabled once you log in.
If you have any problems with the registration process or your account login, please contact us. If you need to reset your password, click here.
Having a problem logging in? Please visit this page to clear all LQ-related cookies.
Get a virtual cloud desktop with the Linux distro that you want in less than five minutes with Shells! With over 10 pre-installed distros to choose from, the worry-free installation life is here! Whether you are a digital nomad or just looking for flexibility, Shells can put your Linux machine on the device that you want to use.
Exclusive for LQ members, get up to 45% off per month. Click here for more info.
Hi,
When I run apt-get command I get some errors. For example this:
Code:
mahmood@localhost:~$ sudo apt-get update
apt-get: /usr/local/lib/libstdc++.so.6: no version information available (required by apt-get)
apt-get: /usr/local/lib/libstdc++.so.6: no version information available (required by apt-get)
apt-get: /usr/local/lib/libstdc++.so.6: no version information available (required by apt-get)
apt-get: /usr/local/lib/libstdc++.so.6: no version information available (required by apt-get)
apt-get: /usr/local/lib/libstdc++.so.6: no version information available (required by /usr/lib/libapt-pkg.so.4.10)
apt-get: /usr/local/lib/libstdc++.so.6: no version information available (required by /usr/lib/libapt-pkg.so.4.10)
apt-get: /usr/local/lib/libstdc++.so.6: no version information available (required by /usr/lib/libapt-pkg.so.4.10)
apt-get: /usr/local/lib/libstdc++.so.6: no version information available (required by /usr/lib/libapt-pkg.so.4.10)
apt-get: relocation error: /usr/lib/libapt-pkg.so.4.10: symbol _ZNKSt5ctypeIcE13_M_widen_initEv, version GLIBCXX_3.4.11 not defined in file libstdc++.so.6 with link time reference
mahmood@localhost:~$ cat /etc/ld.so.conf.d/libc.conf
# libc default configuration
/usr/lib
#/usr/local/lib
mahmood@localhost:~$ sudo apt-get update
apt-get: /usr/local/lib/libstdc++.so.6: no version information available (required by apt-get)
apt-get: /usr/local/lib/libstdc++.so.6: no version information available (required by apt-get)
apt-get: /usr/local/lib/libstdc++.so.6: no version information available (required by apt-get)
apt-get: /usr/local/lib/libstdc++.so.6: no version information available (required by apt-get)
apt-get: /usr/local/lib/libstdc++.so.6: no version information available (required by /usr/lib/libapt-pkg.so.4.10)
apt-get: /usr/local/lib/libstdc++.so.6: no version information available (required by /usr/lib/libapt-pkg.so.4.10)
apt-get: /usr/local/lib/libstdc++.so.6: no version information available (required by /usr/lib/libapt-pkg.so.4.10)
apt-get: /usr/local/lib/libstdc++.so.6: no version information available (required by /usr/lib/libapt-pkg.so.4.10)
apt-get: relocation error: /usr/lib/libapt-pkg.so.4.10: symbol _ZNKSt5ctypeIcE13_M_widen_initEv, version GLIBCXX_3.4.11 not defined in file libstdc++.so.6 with link time reference
Distribution: PCLinuxOS2023 Fedora38 + 50+ other Linux OS, for test only.
Posts: 17,513
Rep:
Quote:
I have installed GCC 4.1.2 from source
If you have installed to a system path, you now have a wrong libstdc++.
A home made gcc must be installed to a hideaway location, like
/usr/local/gcc412/ or /opt/gcc412/. (../gcc-4.1.2/configure --prefix=/usr/local/gcc412 )
When 'apt-get' and Synaptic work again, you can reinstall all g++,
all dependencies for g++, g++-4.4.
The dependencies depend on some other packages : Also install these.
Installing gcc/g++-4.1.2 : sudo apt-get install g++-4.1
.. You will have to add 'hardy' to /etc/apt/sources.list
Code:
deb http://76.73.4.58/ubuntu/ hardy-updates main
deb http://76.73.4.58/ubuntu/ hardy universe
deb http://security.ubuntu.com/ubuntu hardy-security main
deb http://security.ubuntu.com/ubuntu hardy-security universe
P.S. : You can have as many compilers as you want, installed at the same time.
Available are : g++-3.3 g++-3.4 g++-4.1 g++-4.2 g++-4.3 g++-4.4 g++-4.5.
Distribution: PCLinuxOS2023 Fedora38 + 50+ other Linux OS, for test only.
Posts: 17,513
Rep:
OK, I guess you can leave the gcc-4.1.2 files for now, and let them be
overwritten by files from the default gcc-4.4 when / if you reinstall that.
( There is no 'make uninstall' for gcc.)
( And there should be no other conflicting files than libstdc++.so.6,
but no guaranties for that.)
A simple solution to solve the libstdc++.so.6 issues :
1) cd /usr/lib/
2) sudo rm libstdc++.so.6
3) sudo ln -s libstdc++.so.6.0.14 libstdc++.so.6
Then you should have the right version of libstdc++.so.6 again,
and can use 'apt-get' etc.
mahmood@localhost:~$ cd /usr/lib/
mahmood@localhost:lib$ sudo rm libstdc++.so.6
[sudo] password for mahmood:
mahmood@localhost:lib$ sudo ln libstdc++.so.6.0.14 libstdc++.so.6
mahmood@localhost:lib$ sudo apt-get update
apt-get: /usr/local/lib/libstdc++.so.6: no version information available (required by apt-get)
apt-get: /usr/local/lib/libstdc++.so.6: no version information available (required by apt-get)
apt-get: /usr/local/lib/libstdc++.so.6: no version information available (required by apt-get)
apt-get: /usr/local/lib/libstdc++.so.6: no version information available (required by apt-get)
apt-get: /usr/local/lib/libstdc++.so.6: no version information available (required by /usr/lib/libapt-pkg.so.4.10)
apt-get: /usr/local/lib/libstdc++.so.6: no version information available (required by /usr/lib/libapt-pkg.so.4.10)
apt-get: /usr/local/lib/libstdc++.so.6: no version information available (required by /usr/lib/libapt-pkg.so.4.10)
apt-get: /usr/local/lib/libstdc++.so.6: no version information available (required by /usr/lib/libapt-pkg.so.4.10)
apt-get: relocation error: /usr/lib/libapt-pkg.so.4.10: symbol _ZNKSt5ctypeIcE13_M_widen_initEv, version GLIBCXX_3.4.11 not defined in file libstdc++.so.6 with link time reference
Distribution: PCLinuxOS2023 Fedora38 + 50+ other Linux OS, for test only.
Posts: 17,513
Rep:
/usr/local/lib/libgcc_s.so.1 : Those gcc-4.1.2 files in /usr/local/lib/ :
You will have to move them away or delete them :
None of those are required. Are from your manual install of gcc-4.1.2.
May be the 'gcc' etc. in /usr/local/bin/ is disturbing too :
Delete or rename ( to gcc412 etc.)
It is still a mystery, why 'apt-get' looks in /usr/local/.
But then again : Not a location ever used for system files !
The system libgcc_s.so.1 is /lib/libgcc_s.so.1 ,
and I hope you still have it present.
LinuxQuestions.org is looking for people interested in writing
Editorials, Articles, Reviews, and more. If you'd like to contribute
content, let us know.