Yanlışlıkla sildiğim lock dosyası

Xaliqq

Yeni üye
25 May 2024
3
0
Merhaba ben yeni başladım ve istemeden apt'nin gerektiği

/var/lib/dpkg/lock
/var/lib/dpkg/lock-frontend


bu iki dosyayı yanlışlıkla sildim. Şu an
apt installkomutunu çalıştıramıyorum çalıştırınca:

└─# sudo apt install
Reading package lists... Done
Building dependency tree... Done
Reading state information... Done
You might want to run 'apt --fix-broken install' to correct these.
The following packages have unmet dependencies:

libc-bin : Depends: libc6 (< 2.38) but 2.38-10 is installed
Recommends: manpages but it is not installed
E: Unmet dependencies. Try 'apt --fix-broken install' with no packages (or specify a solution).


Bu hatayı veriyor ardından apt --fix-broken installBu komutu yazınca

Reading package lists... Done
Building dependency tree... Done
Reading state information... Done
Correcting dependencies... Done
The following additional packages will be installed:
libc-bin
Recommended packages:
manpages
The following packages will be upgraded:
libc-bin
1 upgraded, 0 newly installed, 0 to remove and 160 not upgraded.
1 not fully installed or removed.
Need to get 0 B/611 kB of archives.
After this operation, 20.5 kB of additional disk space will be used.
debconf: DbDriver "config": /var/cache/debconf/config.dat is locked by another process: Resource temporarily unavailable
Setting up libc6:amd64 (2.38-10) ...
debconf: DbDriver "config": /var/cache/debconf/config.dat is locked by another process: Resource temporarily unavailable
dpkg: error processing package libc6:amd64 (--configure):
installed libc6:amd64 package post-installation script subprocess returned error exit status 1
Errors were encountered while processing:
libc6:amd64
E: Sub-process /usr/bin/dpkg returned an error code (1)


Bu hatayı veriyor yardımcı olursanız sevinirim

Şimdiden teşekkürler
 
Son düzenleme:
Merhaba ben yeni başladım ve istemeden apt'nin gerektiği

/var/lib/dpkg/lock
/var/lib/dpkg/lock-frontend


bu iki dosyayı yanlışlıkla sildim. Şu an
apt installkomutunu çalıştıramıyorum çalıştırınca:

└─# sudo apt install
Reading package lists... Done
Building dependency tree... Done
Reading state information... Done
You might want to run 'apt --fix-broken install' to correct these.
The following packages have unmet dependencies:

libc-bin : Depends: libc6 (< 2.38) but 2.38-10 is installed
Recommends: manpages but it is not installed
E: Unmet dependencies. Try 'apt --fix-broken install' with no packages (or specify a solution).


Bu hatayı veriyor ardından apt --fix-broken installBu komutu yazınca

Reading package lists... Done
Building dependency tree... Done
Reading state information... Done
Correcting dependencies... Done
The following additional packages will be installed:
libc-bin
Recommended packages:
manpages
The following packages will be upgraded:
libc-bin
1 upgraded, 0 newly installed, 0 to remove and 160 not upgraded.
1 not fully installed or removed.
Need to get 0 B/611 kB of archives.
After this operation, 20.5 kB of additional disk space will be used.
debconf: DbDriver "config": /var/cache/debconf/config.dat is locked by another process: Resource temporarily unavailable
Setting up libc6:amd64 (2.38-10) ...
debconf: DbDriver "config": /var/cache/debconf/config.dat is locked by another process: Resource temporarily unavailable
dpkg: error processing package libc6:amd64 (--configure):

installed libc6:amd64 package post-installation script subprocess returned error exit status 1
Errors were encountered while processing:

libc6:amd64
E: Sub-process /usr/bin/dpkg returned an error code (1)


Bu hatayı veriyor yardımcı olursanız sevinirim

Şimdiden teşekkürler
Dosyaları yeniden oluşturmayı dene:
sudo touch /var/lib/dpkg/lock
sudo touch /var/lib/dpkg/lock-frontend


olmazsa dpkg veritabanını yeniden yapılandır:
sudo dpkg --configure -a

Son olarak kırık bağlantıları da düzeltmek için:
sudo apt --fix-broken install

Özellikle, libc6 paketinin konfigürasyon hatası alıyorsunuz gibi görünüyor, bu durumda bu paketi manuel olarak yeniden yüklemeyi deneyebilirsiniz:

sudo apt-get install --reinstall libc6
 

Xaliqq

Yeni üye
25 May 2024
3
0
Dosyaları yeniden oluşturmayı dene:
sudo touch /var/lib/dpkg/lock
sudo touch /var/lib/dpkg/lock-frontend


olmazsa dpkg veritabanını yeniden yapılandır:
sudo dpkg --configure -a

Son olarak kırık bağlantıları da düzeltmek için:
sudo apt --fix-broken install

Özellikle, libc6 paketinin konfigürasyon hatası alıyorsunuz gibi görünüyor, bu durumda bu paketi manuel olarak yeniden yüklemeyi deneyebilirsiniz:

sudo apt-get install --reinstall libc6
Malesef denediğim hiçbir yol olmadı dosyaları yeniden oluşturdum ama birşey değişmedi

dpkg veritabanını yeniden yapılandırdım ondada sonuç

Setting up libc6:amd64 (2.38-10) ...
[B]debconf: DbDriver "config": /var/cache/debconf/config.dat is locked by another process: Resource temporarily unavailable[/B]
[B]dpkg: error processing package libc6:amd64 (--configure):[/B]
[B] installed libc6:amd64 package post-installation script subprocess returned error exit status 1[/B]
[B]dpkg: dependency problems prevent processing triggers for libc-bin:[/B]
[B] libc-bin depends on libc6 (>> 2.37); however:[/B]
[B] Package libc6:amd64 is not configured yet.[/B]
[B] libc-bin depends on libc6 (<< 2.38); however:[/B]
[B] Version of libc6:amd64 on system is 2.38-10.[/B]
[B][/B]
[B]dpkg: error processing package libc-bin (--configure):[/B]
[B] dependency problems - leaving triggers unprocessed[/B]
[B]Errors were encountered while processing:[/B]
[B] libc6:amd64[/B]
[B] libc-bin[/B]

kırık bağlantılarıda düzeltmeye çalışdığımdada
Reading package lists... Done
Building dependency tree... Done
Reading state information... Done
Correcting dependencies... Done
The following additional packages will be installed:
libc-bin
Recommended packages:
manpages
E: Could not get lock /var/cache/apt/archives/lock. It is held by process 136 (apt)
N: Be aware that removing the lock file is not a solution and may break your system.
E: Unable to lock directory /var/cache/apt/archives/

bu hatayla karşılaşıyorummmm en son olarak libc6 paketi manuel olarak yeniden yüklemeyi denedim ondada
Reading package lists... Done
Building dependency tree... Done
Reading state information... Done
You might want to run 'apt --fix-broken install' to correct these.
The following packages have unmet dependencies:
libc-bin : Depends: libc6 (< 2.38) but 2.38-10 is to be installed
Recommends: manpages but it is not going to be installed
E: Unmet dependencies. Try 'apt --fix-broken install' with no packages (or specify a solution).

Bu hatayı alıyorum bu hataylada sudo apt upgrade yazıdıkdan sora

Checking for services that may need to be restarted...
Checking init scripts...
Nothing to restart.

yazdığı için ctrl + c yaptım ve stopladım işlemi başka işlem yapmak için lock dosyalarını bekliyodu bende sildim sora bu oldıu
 
Malesef denediğim hiçbir yol olmadı dosyaları yeniden oluşturdum ama birşey değişmedi

dpkg veritabanını yeniden yapılandırdım ondada sonuç

Setting up libc6:amd64 (2.38-10) ...
[B]debconf: DbDriver "config": /var/cache/debconf/config.dat is locked by another process: Resource temporarily unavailable[/B]
[B]dpkg: error processing package libc6:amd64 (--configure):[/B]
[B] installed libc6:amd64 package post-installation script subprocess returned error exit status 1[/B]
[B]dpkg: dependency problems prevent processing triggers for libc-bin:[/B]
[B] libc-bin depends on libc6 (>> 2.37); however:[/B]
[B] Package libc6:amd64 is not configured yet.[/B]
[B] libc-bin depends on libc6 (<< 2.38); however:[/B]
[B] Version of libc6:amd64 on system is 2.38-10.[/B]
[B][/B]
[B]dpkg: error processing package libc-bin (--configure):[/B]
[B] dependency problems - leaving triggers unprocessed[/B]
[B]Errors were encountered while processing:[/B]
[B] libc6:amd64[/B]
[B] libc-bin[/B]

kırık bağlantılarıda düzeltmeye çalışdığımdada
Reading package lists... Done
Building dependency tree... Done
Reading state information... Done
Correcting dependencies... Done
The following additional packages will be installed:
libc-bin
Recommended packages:
manpages
E: Could not get lock /var/cache/apt/archives/lock. It is held by process 136 (apt)
N: Be aware that removing the lock file is not a solution and may break your system.
E: Unable to lock directory /var/cache/apt/archives/

bu hatayla karşılaşıyorummmm en son olarak libc6 paketi manuel olarak yeniden yüklemeyi denedim ondada
Reading package lists... Done
Building dependency tree... Done
Reading state information... Done
You might want to run 'apt --fix-broken install' to correct these.
The following packages have unmet dependencies:
libc-bin : Depends: libc6 (< 2.38) but 2.38-10 is to be installed
Recommends: manpages but it is not going to be installed
E: Unmet dependencies. Try 'apt --fix-broken install' with no packages (or specify a solution).

Bu hatayı alıyorum bu hataylada sudo apt upgrade yazıdıkdan sora

Checking for services that may need to be restarted...
Checking init scripts...
Nothing to restart.

yazdığı için ctrl + c yaptım ve stopladım işlemi başka işlem yapmak için lock dosyalarını bekliyodu bende sildim sora bu oldıu
Daha çok araştırıp geri dönüşü dm'den sağlarım hocam. İyi akşamlar.
 
Üst

Turkhackteam.org internet sitesi 5651 sayılı kanun’un 2. maddesinin 1. fıkrasının m) bendi ile aynı kanunun 5. maddesi kapsamında "Yer Sağlayıcı" konumundadır. İçerikler ön onay olmaksızın tamamen kullanıcılar tarafından oluşturulmaktadır. Turkhackteam.org; Yer sağlayıcı olarak, kullanıcılar tarafından oluşturulan içeriği ya da hukuka aykırı paylaşımı kontrol etmekle ya da araştırmakla yükümlü değildir. Türkhackteam saldırı timleri Türk sitelerine hiçbir zararlı faaliyette bulunmaz. Türkhackteam üyelerinin yaptığı bireysel hack faaliyetlerinden Türkhackteam sorumlu değildir. Sitelerinize Türkhackteam ismi kullanılarak hack faaliyetinde bulunulursa, site-sunucu erişim loglarından bu faaliyeti gerçekleştiren ip adresini tespit edip diğer kanıtlarla birlikte savcılığa suç duyurusunda bulununuz.