Sunday, April 28, 2024
6
rated 0 times [  6] [ 0]  / answers: 1 / hits: 18914  / 2 Years ago, thu, may 5, 2022, 5:09:15

I'm a newbie to Linux and Ubuntu, and I'm trying to install a package called libstdc++2.10-glibc2.2 I first use wget



wget http://packages.ubuntu.com/dapper/libstdc++2.10-glibc2.2


It gives me saving to libstdc++2.10-glibc2.2.4 so it adds an extra .4 at the end. Then I do



sudo dpkg -i libstdc++2.10-glibc2.2.4


and it gives me



dpkg-deb: error: `libstdc++2.10-glibc2.2.4' is not a debian format archive
dpkg: error processing libstdc++2.10-glibc2.2.4 (--install):
subprocess dpkg-deb --control returned error exit status 2
Errors were encountered while processing:
libstdc++2.10-glibc2.2.4


What am I doing wrong?


More From » package-management

 Answers
3

There is no package by the name of libstdc++2.10-glibc2.2. You can check this by going to the URL that you have mentioned in the question: http://packages.ubuntu.com/dapper/libstdc++2.10-glibc2.2.



When you run wget for the above URL, you end up downloading the web page (check the wget command output which states that you are downloading text/html).



If you want to install the C++ compiler and the C++ STL, then just install g++. sudo apt-get install g++.


[#42307] Friday, May 6, 2022, 2 Years  [reply] [flag answer]
Only authorized users can answer the question. Please sign in first, or register a free account.
aciousoun

Total Points: 178
Total Questions: 110
Total Answers: 98

Location: Lithuania
Member since Fri, Sep 4, 2020
4 Years ago
;