I am trying to install phpmyadmin using this command: sudo apt-get install phpmyadmin
But getting the error bellow:
The following packages have unmet dependencies:
phpmyadmin :
Depends: libapache2-mod-php5 but it is not going to be installed or
libapache2-mod-php5filter but it is not going to be installed or
php5-cgi but it is not going to be installed or
php5-fpm but it is not going to be installed or
php5 but it is not going to be installed
Depends: php5-mysql but it is not going to be installed or
php5-mysqli but it is not installable or
php5-mysqlnd but it is not going to be installed
Depends: php5-mcrypt but it is not going to be installed
Depends: php5-json but it is not going to be installed
Depends: php-gettext but it is not going to be installed
Recommends: php5-gd but it is not going to be installed
E: Unable to correct problems, you have held broken packages.
Please help me to solve the issue.
You said you're using Homestead which operates outside of the Debian package manager. The ideal solution in this case is to simply install phpMyAdmin manually because relying on the package manager is going to try to install all the dependencies that you don't want.
Under normal conditions, you have to install the dependencies listed.
My apt-get makes these suggestions automatically:
# apt-get install phpmyadmin
Reading package lists... Done
Building dependency tree
Reading state information... Done
The following packages were automatically installed and are no longer required:
linux-image-2.6-486 linux-image-2.6-686
Use 'apt-get autoremove' to remove them.
The following extra packages will be installed:
dbconfig-common php-gettext php-tcpdf
Suggested packages:
php5-imagick
The following NEW packages will be installed:
dbconfig-common php-gettext php-tcpdf phpmyadmin
0 upgraded, 4 newly installed, 0 to remove and 0 not upgraded.
Need to get 15.3 MB of archives.
After this operation, 46.1 MB of additional disk space will be used.
Do you want to continue? [Y/n]
I don't see anything special in my configuration file that would cause this, so you might look at yours to see if you're preventing it somehow.
Anyway, the immediate answer is to just tell apt to install the missing packages:
$ sudo apt-get install phpmyadmin libapache2-mod-php5 php5-mysqlnd php5-mcrypt php5-json php-gettext
However, you also have this:
E: Unable to correct problems, you have held broken packages.
Which is a bit odd; you can fix broken packages with $ sudo apt-get -f install.
Related
My vlc was working file but after installing octave vlc crashed.
I tried to reinstall it and repair it with below codes but it did't work
$ sudo apt-get purge vlc
Reading package lists... Done
Building dependency tree
Reading state information... Done
Package 'vlc' is not installed, so not removed
0 upgraded, 0 newly installed, 0 to remove and 11 not upgraded.
$sudo apt-get install vlc
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:
vlc : Depends: libgles1-mesa (>= 7.8.1) but it is not going to be installed or
libgles1
E: Unable to correct problems, you have held broken packages.
Then I tried installing libgles1-mesa
$ sudo apt-get install libgles1-mesa
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:
libgles1-mesa : Depends: libglapi-mesa (= 13.0.4-1ubuntu1~16.10~0.1) but
17.0.3~git20170404+17.0.71d2f05a-0ubuntu0ricotz2~yakkety is to be installed
E: Unable to correct problems, you have held broken packages.
Then I tried libglapi-mesa
$ sudo apt-get install libglapi-mesa
Reading package lists... Done
Building dependency tree
Reading state information... Done
libglapi-mesa is already the newest version (17.0.3~git20170404+17.0.71d2f05a- 0ubuntu0ricotz2~yakkety).
0 upgraded, 0 newly installed, 0 to remove and 11 not upgraded.
How am I supposed to solved it.
I only get it to work using master branch of VLC
https://launchpad.net/~videolan/+archive/ubuntu/master-daily
first add the repository
sudo add-apt-repository ppa:videolan/master-daily
sudo apt-get update
sudo apt-get install vlc
The vlc-nox package installs vlc
To remove, use:
sudo apt-get purge vlc-nox
Next, to reinstall vlc, use:
sudo apt-get update
sudo apt-get install vlc
% sudo snap install vlc
VLC for Debian and many other Linux distributions is also packaged using snap packages. This allows us to distribute latest and greatest VLC versions directly to end users, with security and critical bug fixes, full codec and optical media support.
To install via snap:
I am running Ubuntu 14.10 on VMPlayer 6.0.4 here on ubuntu when I am trying to install maven i am getting the following errors.
ubuntu#ubuntu:~$ sudo apt-get install maven
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:
maven : Depends: libaether-java but it is not going to be installed
Depends: libplexus-containers1.5-java but it is not going to be installed
Depends: libsisu-ioc-java but it is not going to be installed
Depends: libwagon2-java (>= 2.2-2) but it is not going to be installed
E: Unable to correct problems, you have held broken packages.
ubuntu#ubuntu:~$
As I am new to Linux I am not understanding why its failing and how to solve this.
After googling I tried
i)apt-get update (success)
ii)apt-get upgrade (failed as below)
ubuntu#ubuntu:~$ sudo apt-get upgrade
Reading package lists... Done
Building dependency tree
Reading state information... Done
Calculating upgrade... Done
The following packages have been kept back:
liboxideqt-qmlplugin liboxideqtcore0 linux-generic linux-headers-generic linux-image-generic oxideqt-codecs
0 upgraded, 0 newly installed, 0 to remove and 6 not upgraded.
ubuntu#ubuntu:~$
but still same issue
It would be helpful if someone suggestion me how to fix and install maven
Thanks in advance
May be too late to answer, but I had same issue on Ubuntu 12.04 LTS -- so this may be helpful
Here is a work around...
sudo dpkg -i --force-all /var/cache/apt/archives/libwagon2-java_2.2-3+nmu1_all.deb
The command above will install: libwagon2-java_2.2-3+nmu1_all.deb
After this you will be able to install Maven by: $ sudo apt-get install maven
Update your packages by
sudo apt-get update
then try to install.
I am new to Linux I was trying to install Maven with
sudo apt-get install maven
I hit upon this error
Do you want to continue? [Y/n] Y
Get:1 http://ubuntu.excellmedia.net/archive/ utopic-updates/main openjdk-7-jre-headless amd64 7u75-2.5.4-1~utopic1 [39.7 MB]
Fetched 1,031 B in 0s (7,897 B/s)
E: Failed to fetch http://ubuntu.excellmedia.net/archive/pool/main/o/openjdk-7/openjdk-7-jre-headless_7u75-2.5.4-1~utopic1_amd64.deb Size mismatch
E: Unable to fetch some archives, maybe run apt-get update or try with --fix-missing?
On googling i found out that I had to do
sudo apt-get clean
sudo apt-get autoclean
sudo apt-get autoremove
and followed that
Now after doing above clean I tried installing again with
sudo apt-get install maven
but now i am getting the following different error :-(
The following packages have unmet dependencies:
maven : Depends: libaether-java but it is not going to be installed
Depends: libplexus-containers1.5-java but it is not going to be installed
Depends: libsisu-ioc-java but it is not going to be installed
Depends: libwagon2-java (>= 2.2-2) but it is not going to be installed
E: Unable to correct problems, you have held broken packages.
ubuntu#ubuntu:~$
I tired
sudo apt-get update
but it dint work I am currently using "Ubuntu 14.10".
Plz help
Try this out:
sudo apt-get -f install
This will cause apt to scan and fix missing dependencies and fix them from the repositories configured for your system. Try installing maven again after this.
I am having some issues installing VLC on Lubuntu (ubuntu) 14.10:
sudo apt-get install vlc
The command returns:
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.
vlc : Depends: vlc-nox (= 2.2.0-0ubuntu0.14.10.1) but 2.2.0+ppa3.2 is to be installed
Recommends: vlc-plugin-notify (= 2.2.0-0ubuntu0.14.10.1) but 2.2.0+ppa3.2 is to be installed
Recommends: vlc-plugin-samba (= 2.2.0-0ubuntu0.14.10.1) but 2.2.0+ppa3.2 is to be installed
E: Unable to correct problems, you have held broken packages.
I have tried to install both the packages it recommends (they are already installed apparently).
I have also followed this guide as some was having a similar problem: http://ubuntuforums.org/showthread.php?t=2250015
and installed the xorg ppa to no avail.
Can someone please shed some light on this for me?
Many thanks!
Ed
After the usual
sudo apt-get update && sudo apt-get upgrade
Do this:
sudo apt-get remove --purge vlc-nox vlc-plugin-notify vlc-plugin-samba
sudo apt-get install vlc
apt-get should install the correct dependency versions now.
Btw why not post this on https://askubuntu.com/ ?
i want to install Openjdk but i get this error :
root#debian~# apt-get install openjdk-7-jdk
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:
openjdk-7-jdk : Depends: openjdk-7-jre (= 7u75-2.5.4-1~deb7u1) but it is not going to be installed
E: Unable to correct problems, you have held broken packages.
i try this commands by my issue still not solved :
sudo apt-get install -f
sudo dpkg --configure -a
sudo apt-get clean
sudo apt-get update
how should i fix this ?
try
sudo apt-get install tzdata=2014j-0wheezy1
sudo apt-get install openjdk-7-jdk