I am trying to install msyql-workbench in my ubuntu 12.10 using the following command
sudo apt-get install mysql-workbench
but it shows the following error.
Reading package lists... Done
Building dependency tree
Reading state information... Done
Some packages could not be installed. This may mean that you have
requested an impossible situation or if you are using the unstable
distribution that some required packages have not yet been created
or been moved out of Incoming.
The following information may help to resolve the situation:
The following packages have unmet dependencies:
mysql-workbench : Depends: python-all but it is not going to be installed
Recommends: mysql-utilities but it is not installable
I have tried
sudo apt-get install python-all
but it shows the error,
Reading package lists... Done
Building dependency tree
Reading state information... Done
Some packages could not be installed. This may mean that you have
requested an impossible situation or if you are using the unstable
distribution that some required packages have not yet been created
or been moved out of Incoming.
The following information may help to resolve the situation:
The following packages have unmet dependencies:
python-all : Depends: python (= 2.7.3-0ubuntu2.2) but 2.7.3-0ubuntu7 is to be installed
E: Unable to correct problems, you have held broken packages.
The following command also not working
sudo apt-get -f install mysql-workbench
sudo add-apt-repository ppa:olivier-berten/misc
sudo apt-get update
sudo apt-get install mysql-workbench
this worked for me ref link
go to this link, where all download inks are available , then search with ctrl+f for ubu1204 u will get different distributions , choose bit 32/64, then run the file using software centre, It works.
Try sudo apt-get update and then try to install
Try making a sudo apt-get install python-all and sudo apt-get install mysql-utilities. And then try again.
Run this command instead:
sudo apt-get -f install
After that MySQL Workbench should be installed fine.
Make sure you selected Ubuntu Linux from the drop down. Here
I am not sure this is good solution to resolve this error but i have resolved in ubuntu 16.04
You have to just copy and paste my resources.list file into your location /etc/apt/sources.list
My resources.list file
==========================================================================
# deb cdrom:[Ubuntu 14.04.3 LTS _Trusty Tahr_ - Beta amd64 (20150805)]/ trusty main restricted
# See http://help.ubuntu.com/community/UpgradeNotes for how to upgrade to
# newer versions of the distribution.
deb http://in.archive.ubuntu.com/ubuntu/ xenial main restricted
deb-src http://in.archive.ubuntu.com/ubuntu/ xenial main restricted
## Major bug fix updates produced after the final release of the
## distribution.
deb http://in.archive.ubuntu.com/ubuntu/ xenial-updates main restricted
deb-src http://in.archive.ubuntu.com/ubuntu/ xenial-updates main restricted
## N.B. software from this repository is ENTIRELY UNSUPPORTED by the Ubuntu
## team. Also, please note that software in universe WILL NOT receive any
## review or updates from the Ubuntu security team.
deb http://in.archive.ubuntu.com/ubuntu/ xenial universe
deb-src http://in.archive.ubuntu.com/ubuntu/ xenial universe
deb http://in.archive.ubuntu.com/ubuntu/ xenial-updates universe
deb-src http://in.archive.ubuntu.com/ubuntu/ xenial-updates universe
## N.B. software from this repository is ENTIRELY UNSUPPORTED by the Ubuntu
## team, and may not be under a free licence. Please satisfy yourself as to
## your rights to use the software. Also, please note that software in
## multiverse WILL NOT receive any review or updates from the Ubuntu
## security team.
deb http://in.archive.ubuntu.com/ubuntu/ xenial multiverse
deb-src http://in.archive.ubuntu.com/ubuntu/ xenial multiverse
deb http://in.archive.ubuntu.com/ubuntu/ xenial-updates multiverse
deb-src http://in.archive.ubuntu.com/ubuntu/ xenial-updates multiverse
## N.B. software from this repository may not have been tested as
## extensively as that contained in the main release, although it includes
## newer versions of some applications which may provide useful features.
## Also, please note that software in backports WILL NOT receive any review
## or updates from the Ubuntu security team.
deb http://in.archive.ubuntu.com/ubuntu/ xenial-backports main restricted universe multiverse
deb-src http://in.archive.ubuntu.com/ubuntu/ xenial-backports main restricted universe multiverse
deb http://security.ubuntu.com/ubuntu xenial-security main restricted
deb-src http://security.ubuntu.com/ubuntu xenial-security main restricted
deb http://security.ubuntu.com/ubuntu xenial-security universe
deb-src http://security.ubuntu.com/ubuntu xenial-security universe
deb http://security.ubuntu.com/ubuntu xenial-security multiverse
deb-src http://security.ubuntu.com/ubuntu xenial-security multiverse
## Uncomment the following two lines to add software from Canonical's
## 'partner' repository.
## This software is not part of Ubuntu, but is offered by Canonical and the
## respective vendors as a service to Ubuntu users.
# deb http://archive.canonical.com/ubuntu trusty partner
# deb-src http://archive.canonical.com/ubuntu trusty partner
deb http://archive.canonical.com/ xenial partner
# deb-src http://archive.canonical.com/ trusty partner
==========================================================================
and after run below commands
sudo apt-get update
sudo apt-get install mysql-workbench
It will work.....
Related
When I try to install mysql verison 8 on ubuntu server (16.04) according to mysql apt repository documentations, after config of my need in dpkg command a file named mysql.list is made in this directory:
/etc/apt/sources.list.d which prevents apt to update and i get this error running command
sudo apt-get update
:
Get:1 http://security.ubuntu.com/ubuntu xenial-security InRelease [109 kB]
Hit:3 http://compute.ipeserver.com.clouds.archive.ubuntu.com/ubuntu xenial InRelease
Get:4 http://compute.ipeserver.com.clouds.archive.ubuntu.com/ubuntu xenial-updates InRelease [109 kB]
Get:5 http://compute.ipeserver.com.clouds.archive.ubuntu.com/ubuntu xenial-backports InRelease [107 kB]
Get:2 http://repo.mysql.com/apt/ubuntu xenial InRelease [5,309 B]
Err:2 http://repo.mysql.com/apt/ubuntu xenial InRelease
Clearsigned file isn't valid, got 'NOSPLIT' (does the network require authentication?)
Fetched 331 kB in 2s (114 kB/s)
Reading package lists... Done
E: Failed to fetch http://repo.mysql.com/apt/ubuntu/dists/xenial/InRelease Clearsigned file isn't valid, got 'NOSPLIT' (does the network require authentication?)
E: Some index files failed to download. They have been ignored, or old ones used instead.
when i remove mysql.list file. the issue is solved. So I can't install mysql verison 8 on my server.
I need LAMP on my elementaryos. I already have php, apache, and phpmyadmin.
Mysql has proven to be a problem to me. I've successfully installed mysql 5.7. Unfortunately, the people at mysql decided to add silly changes such as not being able to mysql -uroot -proot without sudo. Because of this change, I can't login via phpadmin with root.
So I've decided to just install mysql 5.6.
I've been following this guide.
Sadly, when I do apt-cache policy mysql-server, this is what I get:
mysql-server:
Installed: (none)
Candidate: 5.7.23-0ubuntu0.18.04.1
Version table:
5.7.23-0ubuntu0.18.04.1 500
500 http://ph.archive.ubuntu.com/ubuntu bionic-updates/main amd64 Packages
500 http://ph.archive.ubuntu.com/ubuntu bionic-updates/main i386 Packages
500 http://security.ubuntu.com/ubuntu bionic-security/main amd64 Packages
500 http://security.ubuntu.com/ubuntu bionic-security/main i386 Packages
5.7.21-1ubuntu1 500
500 http://ph.archive.ubuntu.com/ubuntu bionic/main amd64 Packages
500 http://ph.archive.ubuntu.com/ubuntu bionic/main i386 Packages
The version is 5.7. So now the guide says check /etc/apt/sources.list.d/mysql.list. But this is what I have in there:
### THIS FILE IS AUTOMATICALLY CONFIGURED ###
# You may comment out entries below, but any other modifications may be lost.
# Use command 'dpkg-reconfigure mysql-apt-config' as root for modifications.
deb http://repo.mysql.com/apt//ubuntu/ wily mysql-apt-config
deb http://repo.mysql.com/apt//ubuntu/ wily mysql-5.6
deb http://repo.mysql.com/apt//ubuntu/ wily mysql-tools
deb-src http://repo.mysql.com/apt//ubuntu/ wily mysql-5.6
So it's actually correct. But it's still not 5.6.
Can anybody help me out?
1.In Software & Updates/Other Software added 14.04 repository:
deb http://archive.ubuntu.com/ubuntu trusty main
2.Installed mysql client and server:
sudo apt install mysql-server-5.6
sudo apt install mysql-client-5.6
Update: Before installing 5.6, make sure that no other mysql packages are present:
dpkg -l | grep mysql - returns list of mysql packages.
Use apt-get purge <package name> to purge them.
Source: 16.04 upgrade broke mysql-server
I have installed apache2, installed php 7. installed phpmyadmin.
Then i tried to create a database with the user i created. Unfortunately i was not able to create a database because i did not have the right permissions. So i decided to start from scratch and deleted everything (apache2, mysql, php, phpmyadmin).
To delete the MySQL server i used the following commands±
sudo apt-get remove --purge mysql*
sudo apt-get autoremove
sudo apt-get autoclean
Now I get stuck with the installation of mysql. I think i deleted more then i should have deleted.
Reading package lists... Done
Building dependency tree
Reading state information... Done
Some packages could not be installed. This may mean that you have
requested an impossible situation or if you are using the unstable
distribution that some required packages have not yet been created
or been moved out of Incoming.
The following information may help to resolve the situation:
The following packages have unmet dependencies:
mysql-server-5.6 : PreDepends: mysql-common (>= 5.5) but it is not
installable
Depends: libdbi-perl but it is not installable
Depends: mysql-client-5.6 (>= 5.6.35-1+deb.sury.org~xenial+0
.1) but it is not going to be installed
Depends: mysql-common (>= 5.6.22-1~) but it is not installable
E: Unable to correct problems, you have held broken packages.
When i use apt-get update:
root#localhost:~# apt-get update
Hit:1 http://archive.canonical.com/ubuntu xenial InRelease
Hit:2 http://ppa.launchpad.net/ondrej/mysql-5.6/ubuntu xenial InRelease
Hit:3 http://ppa.launchpad.net/ondrej/mysql-5.7/ubuntu xenial InRelease
Hit:4 http://ppa.launchpad.net/ondrej/php/ubuntu xenial InRelease
When i use: sudo apt-get install -f
root#localhost:~# sudo apt-get install -f
Reading package lists... Done
Building dependency tree
Reading state information... Done
0 upgraded, 0 newly installed, 0 to remove and 0 not upgraded.
sudo apt-get clean : returns nothing
Sudo apt-get -f install:
root#localhost:~# sudo apt-get -f install
Reading package lists... Done
Building dependency tree
Reading state information... Done
0 upgraded, 0 newly installed, 0 to remove and 0 not upgraded.
sudo apt-get -o Debug::pkgProblemResolver=yes dist-upgrade
root#localhost:~# sudo apt-get -o Debug::pkgProblemResolver=yes dist-upgrade
Reading package lists... Done
Building dependency tree
Reading state information... Done
Starting pkgProblemResolver with broken count: 0
Starting 2 pkgProblemResolver with broken count: 0
Done
Calculating upgrade... Done
0 upgraded, 0 newly installed, 0 to remove and 0 not upgraded.
Because the installation didn´t work and I get stuck with some other errors I also changed the source list file.
I found the solution.
In my case it has to do with my sourcelist file in etc/apt directory.
I updated the file
# deb cdrom:[Ubuntu-Studio 16.04 LTS _Xenial Xerus_ - Alpha amd64 (20151225)]/ xenial main multiverse restricted universe
# See http://help.ubuntu.com/community/UpgradeNotes for how to upgrade to
# newer versions of the distribution.
deb http://archive.ubuntu.com/ubuntu/ xenial main restricted
deb-src http://archive.ubuntu.com/ubuntu/ xenial main restricted
bug fix updates produced after the final release of the
## distribution.
deb http://archive.ubuntu.com/ubuntu/ xenial-updates main restricted
deb-src http://archive.ubuntu.com/ubuntu/ xenial-updates main restricted
## N.B. software from this repository is ENTIRELY UNSUPPORTED by the Ubuntu
## team, and may not be under a free licence. Please satisfy yourself as to
## your rights to use the software. Also, please note that software in
## universe WILL NOT receive any review or updates from the Ubuntu security
## team.
deb http://archive.ubuntu.com/ubuntu/ xenial universe
deb-src http://archive.ubuntu.com/ubuntu/ xenial universe
deb http://archive.ubuntu.com/ubuntu/ xenial-updates universe
deb-src http://archive.ubuntu.com/ubuntu/ xenial-updates universe
## N.B. software from this repository is ENTIRELY UNSUPPORTED by the Ubuntu
## team, and may not be under a free licence. Please satisfy yourself as to
## your rights to use the software. Also, please note that software in
## multiverse WILL NOT receive any review or updates from the Ubuntu
## security team.
deb http://archive.ubuntu.com/ubuntu/ xenial multiverse
deb-src http://archive.ubuntu.com/ubuntu/ xenial multiverse
deb http://archive.ubuntu.com/ubuntu/ xenial-updates multiverse
deb-src http://archive.ubuntu.com/ubuntu/ xenial-updates multiverse
## N.B. software from this repository may not have been tested as
## extensively as that contained in the main release, although it includes
## newer versions of some applications which may provide useful features.
## Also, please note that software in backports WILL NOT receive any review
## or updates from the Ubuntu security team.
deb http://archive.ubuntu.com/ubuntu/ xenial-backports main restricted universe multiverse
deb-src http://archive.ubuntu.com/ubuntu/ xenial-backports main restricted universe multiverse
## Uncomment the following two lines to add software from Canonical's
## 'partner' repository.
## This software is not part of Ubuntu, but is offered by Canonical and the
## respective vendors as a service to Ubuntu users.
deb http://archive.canonical.com/ubuntu xenial partner
deb-src http://archive.canonical.com/ubuntu xenial partner
deb http://security.ubuntu.com/ubuntu xenial-security main restricted
deb-src http://security.ubuntu.com/ubuntu xenial-security main restricted
deb http://security.ubuntu.com/ubuntu xenial-security universe
deb-src http://security.ubuntu.com/ubuntu xenial-security universe
deb http://security.ubuntu.com/ubuntu xenial-security multiverse
deb-src http://security.ubuntu.com/ubuntu xenial-security multiverse
Run:
sudo apt-get update
And to apply any updates, run one of the following commands:
sudo apt-get upgrade
See the Answer
I have a problem with my Ubuntu installation. I'm new to the Ubuntu environment. I don't know how to resolve this problem. I wanted to install mysql-server on my Ubuntu, but I am stuck with these issues.
Here is the one that I get after sudo apt-get install mysql-server:
sudo apt-get install mysql-server
Reading package lists... Done
Building dependency tree
Reading state information... Done
You might want to run 'apt-get -f install' to correct these:
The following packages have unmet dependencies:
libwx-perl : Depends: perlapi-5.10.1 but it is not installable
mysql-server : Depends: mysql-server-5.5 but it is not going to be installed
E: Unmet dependencies. Try 'apt-get -f install' with no packages (or specify a solution).
After that, I tried and run the sudo apt-get -f install command in my terminal and I get these:
sudo apt-get -f install
Reading package lists... Done
Building dependency tree
Reading state information... Done
Correcting dependencies... Done
The following packages were automatically installed and are no longer required:
language-pack-kde-en libpisock9 thunderbird-locale-en-gb
language-pack-kde-en-base kde-l10n-engb thunderbird-locale-en-us
libcompfaceg1 thunderbird-locale-en libetpan15
Use 'apt-get autoremove' to remove them.
The following extra packages will be installed:
libwx-perl
The following packages will be upgraded:
libwx-perl
1 upgraded, 0 newly installed, 0 to remove and 326 not upgraded.
1 not fully installed or removed.
Need to get 0 B/1,674 kB of archives.
After this operation, 591 kB disk space will be freed.
Do you want to continue [Y/n]? y
dpkg: dependency problems prevent configuration of libwx-perl:
libwx-perl depends on perlapi-5.10.1; however:
Package perlapi-5.10.1 is not installed.
dpkg: error processing libwx-perl (--configure):
dependency problems - leaving unconfigured
No apport report written because the error message indicates its a followup error from a previous failure.
Errors were encountered while processing:
libwx-perl
E: Sub-process /usr/bin/dpkg returned an error code (1)
How do I to resolve this issue? I wanted to install Bugzilla on my Ubuntu, but it required MySQL and Apache 2. But because of this problem, I can't install both.
aptitude
The program 'aptitude' is currently not installed. You can install it by typing:
sudo apt-get install aptitude
sudo apt-get install aptitude
Reading package lists... Done
Building dependency tree
Reading state information... Done
You might want to run 'apt-get -f install' to correct these:
The following packages have unmet dependencies:
aptitude : Depends: libboost-iostreams1.46.1 (>= 1.46.1-1) but it is not going to be installed
Depends: libcwidget3 but it is not going to be installed
Depends: libept1.4.12 but it is not going to be installed
Recommends: libparse-debianchangelog-perl but it is not going to be installed
libwx-perl : Depends: perlapi-5.10.1 but it is not installable
E: Unmet dependencies. Try 'apt-get -f install' with no packages (or specify a solution).
sudo apt-cache policy perlapi
N: Unable to locate package perlapi
sudo apt-get --purge remove libwx-perl
Reading package lists... Done
Building dependency tree
Reading state information... Done
You might want to run 'apt-get -f install' to correct these:
The following packages have unmet dependencies:
libwx-perl-processstream-perl : Depends: libwx-perl but it is not going to be installed
padre : Depends: libwx-perl (>= 0.91) but it is not going to be installed
Recommends: libformat-human-bytes-perl (>= 0.06) but it is not going to be installed
E: Unmet dependencies. Try 'apt-get -f install' with no packages (or specify a solution).
sudo apt-get dist-upgrade
Reading package lists... Done
Building dependency tree
Reading state information... Done
You might want to run 'apt-get -f install' to correct these.
The following packages have unmet dependencies:
libwx-perl : Depends: perlapi-5.10.1 but it is not installable
E: Unmet dependencies. Try using -f.
All with the same problem...
Here is my sources.list file:
# deb cdrom:[Ubuntu 12.04.2 LTS _Precise Pangolin_ - Release i386 (20130213)]/ precise main restricted
# See http://help.ubuntu.com/community/UpgradeNotes for how to upgrade to
# newer versions of the distribution.
deb http://us.archive.ubuntu.com/ubuntu/ precise main restricted
deb-src http://us.archive.ubuntu.com/ubuntu/ precise main restricted
## Major bug fix updates produced after the final release of the
## distribution.
deb http://us.archive.ubuntu.com/ubuntu/ precise-updates main restricted
deb-src http://us.archive.ubuntu.com/ubuntu/ precise-updates main restricted
## N.B. software from this repository is ENTIRELY UNSUPPORTED by the Ubuntu
## team. Also, please note that software in universe WILL NOT receive any
## review or updates from the Ubuntu security team.
deb http://us.archive.ubuntu.com/ubuntu/ precise universe
deb-src http://us.archive.ubuntu.com/ubuntu/ precise universe
deb http://us.archive.ubuntu.com/ubuntu/ precise-updates universe
deb-src http://us.archive.ubuntu.com/ubuntu/ precise-updates universe
## N.B. software from this repository is ENTIRELY UNSUPPORTED by the Ubuntu
## team, and may not be under a free licence. Please satisfy yourself as to
## your rights to use the software. Also, please note that software in
## multiverse WILL NOT receive any review or updates from the Ubuntu
## security team.
deb http://us.archive.ubuntu.com/ubuntu/ precise multiverse
deb-src http://us.archive.ubuntu.com/ubuntu/ precise multiverse
deb http://us.archive.ubuntu.com/ubuntu/ precise-updates multiverse
deb-src http://us.archive.ubuntu.com/ubuntu/ precise-updates multiverse
## N.B. software from this repository may not have been tested as
## extensively as that contained in the main release, although it includes
## newer versions of some applications which may provide useful features.
## Also, please note that software in backports WILL NOT receive any review
## or updates from the Ubuntu security team.
deb http://us.archive.ubuntu.com/ubuntu/ precise-backports main restricted universe multiverse
deb-src http://us.archive.ubuntu.com/ubuntu/ precise-backports main restricted universe multiverse
deb http://security.ubuntu.com/ubuntu precise-security main restricted
deb-src http://security.ubuntu.com/ubuntu precise-security main restricted
deb http://security.ubuntu.com/ubuntu precise-security universe
deb-src http://security.ubuntu.com/ubuntu precise-security universe
deb http://security.ubuntu.com/ubuntu precise-security multiverse
deb-src http://security.ubuntu.com/ubuntu precise-security multiverse
## Uncomment the following two lines to add software from Canonical's
## 'partner' repository.
## This software is not part of Ubuntu, but is offered by Canonical and the
## respective vendors as a service to Ubuntu users.
# deb http://archive.canonical.com/ubuntu precise partner
# deb-src http://archive.canonical.com/ubuntu precise partner
## Uncomment the following two lines to add software from Ubuntu's
## 'extras' repository.
## This software is not part of Ubuntu, but is offered by third-party
## developers who want to ship their latest software.
# deb http://extras.ubuntu.com/ubuntu precise main
# deb-src http://extras.ubuntu.com/ubuntu precise main
After I execute
sudo dpkg --purge libwx-perl
this is what I get:
sudo dpkg --purge libwx-perl
dpkg: dependency problems prevent removal of libwx-perl:
libwx-perl-processstream-perl depends on libwx-perl.
padre depends on libwx-perl (>= 0.91); however:
Package libwx-perl is to be removed.
dpkg: error processing libwx-perl (--purge):
dependency problems - not removing
Errors were encountered while processing:
libwx-perl
Further:
sudo dpkg --purge libwx-perl-processstream-perl libwx-perl
dpkg: dependency problems prevent removal of libwx-perl-processstream-perl:
padre depends on libwx-perl-processstream-perl (>= 0.29); however:
Package libwx-perl-processstream-perl is to be removed.
dpkg: error processing libwx-perl-processstream-perl (--purge):
dependency problems - not removing
dpkg: dependency problems prevent removal of libwx-perl:
libwx-perl-processstream-perl depends on libwx-perl.
padre depends on libwx-perl (>= 0.91); however:
Package libwx-perl is to be removed.
dpkg: error processing libwx-perl (--purge):
dependency problems - not removing
Errors were encountered while processing:
libwx-perl-processstream-perl
libwx-perl
I'm trying to install MySQL-5.5.25-1.linux2.6.src.rpm package on RedHat machine, but error occurs when doing rpmbuild.
It prompts that gperf is needed, but I already have gperf 3.0.4 installed.
What should I do to solve this problem?
[root#localhost ~]# rpm -ivh MySQL-5.5.25-1.linux2.6.src.rpm
1:MySQL warning: user pb2user does not exist - using root
########################################### [100%]
warning: user pb2user does not exist - using root
[root#localhost /]# cd /usr/src
[root#localhost src]# cd redhat
[root#localhost redhat]# cd SPECS
[root#localhost SPECS]# ls
mysql.5.5.25.spec
[root#localhost SPECS]# rpmbuild -bp mysql.5.5.25.spec
error: Failed build dependencies:
gperf is needed by MySQL-5.5.25-1.linux2.6.i386
[root#localhost SPECS]# gperf --version
GNU gperf 3.0.4
Copyright (C) 1989-1998, 2000-2004, 2006-2009 Free Software Foundation, Inc.
License GPLv3+: GNU GPL version 3 or later <http://gnu.org/licenses/gpl.html>
This is free software: you are free to change and redistribute it.
There is NO WARRANTY, to the extent permitted by law.
Written by Douglas C. Schmidt and Bruno Haible.
Was your gperf installed as RPM or built?
If it is an RPM, try rebuilding the RPM database using rpm --rebuilddb.