sudo apt install -f
E: The package unattended-upgrades needs to be reinstalled, but I can't find an archive for it.
sudo apt autoremove
E: The package unattended-upgrades needs to be reinstalled, but I can't find an archive for it.
sudo dpkg -C
The following packages are in a mess due to serious problems during
installation. They must be reinstalled for them (and any packages
that depend on them) to function properly:
unattended-upgrades automatic installation of security upgrades
sudo apt-get clean
W: Problem unlinking the file apt-fast - Clean (21: Is a directory)
sudo dpkg --configure -a
dpkg: error processing package unattended-upgrades (--configure):
package is in a very bad inconsistent state; you should
reinstall it before attempting configuration
Errors were encountered while processing:
unattended-upgrades
sudo apt-get -f install
E: Could not get lock /var/lib/dpkg/lock - open (11: Resource temporarily unavailable)
E: Unable to lock the administration directory (/var/lib/dpkg/), is another process using it?
sudo rm /var/lib/apt/lists/lock
sudo rm /var/cache/apt/archives/lock
sudo apt update
sudo apt install --reinstall unattended-upgrades
اگه مشکلتون حل نشد این دستورات رو وارد کنین :sudo apt purge unattended-upgrades
sudo apt autoremove
sudo apt autoclean
sudo apt clean
sudo apt install unattended-upgrades
در نهایت این دستورات رو محض اطمینان وارد کنین :sudo apt -f install
sudo dpkg --configure -a
با سلام
دستورات زیر رو وارد کنین ان شاء الله مشکلتون حل می شه :کد: [انتخاب]sudo apt update
اگه مشکلتون حل نشد این دستورات رو وارد کنین :
sudo apt install --reinstall unattended-upgradesکد: [انتخاب]sudo apt purge unattended-upgrades
در نهایت این دستورات رو محض اطمینان وارد کنین :
sudo apt autoremove
sudo apt autoclean
sudo apt clean
sudo apt install unattended-upgradesکد: [انتخاب]sudo apt -f install
sudo dpkg --configure -a
sudo apt install --reinstall unattended-upgrades
Reading package lists... Done
Building dependency tree
Reading state information... Done
E: The package unattended-upgrades needs to be reinstalled, but I can't find an archive for it.
sudo apt purge unattended-upgrades
Reading package lists... Done
Building dependency tree
Reading state information... Done
E: The package unattended-upgrades needs to be reinstalled, but I can't find an archive for it.
sudo apt install unattended-upgrades
Reading package lists... Done
Building dependency tree
Reading state information... Done
E: The package unattended-upgrades needs to be reinstalled, but I can't find an archive for it.
sudo dpkg --remove --force-all unattended-upgrades
حالا community-maintained تون اگه فعال نیست فعالش کنین شاید به خاطر اونه که میگه can't find an archive for it...sudo apt update
sudo apt install unattended-upgrades
sudo apt update
sudo apt install unattended-upgrades
ببینین با دستور پایین می تونین پکیج رو پاک کنین یا نه ؟کد: [انتخاب]sudo dpkg --remove --force-all unattended-upgrades
حالا community-maintained تون اگه فعال نیست فعالش کنین شاید به خاطر اونه که میگه can't find an archive for it...
برای این کار مسیر زیر رو دنبال کنین :
System settings > Software & Updates حالا از تب اول گزینه ی دوم (community-maintained ...) رو فعال کنین بعدش پسورد روتتون رو وارد کنین حالا صبر کنین تا مخازن تکمیل و بروزرسانی بشه بعد با دستور پایین نصب کنین :
حالا با دستور پایین دوباره نصبش کنین :کد: [انتخاب]sudo apt update
sudo apt install unattended-upgrades
اگه جواب نداد multiverse رو هم از همون مسیر Software & Updates فعال کنین (دقت کنین که از 4 تا تیک اول تیک های اول دوم و چهارم فعال باشن / تیک سوم ربطی به مشکل شما نداره) بعد دوباره دستورات پایین رو وارد کنین :کد: [انتخاب]sudo apt update
sudo apt install unattended-upgrades