[SOLVED] After downgrade gcc Nvidia driver doesen't work,fallback to default gcc doesn't work
Linux - SoftwareThis forum is for Software issues.
Having a problem installing a new program? Want to know which application is best for the job? Post your question in this forum.
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.
After downgrade gcc Nvidia driver doesen't work,fallback to default gcc doesn't work
Hello together
as I downgrade the gcc to 4.4 I changed the symlinks to the 4.4 Version. This doesen't work and now my System doesen't boot. As I learned now the Nvidia driver need the gcc compiler to work. Now I would like to get back to the default gcc but it doesen't work. What did I done yet
After that I tried to install the build essential package, but this ended with errors. The gcc and g++ package is not configured and so the dependencies of build essential doesn't exist
Code:
$ [sudo apt-get install build-essential
Paketlisten werden gelesen... Fertig
Abhängigkeitsbaum wird aufgebaut.
Statusinformationen werden eingelesen.... Fertig
Die folgenden zusätzlichen Pakete werden installiert:
g++ g++-9 gcc libstdc++-9-dev
Vorgeschlagene Pakete:
g++-multilib g++-9-multilib gcc-9-doc gcc-multilib autoconf automake libtool flex bison gcc-doc libstdc++-9-doc
Die folgenden NEUEN Pakete werden installiert:
build-essential g++ g++-9 gcc libstdc++-9-dev
0 aktualisiert, 5 neu installiert, 0 zu entfernen und 0 nicht aktualisiert.
Es müssen noch 0 B von 10,1 MB an Archiven heruntergeladen werden.
Nach dieser Operation werden 46,8 MB Plattenplatz zusätzlich benutzt.
Möchten Sie fortfahren? [J/n] j
Vormals nicht ausgewähltes Paket gcc wird gewählt.
(Lese Datenbank ... 262920 Dateien und Verzeichnisse sind derzeit installiert.)
Vorbereitung zum Entpacken von .../gcc_4%3a9.3.0-1ubuntu2_amd64.deb ...
Entpacken von gcc (4:9.3.0-1ubuntu2) ...
Vormals nicht ausgewähltes Paket libstdc++-9-dev:amd64 wird gewählt.
Vorbereitung zum Entpacken von .../libstdc++-9-dev_9.3.0-17ubuntu1~20.04_amd64.deb ...
Entpacken von libstdc++-9-dev:amd64 (9.3.0-17ubuntu1~20.04) ...
Vormals nicht ausgewähltes Paket g++-9 wird gewählt.
Vorbereitung zum Entpacken von .../g++-9_9.3.0-17ubuntu1~20.04_amd64.deb ...
Entpacken von g++-9 (9.3.0-17ubuntu1~20.04) ...
Vormals nicht ausgewähltes Paket g++ wird gewählt.
Vorbereitung zum Entpacken von .../g++_4%3a9.3.0-1ubuntu2_amd64.deb ...
Entpacken von g++ (4:9.3.0-1ubuntu2) ...
Vormals nicht ausgewähltes Paket build-essential wird gewählt.
Vorbereitung zum Entpacken von .../build-essential_12.8ubuntu1.1_amd64.deb ...
Entpacken von build-essential (12.8ubuntu1.1) ...
libstdc++-9-dev:amd64 (9.3.0-17ubuntu1~20.04) wird eingerichtet ...
gcc (4:9.3.0-1ubuntu2) wird eingerichtet ...
update-alternatives: Fehler: Alternativen-Pfad /usr/bin/gcc existiert nicht
dpkg: Fehler beim Bearbeiten des Paketes gcc (--configure):
»installiertes gcc-Skript des Paketes post-installation«-Unterprozess gab den Fehlerwert 2 zurück
g++-9 (9.3.0-17ubuntu1~20.04) wird eingerichtet ...
dpkg: Abhängigkeitsprobleme verhindern Konfiguration von g++:
g++ hängt ab von gcc (= 4:9.3.0-1ubuntu2); aber:
Paket gcc ist noch nicht konfiguriert.
dpkg: Fehler beim Bearbeiten des Paketes g++ (--configure):
Abhängigkeitsprobleme - verbleibt unkonfiguriert
Es wurde kein Apport-Bericht verfasst, da die Fehlermeldung darauf hindeutet, dass dies lediglich ein Folgefehler eines vorherigen Problems ist.
Es wurde kein Apport-Bericht verfasst, da die Fehlermeldung darauf hindeut
et, dass dies lediglich ein Folgefehler eines vorherigen Problems ist.
dpkg: Abhängigkeitsprobleme verhindern Konfiguration von build-essential:
build-essential hängt ab von gcc (>= 4:9.2); aber:
Paket gcc ist noch nicht konfiguriert.
build-essential hängt ab von g++ (>= 4:9.2); aber:
Paket g++ ist noch nicht konfiguriert.
dpkg: Fehler beim Bearbeiten des Paketes build-essential (--configure):
Abhängigkeitsprobleme - verbleibt unkonfiguriert
Trigger für man-db (2.9.1-1) werden verarbeitet ...
Fehler traten auf beim Bearbeiten von:
gcc
g++
build-essential
E: Sub-process /usr/bin/dpkg returned an error code (1)
If you tell us which version of Ubuntu, I could probably give similar information to below which is with Linux Mint. The first code box below shows what would get installed if I were to install build-essential in Linux Mint.
The second code box is the packages with gcc in their name installed in Linux Mint current. This is to show what may have been removed when you purged gcc.
build-essential:
Quote:
To be installed
g++
g++-9
lib-dev-bin
libc6-dev
libcrypt-dev
libstdc++-9-dev
jo@jo-GT72-6QD:~$ sudo apt purge gcc
Reading package lists... Done
Building dependency tree
Reading state information... Done
The following packages will be REMOVED:
gcc*
0 upgraded, 0 newly installed, 1 to remove and 0 not upgraded.
After this operation, 51.2 kB disk space will be freed.
Do you want to continue? [Y/n]
Distribution: PCLinuxOS2023 Fedora38 + 50+ other Linux OS, for test only.
Posts: 17,511
Rep:
@fritzmuster : Welcome to LQ.
1. You can have as many versions of gcc as you want, installed at the same time.
2. You are not supposed the remove the system gcc. Never.
Re #3 : Removed system packages can be reinstalled with
sudo apt install --reinstall [package name]
.... This should also make the broken links work again, I think.
LinuxQuestions.org is looking for people interested in writing
Editorials, Articles, Reviews, and more. If you'd like to contribute
content, let us know.