rabiaozcan
Femtopat
- Katılım
- 14 Kasım 2020
- Mesajlar
- 15
Daha fazla
- Cinsiyet
- Kadın
sudo apt install gcc-8 komutunu uyguladığımda "gcc-8 en yeni sürümde" şeklinde çıktı veriyor. Buna rağmen gcc --version diye sorguladığımda "gcc komutu bulunamadı" şeklinde çıktı alıyorum ve /usr/bin/ altında kurulmadığını görüyorum. Denediğim komutlar ve çıktılarını ekran görüntüsü olarak ekliyorum. Bu sorunu nasıl çözebilirim?sudo rm -f /etc/apt/sources.list.d/*
sudo apt update
sudo apt install --reinstall gcc-7 gcc-8
sudo update-alternatives --install /usr/bin/gcc gcc /usr/bin/gcc-7 7
sudo update-alternatives --install /usr/bin/g++ g++ /usr/bin/g++-7 7
sudo update-alternatives --install /usr/bin/gcc gcc /usr/bin/gcc-8 8
sudo update-alternatives --install /usr/bin/g++ g++ /usr/bin/g++-8 8
sudo update-alternatives --config gcc
sudo update-alternatives --config g++
Ubuntu bu işi essahtan bozmuş, Synaptic gibi temel bir paketi bile PPA depolarına atmış, böyle giderse sonu iyi görünmüyor, alttaki komutlarla kurmayı deneyin.
Kod:sudo add-apt-repository universeKod:sudo apt updateKod:sudo apt install synaptic
sudo add-apt-repository universesudo apt updatesudo apt install synapticcat /etc/apt/sources.list çıktısını verin, depo listeniz sorunlu gibi.Bu komutuncat /etc/apt/sources.listçıktısını verin, depo listeniz sorunlu gibi.
# See http://help.ubuntu.com/community/UpgradeNotes for how to upgrade to
# newer versions of the distribution.
deb http://tr.archive.ubuntu.com/ubuntu/ bionic main restricted
deb-src http://tr.archive.ubuntu.com/ubuntu/ bionic main restricted
## Major bug fix updates produced after the final release of the
## distribution.
deb http://tr.archive.ubuntu.com/ubuntu/ bionic-updates main restricted
deb-src http://tr.archive.ubuntu.com/ubuntu/ bionic-updates main restricted
## N.B. software from this repository is ENTIRELY UNSUPPORTED by the Ubuntu
## team. Also, please note that software in universe WILL NOT receive any
## review or updates from the Ubuntu security team.
deb http://tr.archive.ubuntu.com/ubuntu/ bionic universe
# deb-src http://tr.archive.ubuntu.com/ubuntu/ bionic universe
deb http://tr.archive.ubuntu.com/ubuntu/ bionic-updates universe
# deb-src http://tr.archive.ubuntu.com/ubuntu/ bionic-updates universe
## N.B. software from this repository is ENTIRELY UNSUPPORTED by the Ubuntu
## team, and may not be under a free licence. Please satisfy yourself as to
## your rights to use the software. Also, please note that software in
## multiverse WILL NOT receive any review or updates from the Ubuntu
## security team.
deb http://tr.archive.ubuntu.com/ubuntu/ bionic multiverse
# deb-src http://tr.archive.ubuntu.com/ubuntu/ bionic multiverse
deb http://tr.archive.ubuntu.com/ubuntu/ bionic-updates multiverse
# deb-src http://tr.archive.ubuntu.com/ubuntu/ bionic-updates multiverse
## N.B. software from this repository may not have been tested as
## extensively as that contained in the main release, although it includes
## newer versions of some applications which may provide useful features.
## Also, please note that software in backports WILL NOT receive any review
## or updates from the Ubuntu security team.
deb http://tr.archive.ubuntu.com/ubuntu/ bionic-backports main restricted universe multiverse
# deb-src http://tr.archive.ubuntu.com/ubuntu/ bionic-backports main restricted universe multiverse
## Uncomment the following two lines to add software from Canonical's
## 'partner' repository.
## This software is not part of Ubuntu, but is offered by Canonical and the
## respective vendors as a service to Ubuntu users.
# deb http://archive.canonical.com/ubuntu bionic partner
# deb-src http://archive.canonical.com/ubuntu bionic partner
deb http://security.ubuntu.com/ubuntu bionic-security main restricted
# deb-src http://security.ubuntu.com/ubuntu bionic-security main restricted
deb http://security.ubuntu.com/ubuntu bionic-security universe
# deb-src http://security.ubuntu.com/ubuntu bionic-security universe
deb http://security.ubuntu.com/ubuntu bionic-security multiverse
# deb-src http://security.ubuntu.com/ubuntu bionic-security multiversebash: cd: ./*/synaptic_0.83_amd64.deb: Böyle bir dosya ya da dizin yokDepo listeniz temiz, bir sorun yok, o halde buradan paketin kendisini indirip kurun.
Kurmak için alttaki komutu uçbirime girin.
Kod:cd ./*/synaptic_0.83_amd64.deb;sudo dpkg -i synaptic_0.83_amd64.deb;echo 'y' | sudo apt install -f
bash: cd: ./*/synaptic_0.83_amd64.deb: Böyle bir dosya ya da dizin yok
dpkg: hata: 'synaptic_0.83_amd64.deb' arşivine ulaşılamıyor: Böyle bir dosya ya da dizin yok
Paket listeleri okunuyor... Bitti
Bağımlılık ağacı oluşturuluyor
Durum bilgisi okunuyor... Bitti
0 paket yükseltilecek, 0 yeni paket kurulacak, 0 paket kaldırılacak ve 7 paket yükseltilmeyecek.
sudo dpkg -i synaptic_0.83_amd64.deb;echo 'y' | sudo apt install -f
Paketi indirdiğin dizine geçin, aynı dizinde boşluğa sağ tıklayın uçbirimi açın ve alttaki komut ile kurun.
Kod:sudo dpkg -i synaptic_0.83_amd64.deb;echo 'y' | sudo apt install -f
sudo dpkg -i synaptic_0.83_amd64.deb;echo 'y' | sudo apt install -fsudo gedit /etc/apt/sources.list
sudo apt updatesudo rm -f /etc/apt/sources.list.d/*
sudo apt update
sudo apt install --reinstall gcc-7 gcc-8
sudo update-alternatives --install /usr/bin/gcc gcc /usr/bin/gcc-7 7
sudo update-alternatives --install /usr/bin/g++ g++ /usr/bin/g++-7 7
sudo update-alternatives --install /usr/bin/gcc gcc /usr/bin/gcc-8 8
sudo update-alternatives --install /usr/bin/g++ g++ /usr/bin/g++-8 8
sudo update-alternatives --config gcc
sudo update-alternatives --config g++
Depo listen temiz, kurmaya çalıştığın paket sizin kullandığınız sürüme ait. Buna rağmen bu paket kurulmuyorsa sistem depoyu algılamıyor demektir, buna göre sunucuyu değiştirmek gerekiyor.
Alttaki komut ile listeyi açın, yerel tr olanları Alman de yapın.
Örneğin şöyle http://tr.archive ise böyle yapın http://de.archiveKod:sudo gedit /etc/apt/sources.list
Ardından depoyu güncelleyinsudo apt update
Sonra Synaptic veya gcc-8 kurmayı deneyin.
sudo gedit /etc/apt/sources.list sudo apt updatesudo apt install gcc-8gcc --version