I was told to install mysqlnd by running sudo apt-get install php5-mysqlnd. However, I seem to have received an error. Any idea what's going on and how I can fix it? I'm running Ubuntu Server.
zerg#server:~$ sudo apt-get install php5-mysqlnd
Reading package lists... Done
Building dependency tree
Reading state information... Done
The following packages will be REMOVED:
php5-mysql
The following NEW packages will be installed: php5-mysqlnd
0 upgraded, 1 newly installed, 1 to remove and 0 not upgraded.
Need to get 134 kB of archives.
After this operation, 247 kB of additional disk space will be used.
Do you want to continue? [Y/n] y
Err http://archive.ubuntu.com/ubuntu/ trusty-updates/universe php5- mysqlnd amd64 5.5.9+dfsg-1ubuntu4.14
404 Not Found [IP: 2001:67c:1560:8001::11 80]
Err http://security.ubuntu.com/ubuntu/ trusty-security/universe php5-mysqlnd amd64 5.5.9+dfsg-1ubuntu4.14
404 Not Found [IP: 2001:67c:1560:8001::11 80]
E: Failed to fetch http://security.ubuntu.com/ubuntu/pool/universe/p/php5/php5-mysqlnd_5.5.9+dfsg-1ubuntu4.14_amd64.deb 404 Not Found [IP: 2001:67c:1560:8001::11 80]
E: Unable to fetch some archives, maybe run apt-get update or try with --fix-missing?
zerg#server:~$ sudo apt-get install php5-mysqlnd --fix-missing
Reading package lists... Done
Building dependency tree
Reading state information... Done
The following packages will be REMOVED: php5-mysql
The following NEW packages will be installed:
php5-mysqlnd
0 upgraded, 1 newly installed, 1 to remove and 0 not upgraded.
Need to get 134 kB of archives.
After this operation, 247 kB of additional disk space will be used.
Do you want to continue? [Y/n] y
Err http://archive.ubuntu.com/ubuntu/ trusty-updates/universe php5- mysqlnd amd64 5.5.9+dfsg-1ubuntu4.14
404 Not Found [IP: 2001:67c:1560:8001::11 80]
Err http://security.ubuntu.com/ubuntu/ trusty-security/universe php5-mysqlnd amd64 5.5.9+dfsg-1ubuntu4.14
404 Not Found [IP: 2001:67c:1560:8001::11 80]
(Reading database ... 28529 files and directories currently installed.)
Removing php5-mysql (5.5.9+dfsg-1ubuntu4.14) ...
php5_invoke prerm: Disable module mysql for fpm SAPI
php5_invoke prerm: Disable module mysql for cli SAPI
php5_invoke prerm: Disable module mysqli for fpm SAPI
php5_invoke prerm: Disable module mysqli for cli SAPI
php5_invoke prerm: Disable module pdo_mysql for fpm SAPI
php5_invoke prerm: Disable module pdo_mysql for cli SAPI
Processing triggers for php5-fpm (5.5.9+dfsg-1ubuntu4.14) ...
php5-fpm stop/waiting
php5-fpm start/running, process 17187
E: Failed to fetch http://security.ubuntu.com/ubuntu/pool/universe/p/php5/php5-mysqlnd_5.5.9+dfsg-1ubuntu4.14_amd64.deb 404 Not Found [IP: 2001:67c:1560:8001::11 80]
Related
I am trying to install some package but getting this error evry time how I can fix it? Does`nt metter if I want to install this or other package
apt-get install mysql-server php5.6-mysql
Reading package lists... Done
Building dependency tree
Reading state information... Done
mysql-server is already the newest version (5.5.9999+default).
The following NEW packages will be installed:
php5.6-common php5.6-mysql
0 upgraded, 2 newly installed, 0 to remove and 398 not upgraded.
4 not fully installed or removed.
Need to get 872 kB of archives.
After this operation, 4924 kB of additional disk space will be used.
Get:1 https://packages.sury.org/php jessie/main amd64 php5.6-common amd64 5.6.36-1+0~20180505045733.13+jessie~1.gbp9b5cab [730 kB]
Get:2 https://packages.sury.org/php jessie/main amd64 php5.6-mysql amd64 5.6.36-1+0~20180505045733.13+jessie~1.gbp9b5cab [142 kB]
Fetched 872 kB in 0s (1047 kB/s)
Setting up systemd (232-25+deb9u3) ...
addgroup: The group `systemd-journal' already exists as a system group. Exiting.
adduser: The user `systemd-timesync' already exists. Exiting.
dpkg: error processing package systemd (--configure):
subprocess installed post-installation script returned error exit status 1
Errors were encountered while processing:
systemd
E: Sub-process /usr/bin/dpkg returned an error code (1)
Try sudo apt install --reinstall systemd
I am installing php on my virtual machine. I use apt-get install php5 but it throws this error:
Reading package lists... Done
Building dependency tree
Reading state information... Done
The following extra packages will be installed:
libapache2-mod-php5 libonig2 libqdbm14 php5-cli php5-common php5-json php5-readline
Suggested packages:
php-pear php5-user-cache
The following NEW packages will be installed:
libapache2-mod-php5 libonig2 libqdbm14 php5 php5-cli php5-common php5-json php5-readline
0 upgraded, 8 newly installed, 0 to remove and 0 not upgraded.
Need to get 255 kB/5,401 kB of archives.
After this operation, 21.1 MB of additional disk space will be used.
Do you want to continue? [Y/n] y
Err http://ftp.es.debian.org/debian/ jessie/main libonig2 amd64 5.9.5-3.2
Could not connect to ftp.es.debian.org:80 (82.194.78.250). - connect (111: Connection refused)
Err http://ftp.es.debian.org/debian/ jessie/main libqdbm14 amd64 1.8.78-5+b1
Unable to connect to ftp.es.debian.org:http:
Err http://ftp.es.debian.org/debian/ jessie/main php5-json amd64 1.3.6-1
Unable to connect to ftp.es.debian.org:http:
E: Failed to fetch http://ftp.es.debian.org/debian/pool/main/libo/libonig/libonig2_5.9.5-3.2_amd64.deb Could not connect to ftp.es.debian.org:80 (82.194.78.250). - connect (111: Connection refused)
E: Failed to fetch http://ftp.es.debian.org/debian/pool/main/q/qdbm/libqdbm14_1.8.78-5+b1_amd64.deb Unable to connect to ftp.es.debian.org:http:
E: Failed to fetch http://ftp.es.debian.org/debian/pool/main/p/php-json/php5-json_1.3.6-1_amd64.deb Unable to connect to ftp.es.debian.org:http:
E: Unable to fetch some archives, maybe run apt-get update or try with --fix-missing?
I have checked the sources.list file and is the following:
# deb cdrom:[Debian GNU/Linux 8.5.0 _Jessie_ - Official amd64 NETINST Binary-1 20160604-15:31]/ jessie main
#deb cdrom:[Debian GNU/Linux 8.5.0 _Jessie_ - Official amd64 NETINST Binary-1 20160604-15:31]/ jessie main
deb http://ftp.es.debian.org/debian/ jessie main
deb-src http://ftp.es.debian.org/debian/ jessie main
deb http://security.debian.org/ jessie/updates main
deb-src http://security.debian.org/ jessie/updates main
# jessie-updates, previously known as 'volatile'
deb http://ftp.es.debian.org/debian/ jessie-updates main
deb-src http://ftp.es.debian.org/debian/ jessie-updates main
#jessie bug security fix
deb http://security.debian.org/ jessie/updates main contrib non-free
I also used the apt-get update and apt-get upgrade but still with this failures...
Finally I tried to install php7 with:
sudo apt-get install python-software-properties
sudo LC_ALL=C.UTF-8 add-apt-repository ppa:ondrej/php
sudo apt-get update
But the LC_ALL=C.UTF-8 add-apt-repository ppa:ondrej/php command output this: -bash: add-apt-repository: command not found
I have searched for tips to solve boths but I did no find anything so I need some help to keep pushing this...
Thank you
The Spain debian repos is down NOW (often falls). Please, change to another respos, for example: ftp.pt.debian.org
I have a Linux Mint machine I am working on. I want Laravel to install on it.
When I search for this I got this command: curl -sS https://getcomposer.org/installer | php from "https://getcomposer.org/download/" to put in terminal but it gives me this:
The program 'php' is currently not installed. You can install it by typing:
sudo apt-get install php5-cli
The program 'curl' is currently not installed. You can install it by typing:
sudo apt-get install curl
After i have done sudo apt-get install curl
libcurl3 curl
Install these packages without verification [y/N]? y
Err http://archive.ubuntu.com/ubuntu/ quantal-updates/main libcurl3 i386 7.27.0-1ubuntu1.9
404 Not Found [IP: 91.189.91.15 80]
Err http://security.ubuntu.com/ubuntu/ quantal-security/main libcurl3 i386 7.27.0-1ubuntu1.9
404 Not Found [IP: 91.189.91.14 80]
Err http://security.ubuntu.com/ubuntu/ quantal-security/main curl i386 7.27.0-1ubuntu1.9
404 Not Found [IP: 91.189.91.14 80]
Failed to fetch http://security.ubuntu.com/ubuntu/pool/main/c/curl/libcurl3_7.27.0-1ubuntu1.9_i386.deb 404 Not Found [IP: 91.189.91.14 80]
Failed to fetch http://security.ubuntu.com/ubuntu/pool/main/c/curl/curl_7.27.0-1ubuntu1.9_i386.deb 404 Not Found [IP: 91.189.91.14 80]
E: Unable to fetch some archives, maybe run apt-get update or try with --fix-missing?
got this which is not successfully installed curl
How can any one I successfully install these things and Composer and Laravel?
The Composer already hints you the way to install those, you should run those commands, enter your password en those libraries should be installed automatically, after you install those libraries rerun the composer download.
First make sure that you have the latest version of curl installed.
I made a bash file for the whole process of global installation of Laravel and Composer.
Download it from here
Open a terminal in the bash file directory
Run the command below:
bash Laravel_Global_Installer.sh
This bash file manages installations of:
Latest version of PHP and its extensions
Latest version of Composer (Global)
Latest version of Laravel (Global)
I am trying to install curl module of php by following command on my Ubuntu machine-
sudo apt-get install php5-curl
But it is not getting installed and I am getting following error messages on console. Could you assist me and explain what is happening here. Why are those urls Forbidden?
sudo apt-get install php5-curl
root#XXXXXXXX:/etc/apt# apt-get install php5-curl
Reading package lists... Done
Building dependency tree
Reading state information... Done
The following extra packages will be installed:
libapache2-mod-php5 php5-cli php5-common php5-mysql
Suggested packages:
php-pear php5-suhosin
The following NEW packages will be installed:
php5-curl
The following packages will be upgraded:
libapache2-mod-php5 php5-cli php5-common php5-mysql
4 upgraded, 1 newly installed, 0 to remove and 29 not upgraded.
Need to get 6,522kB of archives.
After this operation, 127kB of additional disk space will be used.
Do you want to continue [Y/n]? Y
Err http://us-east-1.ec2.archive.ubuntu.com/ubuntu/ maverick-updates/main php5-cli i386 5.3.3-1ubuntu9.10
403 Forbidden
Err http://us-east-1.ec2.archive.ubuntu.com/ubuntu/ maverick-updates/main php5-mysql i386 5.3.3-1ubuntu9.10
403 Forbidden
Err http://us-east-1.ec2.archive.ubuntu.com/ubuntu/ maverick-updates/main libapache2-mod-php5 i386 5.3.3-1ubuntu9.10
403 Forbidden
Err http://us-east-1.ec2.archive.ubuntu.com/ubuntu/ maverick-updates/main php5-common i386 5.3.3-1ubuntu9.10
403 Forbidden
Err http://us-east-1.ec2.archive.ubuntu.com/ubuntu/ maverick-updates/main php5-curl i386 5.3.3-1ubuntu9.10
403 Forbidden
Failed to fetch http://us-east-1.ec2.archive.ubuntu.com/ubuntu/pool/main/p/php5/php5-cli_5.3.3-1ubuntu9.10_i386.deb 403 Forbidden
Failed to fetch http://us-east-1.ec2.archive.ubuntu.com/ubuntu/pool/main/p/php5/php5-mysql_5.3.3-1ubuntu9.10_i386.deb 403 Forbidden
Failed to fetch http://us-east-1.ec2.archive.ubuntu.com/ubuntu/pool/main/p/php5/libapache2-mod-php5_5.3.3-1ubuntu9.10_i386.deb 403 Forbidden
Failed to fetch http://us-east-1.ec2.archive.ubuntu.com/ubuntu/pool/main/p/php5/php5-common_5.3.3-1ubuntu9.10_i386.deb 403 Forbidden
Failed to fetch http://us-east-1.ec2.archive.ubuntu.com/ubuntu/pool/main/p/php5/php5-curl_5.3.3-1ubuntu9.10_i386.deb 403 Forbidden
E: Unable to fetch some archives, maybe run apt-get update or try with --fix-missing?
I upgraded my distro from ubuntu 10.10 to Ubuntu 12.04 LTS. It solved my problem.
If so, try the following sequence:
sudo apt-get update --fix-missing
sudo apt-get update
sudo apt-get install php5-curl
I have been trying to install the GD toolkit on my Ubuntu VM. The operation is simple enough:
sudo apt-get install php5-gd
However, when I run this, I get a 404 (Not Found error) for a package:
Reading package lists... Done
Building dependency tree
Reading state information... Done
The following NEW packages will be installed:
php5-gd
0 upgraded, 1 newly installed, 0 to remove and 0 not upgraded.
3 not fully installed or removed.
Need to get 38.8 kB of archives.
After this operation, 163 kB of additional disk space will be used.
Err http://us.archive.ubuntu.com/ubuntu/ precise-updates/main php5-gd amd64 5.3.10-1ubuntu3.1
404 Not Found [IP: 91.189.92.153 80]
Err http://security.ubuntu.com/ubuntu/ precise-security/main php5-gd amd64 5.3.10-1ubuntu3.1
404 Not Found [IP: 91.189.92.151 80]
Failed to fetch http://security.ubuntu.com/ubuntu/pool/main/p/php5/php5-gd_5.3.10-1ubuntu3.1_amd64.deb 404 Not Found [IP: 91.189.92.151 80]
E: Unable to fetch some archives, maybe run apt-get update or try with --fix-missing?
Has anyone encountered this problem?
Got the answer from user1190992 apt-get was simply out of date....
This command did the trick:
sudo apt-get update
Internets might be all broken. try
$ curl 91.189.92.153