Linux - SoftwareThis forum is for Software issues.
Having a problem installing a new program? Want to know which application is best for the job? Post your question in this forum.
Notices
Welcome to LinuxQuestions.org, a friendly and active Linux Community.
You are currently viewing LQ as a guest. By joining our community you will have the ability to post topics, receive our newsletter, use the advanced search, subscribe to threads and access many other special features. Registration is quick, simple and absolutely free. Join our community today!
Note that registered members see fewer ads, and ContentLink is completely disabled once you log in.
If you have any problems with the registration process or your account login, please contact us. If you need to reset your password, click here.
Having a problem logging in? Please visit this page to clear all LQ-related cookies.
Get a virtual cloud desktop with the Linux distro that you want in less than five minutes with Shells! With over 10 pre-installed distros to choose from, the worry-free installation life is here! Whether you are a digital nomad or just looking for flexibility, Shells can put your Linux machine on the device that you want to use.
Exclusive for LQ members, get up to 45% off per month. Click here for more info.
Distribution: Mint 20.1 on workstation, Debian 11 on servers
Posts: 1,336
Rep:
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
Starting MySQL database server: mysqld...failed.
Please take a look at the syslog.
/usr/bin/mysqladmin: connect to server at 'localhost' failed
error: 'Can't connect to local MySQL server through socket '/var/run/mysqld/mysqld.sock' (2)'
Check that mysqld is running and that the socket: '/var/run/mysqld/mysqld.sock' exists!
borg:~#
To make things worse, webmin never upgraded either :/ I still get an error that I'm using an old version if I try to download modules.
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.
Last edited by Red Squirrel; 02-04-2006 at 11:49 PM.
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.
Distribution: Debian Sid, SourceMage 0.9.5, & To be Continued on a TP
Posts: 800
Rep:
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.
Distribution: Mint 20.1 on workstation, Debian 11 on servers
Posts: 1,336
Original Poster
Rep:
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.
LinuxQuestions.org is looking for people interested in writing
Editorials, Articles, Reviews, and more. If you'd like to contribute
content, let us know.