LinuxQuestions.org
Visit Jeremy's Blog.
Home Forums Tutorials Articles Register
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Software
User Name
Password
Linux - Software This 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


Reply
  Search this Thread
Old 02-04-2006, 11:30 PM   #1
Red Squirrel
Senior Member
 
Registered: Dec 2003
Distribution: Mint 20.1 on workstation, Debian 11 on servers
Posts: 1,336

Rep: Reputation: 54
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.
 
Old 02-05-2006, 12:07 AM   #2
btmiller
Senior Member
 
Registered: May 2004
Location: In the DC 'burbs
Distribution: Arch, Scientific Linux, Debian, Ubuntu
Posts: 4,290

Rep: Reputation: 378Reputation: 378Reputation: 378Reputation: 378
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.
 
Old 02-05-2006, 01:24 AM   #3
haertig
Senior Member
 
Registered: Nov 2004
Distribution: Debian, Ubuntu, LinuxMint, Slackware, SysrescueCD, Raspbian, Arch
Posts: 2,331

Rep: Reputation: 357Reputation: 357Reputation: 357Reputation: 357
"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.
 
Old 02-05-2006, 01:45 AM   #4
BittaBrotha
Member
 
Registered: Jan 2002
Location: Third Stone from the Sun
Distribution: Debian Sid, SourceMage 0.9.5, & To be Continued on a TP
Posts: 800

Rep: Reputation: 31
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.
 
Old 02-05-2006, 11:44 AM   #5
Red Squirrel
Senior Member
 
Registered: Dec 2003
Distribution: Mint 20.1 on workstation, Debian 11 on servers
Posts: 1,336

Original Poster
Rep: Reputation: 54
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.
 
Old 02-05-2006, 11:58 AM   #6
berbae
Member
 
Registered: Jul 2005
Location: France
Distribution: Arch Linux
Posts: 540

Rep: Reputation: Disabled
I think the command to upgrade one package is:
Code:
apt-get --reinstall install <package>
Read man apt-get:
Quote:
--reinstall
Re-Install packages that are already installed and at
the newest version. Configuration Item: APT::Get::Re*
Install.
 
  


Reply



Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is Off
HTML code is Off



Similar Threads
Thread Thread Starter Forum Replies Last Post
Update screwed system up steve_ervin21 SUSE / openSUSE 2 07-27-2005 06:00 PM
apt-get update errors since Debian released ( bad /etc/apt/sources.list ?) forgox Debian 10 06-13-2005 12:28 PM
Yast screwed up my online update! craigl Linux - Software 3 10-10-2004 10:42 AM
Does 'apt-get update' update the database used by 'apt-cache'? davidas Debian 5 04-20-2004 01:27 AM
I screwed up apt :( r.stiltskin Linux - Software 3 01-05-2004 06:55 PM

LinuxQuestions.org > Forums > Linux Forums > Linux - Software

All times are GMT -5. The time now is 06:44 PM.

Main Menu
Advertisement
My LQ
Write for LQ
LinuxQuestions.org is looking for people interested in writing Editorials, Articles, Reviews, and more. If you'd like to contribute content, let us know.
Main Menu
Syndicate
RSS1  Latest Threads
RSS1  LQ News
Twitter: @linuxquestions
Open Source Consulting | Domain Registration