LinuxQuestions.org
Review your favorite Linux distribution.
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Newbie
User Name
Password
Linux - Newbie This Linux forum is for members that are new to Linux.
Just starting out and have a question? If it is not in the man pages or the how-to's this is the place!

Notices


Reply
  Search this Thread
Old 01-26-2017, 12:16 AM   #16
hydrurga
LQ Guru
 
Registered: Nov 2008
Location: Pictland
Distribution: Linux Mint 21 MATE
Posts: 8,048
Blog Entries: 5

Rep: Reputation: 2925Reputation: 2925Reputation: 2925Reputation: 2925Reputation: 2925Reputation: 2925Reputation: 2925Reputation: 2925Reputation: 2925Reputation: 2925Reputation: 2925

If you want to install mariadb alongside mysql then you should follow this guide: https://mariadb.com/kb/en/mariadb/in...ongside-mysql/

In the meantime, however, you should remove mariadb. If that is not going to inconvenience you in the short-term (i.e. until you follow the above instructions and re-install it again), please post the output from dpkg -l *maria* so that we know which maria packages are installed and can be removed.
 
Old 01-26-2017, 12:49 AM   #17
aruneshdutta
LQ Newbie
 
Registered: Jan 2017
Posts: 15

Original Poster
Rep: Reputation: Disabled
Error

Quote:
Originally Posted by hydrurga View Post
If you want to install mariadb alongside mysql then you should follow this guide: https://mariadb.com/kb/en/mariadb/in...ongside-mysql/

In the meantime, however, you should remove mariadb. If that is not going to inconvenience you in the short-term (i.e. until you follow the above instructions and re-install it again), please post the output from dpkg -l *maria* so that we know which maria packages are installed and can be removed.

Thanks for the guidance.

The Screenshot of output is here-https://drive.google.com/open?id=0B-7ibsUXIE_oMWF3TGVjTVFTV00
 
Old 01-26-2017, 01:09 AM   #18
hydrurga
LQ Guru
 
Registered: Nov 2008
Location: Pictland
Distribution: Linux Mint 21 MATE
Posts: 8,048
Blog Entries: 5

Rep: Reputation: 2925Reputation: 2925Reputation: 2925Reputation: 2925Reputation: 2925Reputation: 2925Reputation: 2925Reputation: 2925Reputation: 2925Reputation: 2925Reputation: 2925
Thanks. To remove mariadb:

sudo apt-get --purge autoremove mariadb-client-5.5 mariadb-common mariadb-galera-server mariadb-galera-server5.5 libmariadbclient18:amd64

Note that mariadb 5.5 will only be supported until April 2017 so it will be worthwhile you getting a later version anyway. Also, those mariadb packages you have are for Ubuntu 12.04 (Precise), not Ubuntu 14.04 (Trusty). It's important not to mix the distro versions of packages on your computer.
 
Old 01-26-2017, 08:26 AM   #19
aruneshdutta
LQ Newbie
 
Registered: Jan 2017
Posts: 15

Original Poster
Rep: Reputation: Disabled
Quote:
Originally Posted by hydrurga View Post
Thanks. To remove mariadb:

sudo apt-get --purge autoremove mariadb-client-5.5 mariadb-common mariadb-galera-server mariadb-galera-server5.5 libmariadbclient18:amd64

Note that mariadb 5.5 will only be supported until April 2017 so it will be worthwhile you getting a later version anyway. Also, those mariadb packages you have are for Ubuntu 12.04 (Precise), not Ubuntu 14.04 (Trusty). It's important not to mix the distro versions of packages on your computer.

Thanks for the message.For now I installed a fresh version and it's up but wanted to know is the error that is shown is due to to the incompatible version with my os with the upgrade tries to install and flashes the error?
 
Old 01-26-2017, 08:44 AM   #20
hydrurga
LQ Guru
 
Registered: Nov 2008
Location: Pictland
Distribution: Linux Mint 21 MATE
Posts: 8,048
Blog Entries: 5

Rep: Reputation: 2925Reputation: 2925Reputation: 2925Reputation: 2925Reputation: 2925Reputation: 2925Reputation: 2925Reputation: 2925Reputation: 2925Reputation: 2925Reputation: 2925
Quote:
Originally Posted by aruneshdutta View Post
Thanks for the message.For now I installed a fresh version and it's up but wanted to know is the error that is shown is due to to the incompatible version with my os with the upgrade tries to install and flashes the error?
I have to admit that, with all due respect, I can't understand what you're saying here. Could you possibly rephrase it?

I was expecting you, in all honesty, to get back to me after removing the mariadb packages so that we could check that the removal had worked ok and to retest your package dependencies (which is very important), before you launched into following those instructions I gave you earlier for installing mariadb alongside mysql.
 
Old 01-26-2017, 09:12 AM   #21
aruneshdutta
LQ Newbie
 
Registered: Jan 2017
Posts: 15

Original Poster
Rep: Reputation: Disabled
Quote:
Originally Posted by hydrurga View Post
I have to admit that, with all due respect, I can't understand what you're saying here. Could you possibly rephrase it?

I was expecting you, in all honesty, to get back to me after removing the mariadb packages so that we could check that the removal had worked ok and to retest your package dependencies (which is very important), before you launched into following those instructions I gave you earlier for installing mariadb alongside mysql.
Thanks for the message.I meant I installed and my application is currently running fine as when earlier if I had removed the mariadb and reinstalled might be due to some dependency my application failed.I wanted to know the error (dpkg(1)) which was coming while running upgrade was it due to the presence of old or incompatible version which the os was trying to install?
 
Old 01-26-2017, 11:25 AM   #22
hydrurga
LQ Guru
 
Registered: Nov 2008
Location: Pictland
Distribution: Linux Mint 21 MATE
Posts: 8,048
Blog Entries: 5

Rep: Reputation: 2925Reputation: 2925Reputation: 2925Reputation: 2925Reputation: 2925Reputation: 2925Reputation: 2925Reputation: 2925Reputation: 2925Reputation: 2925Reputation: 2925
Quote:
Originally Posted by aruneshdutta View Post
Thanks for the message.I meant I installed and my application is currently running fine as when earlier if I had removed the mariadb and reinstalled might be due to some dependency my application failed.I wanted to know the error (dpkg(1)) which was coming while running upgrade was it due to the presence of old or incompatible version which the os was trying to install?
Ah, good, I'm glad that it's running fine now. It's difficult to tell why exactly you had the problem, but having packages installed that were compiled for an earlier version of Ubuntu might certainly be one of the causes. The fact that you also wanted to install mariadb and mysql side-by-side may have also caused problems, particularly because mariadb provides mysql components as part of its install.

Did you in-place upgrade your system from Ubuntu 12.04 to 14.04 at some point? It's always useful if you do an upgrade like that to check any additional software that you've installed to see if you can get versions that were specifically compiled for the new version of Ubuntu that you're running.

But, more than that perhaps, it's useful to keep on top of updating. You should do a sudo apt-get update followed by a sudo apt-get upgrade (or their apt equivalents apt update and apt upgrade) on a regular basis and, unless you've intentionally held back packages, you should aim to end up with the magic line:

0 to upgrade, 0 to newly install, 0 to remove and 0 not to upgrade.

That way, your repository-tracked software is as up to date as it can be for the distro version in question. It means that your system therefore has less chance of getting itself in a tangle.
 
Old 01-26-2017, 06:42 PM   #23
aruneshdutta
LQ Newbie
 
Registered: Jan 2017
Posts: 15

Original Poster
Rep: Reputation: Disabled
Command in concern

Quote:
Originally Posted by hydrurga View Post
Ah, good, I'm glad that it's running fine now. It's difficult to tell why exactly you had the problem, but having packages installed that were compiled for an earlier version of Ubuntu might certainly be one of the causes. The fact that you also wanted to install mariadb and mysql side-by-side may have also caused problems, particularly because mariadb provides mysql components as part of its install.

Did you in-place upgrade your system from Ubuntu 12.04 to 14.04 at some point? It's always useful if you do an upgrade like that to check any additional software that you've installed to see if you can get versions that were specifically compiled for the new version of Ubuntu that you're running.

But, more than that perhaps, it's useful to keep on top of updating. You should do a sudo apt-get update followed by a sudo apt-get upgrade (or their apt equivalents apt update and apt upgrade) on a regular basis and, unless you've intentionally held back packages, you should aim to end up with the magic line:

0 to upgrade, 0 to newly install, 0 to remove and 0 not to upgrade.

That way, your repository-tracked software is as up to date as it can be for the distro version in question. It means that your system therefore has less chance of getting itself in a tangle.

Thanks for the message.I wanted to know what exactly the difference is in sudo apt-dist-upgrade and sudo apt-upgrade.Also if there is a reales of new higher version will the same command update the version to latest
 
Old 01-27-2017, 01:15 AM   #24
hydrurga
LQ Guru
 
Registered: Nov 2008
Location: Pictland
Distribution: Linux Mint 21 MATE
Posts: 8,048
Blog Entries: 5

Rep: Reputation: 2925Reputation: 2925Reputation: 2925Reputation: 2925Reputation: 2925Reputation: 2925Reputation: 2925Reputation: 2925Reputation: 2925Reputation: 2925Reputation: 2925
Quote:
Originally Posted by aruneshdutta View Post
Thanks for the message.I wanted to know what exactly the difference is in sudo apt-dist-upgrade and sudo apt-upgrade.Also if there is a reales of new higher version will the same command update the version to latest
If you look at man apt-get, it explains the different apt-get commands in more detail.

apt-get upgrade compares your installed software versions against the versions listed in the repositories and upgrades all packages that have newer versions available. However, currently installed packages are never removed, and non-installed packages are never retrieved and installed. In essence, new versions of currently installed packages that cannot be upgraded without changing the install status of another package will not be upgraded. Normally, this works fine for the situation on your computer.

apt-get dist-upgrade is the same as apt-get upgrade, but it handles cases that are not as simple as the above. It manages the changing dependencies of new versions of packages using a conflict resolution system, attempting to upgrade more important packages at the expense of less important ones if necessary. Importantly, running apt-get dist-upgrade may actually remove some packages. So, this may have to be run on your system if the dependency situation is a bit more complicated. However, it should be used carefully.

There are other conflict resolution systems available. The aptitude package, for example, has one. But in the end, they are just trying to make intelligent decisions based on the dependencies that exist, and sometimes it doesn't work out. Hence, in your case, when apt-get dist-upgrade didn't work out (although it did have some success), the fall-back was to manually delete mariadb entirely (because we could see it was a known factor in the problem), get the system back into a stable state by running sudo apt-get upgrade (and sudo apt-get dist-upgrade if required), and then try re-installing mariadb to see if it was still problematic.

Note that, to do things correctly, sudo apt-get update should always be run before either sudo apt-get upgrade or sudo apt-get dist-upgrade, so that you are dealing with the most current information from the repositories as possible.

To summarise:

sudo apt-get update

sudo apt-get upgrade

If problems, decide according to the error message(s) what you will do next, but sudo apt-get dist-upgrade may be worth trying, or perhaps aptitude.

If a problem still exists, manually remove programs that appear to be causing problems and try to get the system into a stable state. Then, once sudo apt-get upgrade produces no problems, try installing programs again, one by one, to see where the real problem lies.
 
Old 01-27-2017, 01:34 AM   #25
aruneshdutta
LQ Newbie
 
Registered: Jan 2017
Posts: 15

Original Poster
Rep: Reputation: Disabled
info

Quote:
Originally Posted by hydrurga View Post
If you look at man apt-get, it explains the different apt-get commands in more detail.

apt-get upgrade compares your installed software versions against the versions listed in the repositories and upgrades all packages that have newer versions available. However, currently installed packages are never removed, and non-installed packages are never retrieved and installed. In essence, new versions of currently installed packages that cannot be upgraded without changing the install status of another package will not be upgraded. Normally, this works fine for the situation on your computer.

apt-get dist-upgrade is the same as apt-get upgrade, but it handles cases that are not as simple as the above. It manages the changing dependencies of new versions of packages using a conflict resolution system, attempting to upgrade more important packages at the expense of less important ones if necessary. Importantly, running apt-get dist-upgrade may actually remove some packages. So, this may have to be run on your system if the dependency situation is a bit more complicated. However, it should be used carefully.

There are other conflict resolution systems available. The aptitude package, for example, has one. But in the end, they are just trying to make intelligent decisions based on the dependencies that exist, and sometimes it doesn't work out. Hence, in your case, when apt-get dist-upgrade didn't work out (although it did have some success), the fall-back was to manually delete mariadb entirely (because we could see it was a known factor in the problem), get the system back into a stable state by running sudo apt-get upgrade (and sudo apt-get dist-upgrade if required), and then try re-installing mariadb to see if it was still problematic.

Note that, to do things correctly, sudo apt-get update should always be run before either sudo apt-get upgrade or sudo apt-get dist-upgrade, so that you are dealing with the most current information from the repositories as possible.

To summarise:

sudo apt-get update

sudo apt-get upgrade

If problems, decide according to the error message(s) what you will do next, but sudo apt-get dist-upgrade may be worth trying, or perhaps aptitude.

If a problem still exists, manually remove programs that appear to be causing problems and try to get the system into a stable state. Then, once sudo apt-get upgrade produces no problems, try installing programs again, one by one, to see where the real problem lies.

Thanks a lot for the useful information
 
  


Reply


Thread Tools Search this Thread
Search this Thread:

Advanced Search

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
[SOLVED] When installing updates I'm shown a warning. actinide Linux - Newbie 19 02-23-2016 06:08 PM
some files went missing after performing packages updates said76 Linux - Server 0 08-02-2012 01:42 AM
fc9 yum errors with rpmfusion(Error performing checksum) knockout_artist Linux - Newbie 1 05-12-2009 04:02 AM
Very limited information is shown when updates are available ptemmerman Linux - Newbie 14 11-28-2008 01:37 AM
RS232 serial port errors when performing mutliple writes riffy Linux - Newbie 0 07-11-2006 12:12 PM

LinuxQuestions.org > Forums > Linux Forums > Linux - Newbie

All times are GMT -5. The time now is 07:05 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