Skip to content

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

@mahmutelmas06

Description

@mahmutelmas06

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

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions