apt-get update screwed me over
I wanted to upgrade webmin so I typed "apt-get upgrade webmin but it went haywire and upgraded everything, and broke lot of stuff, now mysql wont start anymore. I get this error:
Code:
borg:~# /etc/init.d/mysql start Managed to fix it, I decided I should double check the syslog to see if there may be something I missed and sure enough I did, I had to remove old_passwords=0 somewhere so I did a grep through my whole system to find it. Still unsure why it went haywire when I tried to upgrade webmin though. |
Check the man page -- upgrade did just what it says it will do, upgrade every package on the system for which a newer version exists. I usually use apt-get install <package> to upgrade just a single package -- despite the install argument it actually will upgrade (or at least it used to, haven't done it in awhile). There's probably a better way but I'm not a Debian junky and thus not that proficient with apt.
|
"apt-get upgrade" will upgrade every package just as btmiller said. If you pass it the name of only a single thing you want upgraded it will ignore that, as the upgrade option does NOT accept a package name. But before it actually does the upgrade, it tells you what it is going to upgrade and prompts you with a "Do you want to continue? (Y/n)" prompt. Did you say "yes" to this prompt, or are you saying it upgraded blindly without your consent?
I have also added the package "apt-get-listbugs" or something like that (I'm not on my Debian box at the moment to verify the exact package name). This is nice because it lists bug reports for things you are going to install and gives you an additional chance to back out of the upgrade/install. |
But before it actually does the upgrade, it tells you what it is going to upgrade and prompts you with a "Do you want to continue? (Y/n)" prompt. Did you say "yes" to this prompt, or are you saying it upgraded blindly without your consent?
Also it will let you see what it will 'Remove'. Always pay close attention when you do apt-get upgrade to things it may want to remove. Sometimes it will replace older ver with newer ver when it show what it will remove. |
Hmmm I did get a couple prompts but it was after it upgraded a bunch of other packages, so figured since it started, it's probably safer to just say yes then to have stuff half upgraded.
apt-get install wont work since it just tells me the package already exists and exits. |
I think the command to upgrade one package is:
Code:
apt-get --reinstall install <package> Quote:
|
All times are GMT -5. The time now is 04:50 PM. |