Perlapi-5.10.1, but it is not installable - mysql

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

Related

Mysql installation error (unmet dependencies)

I just wanted to re-install the mysql from my ubuntu. So i have purge the mysql but when i am trying to install it. It's show dependencies unmet error.
sudo apt-get install mysql-server
Reading package lists... Done
Building dependency tree
Reading state information... Done
mysql-server is already the newest version (5.7.22-0ubuntu0.17.10.1).
You might want to run 'apt --fix-broken install' to correct these.
The following packages have unmet dependencies:
mysql-server : Depends: mysql-server-5.7 but it is not going to be installed
mysql-testsuite-5.7 : Depends: mysql-server-5.7 (= 5.7.22-0ubuntu0.17.10.1) but it is not going to be installed
E: Unmet dependencies. Try 'apt --fix-broken install' with no packages (or specify a solution).
When i try to update it shows:-
sudo apt-get update
Hit:1 http://archive.ubuntu.com/ubuntu artful InRelease
Hit:2 http://de.archive.ubuntu.com/ubuntu artful InRelease
Hit:3 http://security.ubuntu.com/ubuntu artful-security InRelease
Err:4 http://ppa.launchpad.net/canonical-kernel-team/pti/ubuntu artful InRelease
403 Forbidden
Ign:5 http://archive.ubuntu.com/ubuntu trusty InRelease
Hit:6 http://de.archive.ubuntu.com/ubuntu artful-updates InRelease
Hit:7 http://archive.ubuntu.com/ubuntu trusty Release
Hit:8 http://de.archive.ubuntu.com/ubuntu artful-backports InRelease
Hit:9 http://ppa.launchpad.net/mutlaqja/ppa/ubuntu artful InRelease
Reading package lists... Done
E: Failed to fetch http://ppa.launchpad.net/canonical-kernel-team/pti/ubuntu/dists/artful/InRelease 403 Forbidden
E: Some index files failed to download. They have been ignored, or old ones used instead.
When i try to fix dependency the problem we get is still the same:-
sudo apt-get -f install
Reading package lists... Done
Building dependency tree
Reading state information... Done
Correcting dependencies... Done
The following additional packages will be installed:
mysql-server-5.7
Suggested packages:
mailx tinyca
The following NEW packages will be installed:
mysql-server-5.7
0 upgraded, 1 newly installed, 0 to remove and 105 not upgraded.
3 not fully installed or removed.
Need to get 3,189 kB of archives.
After this operation, 48.3 MB of additional disk space will be used.
Do you want to continue? [Y/n] y
Get:1 http://de.archive.ubuntu.com/ubuntu artful-updates/main amd64 mysql-server-5.7 amd64 5.7.22-0ubuntu0.17.10.1 [3,189 kB]
Fetched 3,189 kB in 0s (14.9 MB/s)
Preconfiguring packages ...
(Reading database ... 158292 files and directories currently installed.)
Preparing to unpack .../mysql-server-5.7_5.7.22-0ubuntu0.17.10.1_amd64.deb ...
grep: /etc/mysql/: No such file or directory
Failed to stop mysql.service: Unit mysql.service not loaded.
invoke-rc.d: initscript mysql, action "stop" failed.
invoke-rc.d returned 5
There is a MySQL server running, but we failed in our attempts to stop it.
Stop it yourself and try again!
dpkg: error processing archive /var/cache/apt/archives/mysql-server-5.7_5.7.22-0ubuntu0.17.10.1_amd64.deb (--unpack):
subprocess new pre-installation script returned error exit status 1
Errors were encountered while processing:
/var/cache/apt/archives/mysql-server-5.7_5.7.22-0ubuntu0.17.10.1_amd64.deb
E: Sub-process /usr/bin/dpkg returned an error code (1)
none of the fix works for me.
Thanks in advance :)
Happy coding
Seems your system is stuck in the process of mysql. Restart your system and run the following code.
sudo apt-get update
sudo apt-get -f install
sudo apt purge -y mysql-server
sudo apt install -y mysql-server
Then you should be prompted by the mysql installer to provide a password and it should work just fine.

Linux-Ubuntu: Installing MySQL Server failed:

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

Cannot update nor remove maridb

I made a mistake. I had to update mariadb.
So did:
sudo apt-get install mariadb-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:
mariadb-client : Depends: mariadb-client-10.0 (=
10.0.33+maria-1~trusty) but 10.0.31-0ubuntu0.16.04.2 is to be installed mariadb-server : Depends: mariadb-server-10.2 (>=
10.2.7+maria~xenial) but it is not going to be installed E: Unmet dependencies. Try 'apt-get -f install' with no packages (or specify a
solution).
And then tried to remove as I got errors:
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:
mariadb-client : Depends: mariadb-client-10.0 (=
10.0.33+maria-1~trusty) but 10.0.31-0ubuntu0.16.04.2 is to be installed E: Unmet dependencies. Try 'apt-get -f install' with no
packages (or specify a solution).
sudo apt-get -f install gives me:
Reading package lists... Done Building dependency tree Reading
state information... Done Correcting dependencies... Done The
following additional packages will be installed: mariadb-client-10.0
mariadb-client-core-10.0 mariadb-server-10.0 mariadb-server-core-10.0
Suggested packages: mailx mariadb-test tinyca Recommended packages:
libhtml-template-perl The following packages will be upgraded:
mariadb-client-10.0 mariadb-client-core-10.0 mariadb-server-10.0
mariadb-server-core-10.0 4 upgraded, 0 newly installed, 0 to remove
and 26 not upgraded. 4 not fully installed or removed. Need to get 0
B/11,7 MB of archives. After this operation, 9709 kB disk space will
be freed. Do you want to continue? [Y/n] y Preconfiguring packages ...
(Reading database ... 304724 files and directories currently
installed.) Preparing to unpack
.../mariadb-server-10.0_10.0.33+maria-1~trusty_amd64.deb ... Unpacking
mariadb-server-10.0 (10.0.33+maria-1~trusty) over
(10.0.31-0ubuntu0.16.04.2) ... dpkg: error processing archive
/var/cache/apt/archives/mariadb-server-10.0_10.0.33+maria-1~trusty_amd64.deb
(--unpack): trying to overwrite
'/usr/share/man/man1/mysql_upgrade.1.gz', which is also in package
mariadb-server-core-10.0 10.0.31-0ubuntu0.16.04.2 dpkg-deb: error:
subprocess paste was killed by signal (Broken pipe) dpkg: regarding
.../mariadb-server-core-10.0_10.0.33+maria-1~trusty_amd64.deb
containing mariadb-server-core-10.0: mariadb-server-10.0 conflicts
with mysql-server-core-5.5 mariadb-server-core-10.0 provides
mysql-server-core-5.5 and is to be installed.
dpkg: error processing archive
/var/cache/apt/archives/mariadb-server-core-10.0_10.0.33+maria-1~trusty_amd64.deb
(--unpack): conflicting packages - not installing
mariadb-server-core-10.0 dpkg: regarding
.../mariadb-client-core-10.0_10.0.33+maria-1~trusty_amd64.deb
containing mariadb-client-core-10.0: mariadb-client-10.0 conflicts
with mysql-client-core-5.5 mariadb-client-core-10.0 provides
mysql-client-core-5.5 and is to be installed.
dpkg: error processing archive
/var/cache/apt/archives/mariadb-client-core-10.0_10.0.33+maria-1~trusty_amd64.deb
(--unpack): conflicting packages - not installing
mariadb-client-core-10.0 dpkg: regarding
.../mariadb-client-10.0_10.0.33+maria-1~trusty_amd64.deb containing
mariadb-client-10.0: mariadb-client-core-10.0 conflicts with
mysql-client-5.5 mariadb-client-10.0 provides mysql-client-5.5 and
is to be installed.
dpkg: error processing archive
/var/cache/apt/archives/mariadb-client-10.0_10.0.33+maria-1~trusty_amd64.deb
(--unpack): conflicting packages - not installing mariadb-client-10.0
Processing triggers for man-db (2.7.5-1) ... Errors were encountered
while processing:
/var/cache/apt/archives/mariadb-server-10.0_10.0.33+maria-1~trusty_amd64.deb
/var/cache/apt/archives/mariadb-server-core-10.0_10.0.33+maria-1~trusty_amd64.deb
/var/cache/apt/archives/mariadb-client-core-10.0_10.0.33+maria-1~trusty_amd64.deb
/var/cache/apt/archives/mariadb-client-10.0_10.0.33+maria-1~trusty_amd64.deb
E: Sub-process /usr/bin/dpkg returned an error code (1)
I'm stuck, cannot install, cannot remove, cannot update.
What should I do?

Not able to install mysql-workbench in ubuntu 12.10

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.....

Unable to install libjpeg-turbo8-dev on Ubuntu

I tried to install libjpeg-turbo8-dev like this.
feng#HP:~$ sudo apt-get install libjpeg-turbo8-dev
[sudo] password for feng:
Reading package lists... Done
Building dependency tree
Reading state information... Done
The following packages were automatically installed and are no longer required:
kde-l10n-engb libasn1-8-heimdal:i386 libasound2:i386 libasyncns0:i386
libaudio2:i386 libavahi-client3:i386 libavahi-common-data:i386
{***many packages***}
libxml2:i386 libxmu6:i386 libxrender1:i386 libxt6:i386
libxxf86vm1:i386 mysql-common openjdk-7-jre-lib
Use 'apt-get autoremove' to remove them.
The following NEW packages will be installed:
libjpeg-turbo8-dev
0 upgraded, 1 newly installed, 0 to remove and 39 not upgraded.
1 not fully installed or removed.
Need to get 0 B/420 kB of archives.
After this operation, 1 219 kB of additional disk space will be used.
(Reading database ... 261347 files and directories currently installed.)
Unpacking libjpeg-turbo8-dev:amd64 (from .../libjpeg-turbo8-dev_1.3.0-0ubuntu1.1_amd64.deb) ...
dpkg: error processing /var/cache/apt/archives/libjpeg-turbo8-dev_1.3.0-0ubuntu1.1_amd64.deb (--unpack):
trying to overwrite '/usr/include/jmorecfg.h', which is also in package libjpeg-turbo-devel 1.3.0-3
dpkg-deb: error: subprocess paste was killed by signal (Broken pipe)
Errors were encountered while processing:
/var/cache/apt/archives/libjpeg-turbo8-dev_1.3.0-0ubuntu1.1_amd64.deb
E: Sub-process /usr/bin/dpkg returned an error code (1)
My Ubuntu is 13.10
I want to install libjpeg-turbo8-dev, because I want to install mysql-server and mysql-client. Thet depends on this package.
feng#HP:~$ sudo apt-get install mysql-server mysql-client
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:
libjpeg8-dev : Depends: libjpeg-turbo8-dev (>= 1.1.90+svn722-1ubuntu6) but it is not going to be installed
mysql-client : Depends: mysql-client-5.5 but it is not going to be installed
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).
What you could try is to install the synaptic package manager:
sudo apt-get install synaptic
Here is someone who had a similar problem with the java runtime. Maybe this can help you if synaptic doesn't.
Otherwise I am not sure if you do really need the dev package...