hem putty hem de winSCP de ssh bağlantısı çabuk kopuyor sshd configde 4200 alive süresi ama 5 dakika geçmeden bağlantı kopuyor, bu sebep dışında bir sebep olabilir mi?
Ubuntu sunucuda uygulama yükleme hatasını [ÇÖZÜLDÜ]
-
Ubuntu işletim sistemine sahip bir sunucuda apt ile uygulama yüklerken ‘E: Could not get lock /var/lib/dpkg/lock’ şeklinde bir hata alıyorsanız çözümü burada.
Ubuntu yüklü bir sunucuda apt veya apt-get komutu ile bir uygulama yüklerken aşağıdaki gibi bir hata ile karşılaştım.
E: Could not get lock /var/lib/dpkg/lock-frontend - open (11: Resource temporari ly unavailable) E: Unable to acquire the dpkg frontend lock (/var/lib/dpkg/lock-frontend), is an other process using it? root@localhost:~# sudo apt install nginx E: Could not get lock /var/lib/dpkg/lock-frontend - open (11: Resource temporarily unavailable) E: Unable to acquire the dpkg frontend lock (/var/lib/dpkg/lock-frontend), is another process using it?
Bu sorunun nedeni kilit dosyaları. Bu yüzden sistemden bu kilit dosyalarını sileceğiz. Bunu sorunu çözmek için aşağıdaki komutları teker teker çalıştırın.
sudo lsof /var/lib/dpkg/lock sudo lsof /var/lib/apt/lists/lock sudo lsof /var/cache/apt/archives/lock
Bu işlemin ardından paketleri yeniden yapılandırın.
sudo dpkg --configure -a
Bundan sonra “Unable to acquire the dpkg frontend lock” şeklinde bir uyarı görürseniz ise aşağıkdaki her bir komutu ayrı ayrı çalıştırın.
sudo kill -9 PID sudo rm /var/lib/dpkg/lock-frontend sudo apt update
Uygulama kurmaya çalışırken bu hatayı: "dpkg: error: dpkg frontend is locked by another process” alırsanız ise;
sudo lsof /var/lib/dpkg/lock-frontend sudo kill -9 PID sudo rm /var/lib/dpkg/lock-frontend sudo dpkg --configure -a
komutlarını benzer şekilde tek tek çalıştırın ve sunucuyu yeniden başlatmak için reboot komutunu kullanın.
Sorun çözülmüş olmalı!