Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Hatalı yükleme dosyalarını otomatik düzeltme #44

Open
mahmutelmas06 opened this issue Mar 4, 2019 · 3 comments
Open

Hatalı yükleme dosyalarını otomatik düzeltme #44

mahmutelmas06 opened this issue Mar 4, 2019 · 3 comments

Comments

@mahmutelmas06
Copy link

Bazen bir uygulama yüklerken yada yükleme sonrası dosyalar hata oluşturabiliyor. Birçok linux sürümünde bu durum mevcut. Dolayısıyla bu hata mağazadan uygulama yükleyememe sorununa neden olabilir.
Örnek hata mesajlarından biri "Could not apply changes! Fix broken packages first." olabilir.

Dolayısıylla böyle bir hata çıktısı alındığında mağaza otomatik olarak aşağıdaki komutları çalıştırıp yeniden yüklemeyi deneyebilir.

Method 1: Using apt-get

More often than not, a broken package that broke after it was installed can be relatively easy to fix, thanks to a built-in tool inside of apt-get. Performing the following commands will try and fix any broken packages currently installed on your system:

sudo apt-get update --fix-missing

sudo apt-get install -f

(the -f option is short for fix-broken.)

Try and see if the first command fixes your problem before executing the second command. Give it a few moments to try and fix any errors that it may find. If it works, then try and use the package that was broken – it will likely be fixed now.  In case it still isn’t fixed, proceed to the next solution below.
Method 2: Using dpkg and apt-get

This solution will help out if a software package broke while being installed. You can try using the previous method before continuing, as it may help. First, we clean apt-get and try using dpkg to configure any packages that need it:

sudo dpkg --configure -a

sudo apt-get clean

sudo apt-get update

After this, see if the package has been fixed. If it hasn’t, you may need to delete the lock files. Lock files are used to keep resources available for certain programs – it helps prevent other programs from accessing files at the same time. This can be done by simply deleting the lockfile list:

sudo rm /var/lib/apt/lists/lock
@mamoo81
Copy link

mamoo81 commented Mar 4, 2019

Siz Pardus Mağaza uygulamasında böyle bir sorunla karşılaştınız mı? Ben böyle bir detayı atlayacaklarını düşünmüyorum.

@mahmutelmas06
Copy link
Author

Henüz karşılaşmadım ama karşılaşmayacağımız anlamına gelmiyor sonuçta debian tabanlı bir sistemdeyiz. Mağaza mantığı genelde şudur: Uygulama yükle/kaldır... sorun oluştuysa git çöz gel yüklemeyi tekrar dene. Benim önerim git çöz gel değil sorun oluştuysa mağaza çözüp yüklemeye devam etsin önerisi.

@mahmutelmas06
Copy link
Author

Hatta bu öneriyi bir adım öteye taşıyarak şunu da ekliyorum, yeterli alan yok hatası için önbelleği ve gereksiz geçici dosyaları otomatik temizle yüklemeye devam et. Ancak yine yeterli alan yoksa kullanıcıyı bilgilendir birşeyler silip gelsin.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants