I am trying to install php5-imap but I get the error that dependancies are missing. But they are not!  The error message:  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:  php5-imap : Depends: phpapi-20090626 E: Unable to correct problems, you have held broken packages.   dpkg -l | grep php returns this:  ii  libapache2-mod-php5                  5.5.37+dfsg-1+deprecated+dontuse+deb.sury.org~precise+1 server-side, HTML-embedded scripting language (Apache 2 module) ii  php-http                             1.4.1-1                                                 PHP PEAR module for HTTP related stuff ii  php-pear                             5.5.37+dfsg-1+deprecated+dontuse+deb.sury.org~precise+1 PEAR - PHP Extension and Application Repository ii  php5                                 5.5.37+dfsg-1+deprecated+dontuse+deb.sury.org~precise+1 server-side, HTML-embedded scripting language (metapackage) ii  php5-cli                             5.5.37+dfsg-1+deprecated+dontuse+deb.sury.org~precise+1 command-line interpreter for the php5 scripting language ii  php5-common                          5.5.37+dfsg-1+deprecated+dontuse+deb.sury.org~precise+1 Common files for packages built from the php5 source ii  php5-curl                            5.5.37+dfsg-1+deprecated+dontuse+deb.sury.org~precise+1 CURL module for php5 ii  php5-dev                             5.5.37+dfsg-1+deprecated+dontuse+deb.sury.org~precise+1 Files for PHP5 module development ii  php5-gd                              5.5.37+dfsg-1+deprecated+dontuse+deb.sury.org~precise+1 GD module for php5 ii  php5-imagick                         3.3.0-1+deb.sury.org~precise+2                          Provides a wrapper to the ImageMagick library ii  php5-json                            1.3.9-1+deb.sury.org~precise+3                          JSON module for php5 ii  php5-mcrypt                          5.5.37+dfsg-1+deprecated+dontuse+deb.sury.org~precise+1 MCrypt module for php5 rc  php5-mysql                           5.5.7+dfsg-1+sury.org~precise+1                         MySQL module for php5 ii  php5-mysqlnd                         5.5.37+dfsg-1+deprecated+dontuse+deb.sury.org~precise+1 MySQL module for php5 (Native Driver) ii  php5-sqlite                          5.5.37+dfsg-1+deprecated+dontuse+deb.sury.org~precise+1 SQLite module for php5 ii  pkg-php-tools                        1.21+deb.sury.org~precise+1                             various packaging tools and scripts for PHP packages   From the reading I have done, phpapi is part of php-cgi, php-cli and other packages that I have installed.  I also found that php5-fpm is reporting a similar error except with php5-common which is clearly in the list of installed packages.  Any thoughts?
831
PPA seems to be constantly offline. Whenever I use sudo apt-get update, this error is shown:  W: Failed to fetch http://ppa.launchpad.net/ 404  Not Found   How do I fix these errors?
74448
I need to upgrade php from 5.3 to 5.4. I've installed it with rpm. I want clean install: delete all 5.3 packages, and install all necessary 5.4. Here is the command to see all installed packages:  rpm -qa |grep php   It prints out a list of packages, and I want to remove all them with:  rpm -e *pakage.name*   Can I iterate over all matches in grep results and use each match in:   rpm -e *grep.match*
30932
I installed Drush for the first time (so it may be a configuration error) and I'm trying to update to the latest core version of Drupal.  Drush is giving me this error - I'm on an OSX box.  dev5:clientnamedirectory my.name$ drush pm-update projects drupal-7.25 &lt;h1&gt;Additional uncaught exception thrown while handling exception.&lt;/h1&gt;  &lt;h2&gt;Original&lt;/h2&gt;&lt;p&gt;PDOException: SQLSTATE[HY000] [2002] No such file or directory in drupal_get_installed_schema_version() (line 155 of /Users/my.name/Sites/proface/includes/install.inc).&lt;/p&gt;  &lt;h2&gt;Additional&lt;/h2&gt;  &lt;p&gt;PDOException: SQLSTATE[HY000] [2002] No such file or directory in system_list() (line 165 of /Users/my.name/Sites/clientnamedirectory/includes/module.inc).&lt;/p&gt;&lt;hr /&gt;  Drush command terminated abnormally due to an unrecoverable error.
111360
After running an upgrade from Ubuntu 11.10 (Oneiric Ocelot) to 12.04LTS (Precise Pangolin), a window popped up saying that the upgrade failed and that I should run sudo dpkg --configure -a.  Running that command gave me:  sudo dpkg --configure -a dpkg: error: parsing file '/var/lib/dpkg/status' near line 55497 package 'indicator-displex':  blank line in value of field 'Description   Trying to run apt-get install -f gives me many dependency errors along with that same dpkg error.
109381
I'm pretty sure I know what the problem is i just dont know how to fix it.  Im trying to install mcrypt "yum install php-mcrypt" and i get the following error  Error: Package: php-mcrypt-5.3.3-3.el6.x86_64 (epel)   I can see that el6 is the error. I have php el7 installed already. How can i get the el7 version instead of el6?  I checked the current repolist and i dont see any el6 repos there. The current active repos are   CentOS-7 - Base  Extra Packages for Enterprise Linux 7 - x86_64      CentOS-7 - Extras     MySQL Connectors Community     MySQL Tools Community - Source   MySQL 5.6 Community Server   CentOS-7 - Updates    Yum error when running yum install php-mcrypt  --&gt; Finished Dependency Resolution Error: Package: php-mcrypt-5.3.3-3.el6.x86_64 (epel)    Requires: php(api) = 20090626    Installed: php-common-5.4.16-23.el7_0.3.x86_64 (@base)        php(api) = 20100412-64 Error: Package: php-mcrypt-5.3.3-3.el6.x86_64 (epel)    Requires: php(zend-abi) = 20090626    Installed: php-common-5.4.16-23.el7_0.3.x86_64 (@base)    php(zend-abi) = 20100525-64
3695
I've done the following:  sudo add-apt-repository ppa:ondrej/php5-5.6 sudo apt-get update sudo apt-get upgrade sudo apt-get install php5 sudo apt-get install libapache2-mod-php5.6 sudo add-apt-repository ppa:ondrej/apache2   When I try to disable the old version of php5 with:  sudo phpdismod php5   I get the error: WARNING: Module php5 ini file doesn't exist under /etc/php/5.6/mods-available  Even if I move the ini file under this directory it gives me the same error.  I don't know what I'm missing??  In general, can someone explain to me how to get my instance to use the newly installed version, as I still seem to have both php directory trees on my instance.  php5/.. and php/5.6
35213
I tried to install ffmpeg in trusty/Ubuntu 14.04 and got the following message:  $sudo apt-get install ffmpeg  Reading package lists... Done Building dependency tree        Reading state information... Done Package ffmpeg is not available, but is referred to by another package. This may mean that the package is missing, has been obsoleted, or is only available from another source  E: Package 'ffmpeg' has no installation candidate   Why isn't the package available?
94503
The error looks like this:  Reading package lists... Done Building dependency tree        Reading state information... Done Package mysql-workbench is not available, but is referred to by another package. This may mean that the package is missing, has been obsoleted, or is only available from another source E: Package 'mysql-workbench' has no installation candidate   How do I install it?
22057
I need to use php5 (5.6) because I'm working on a Drupal 7 project which doesn't support php7. The problem is I recently updated to ubuntu 16.04 Xenial which seems to .   I tried to install it from , however when It try to install it with apt I always get similar errors.  $ sudo apt-get install php5-cli Cependant les paquets suivants le remplacent :   php7.0-cli:i386 php7.0-cli`   Which means it's obsolete. How can I install PHP 5.6 on Xenial?
56552
I'm trying to install tor on my Kali Linux 2016.1 (kali-rolling). When I type apt-get install tor in Terminal, this error appears:  Reading package lists... Done Building dependency tree        Reading state information... Done Package tor is not available, but is referred to by another package. This may mean that the package is missing, has been obsoleted, or is only available from another source  E: Package 'tor' has no installation candidate   How can I fix this and install tor?  UPD:  I tried this:  - I added deb http://deb.torproject.org/torproject.org wheezy main to sources file, but it didn't help at all, so I deleted this string and now it's in a default condition
117042
I'm using Ubuntu GNOME 16.10 and was trying to install WPS Office. I tried to install using software centre But it wasn't installing without giving any error logs. Then I opened it with Gdebi installer. Here is what I saw.    I have already trying enabling multiverse repositories.  Edit: I have downloaded the amd64 package from the WPS official site, but even now installing through terminal I still get the missing dependencies error.
24696
Been trying to install git-core package for almost more than half a day now. Every time I do, I get this error:  dpkg: error: parsing file '/var/lib/dpkg/available' near line 0: newline in field name `../../../../../share/pyshared/UpdateManager/Core/__init__.py'   I've also tried running sudo apt-get update and sudo apt-get install --fix-missing. Even tried rebooting and cleaning the apt-get cache, still doesnt work.
51333
I'm trying to install nodejs and npm, however, it fails. This is my terminal:  sudo apt-get install nodejs npm 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: nodejs : Conflicts: npm E: Unable to correct problems, you have held broken packages.   What to do? I'm kinda lost :(
87722
I want to install a package in Ubuntu 14.04, but every time I run the ./configure command it gives me this error:  E: Cannot get debconf version. Is debconf installed? debconf: apt-extracttemplates failed: No such file or directory Extracting templates from packages: 35%E: Cannot get debconf version. Is debconf installed? debconf: apt-extracttemplates failed: No such file or directory Extracting templates from packages: 70%E: Cannot get debconf version. Is debconf installed? debconf: apt-extracttemplates failed: No such file or directory Extracting templates from packages: 100% dpkg: error: cannot scan updates directory `/var/lib/dpkg/updates/': No such file or directory E: Sub-process /usr/bin/dpkg returned an error code (2)
86761
Yeah, I did this, it was stupid.  I did not know it will pull its dependencies with it, I just wanted to install python 2 and 3 from scratch (because of this problem: ).  Now, I still can use my terminal, checked these answers:      However after running sudo apt-get install ubuntu-desktop I get these errors:  Setting up python-ldb (2:1.1.24-1ubuntu3) ... /var/lib/dpkg/info/python-ldb.postinst: 6: /var/lib/dpkg/info/python-ldb.postinst: pycompile: not found dpkg: error processing package python-ldb (--configure):  subprocess installed post-installation script returned error exit status 127 No apport report written because MaxReports is reached already                                                               Setting up python-tdb (1.3.8-2) ... /var/lib/dpkg/info/python-tdb.postinst: 6: /var/lib/dpkg/info/python-tdb.postinst: pycompile: not found dpkg: error processing package python-tdb (--configure):  subprocess installed post-installation script returned error exit status 127 No apport report written because MaxReports is reached already                                                               dpkg: dependency problems prevent configuration of python-samba:  python-samba depends on python-crypto; however:   Package python-crypto is not configured yet.  python-samba depends on python-ldb (&gt;= 1.1.2~); however:   Package python-ldb is not configured yet.  python-samba depends on python-tdb; however:   Package python-tdb is not configured yet.  dpkg: error processing package python-samba (--configure):  dependency problems - leaving unconfigured No apport report written because MaxReports is reached already                                                               Processing triggers for libc-bin (2.23-0ubuntu7) ...  Errors were encountered while processing:  mercurial-common  python-crypto  python-dnspython  python-ldb  python-tdb  python-samba E: Sub-process /usr/bin/dpkg returned an error code (1)   What is the way to restore these dependencies (16.04 LTS)?
103373
Apt is seemingly unable to do anything useful for me, repeatedly giving messages of this form:  dpkg: dependency problems prevent configuration of linux-server:  linux-server depends on linux-image-server (= 3.2.0.37.44); however:   Version of linux-image-server on system is 3.2.0.37.45.  linux-server depends on linux-headers-server (= 3.2.0.37.44); however:   Version of linux-headers-server on system is 3.2.0.37.45. dpkg: error processing linux-server (--configure):  dependency problems - leaving unconfigured   This is basically the same problem as  which got closed Duplicate to an answer that is totally useless for this situation.  None of the advice in  helps.    Explicitly:  sudo apt-get clean sudo apt-get autoclean sudo apt-get update   all have no not effect.  While  sudo apt-get -f install sudo dpkg --configure -a sudo apt-get -u dist-upgrade sudo apt-get -o Debug::pkgProblemResolver=yes dist-upgrade   all give some form of the error message above.
34001
I'd like to try PHP7.0 on Debian Jessie and am trying to install it from sid. However,  depends on  which depends on php-common &gt; 18 while  in sid is at 17. Does this mean it's simply impossible to install php7.0 from this distribution at the moment? Why is that?  I know that it is possible to install from source as explained e.g. , I'm just asking about the official packages.    Note: the packages in sid have been fixed and it is now (Jan 6, 2016) possible to install from there.