Quantcast
Channel: Debian User Forums
Viewing all articles
Browse latest Browse all 2681

System and Network configuration • Re: Automatically fix broken apt system

$
0
0
Running any apt command with -y is a bad idea, as is automating autoremove ...
All right, after some reading, I understand that autoremove might in some cases do harm, and it is not needed to fix apt, so let's be prudent and remove it.

Could you elaborate on why -y would be dangerous in this cases:
  • apt-get -y clean # not sure if -y even makes sense here, does "clean" ever asks for anything?
  • apt-get -y update # same here, does "update" ever asks for anything?
  • apt-get install -f -y # this one is more sensible, it fixes broken packages : what kind of choices would it ask for?
Then, "dpkg --configure -a --force-confdef --force-confnew" would force new and default config files.

Let's take into account that the use case is: a desktop Debian install, no fancy things done previously, the user would just have installed extra applications and one day, run into an apt breakage because of an update or installation being abruptly interrupted.

Statistics: Posted by ricflomag — 2025-01-09 22:32



Viewing all articles
Browse latest Browse all 2681

Latest Images

Trending Articles



Latest Images