如何安装 php curl?
How to install php curl?
我正尝试像这样安装 php curl:
sudo apt-get update
sudo apt-get install php5-curl
但我一直收到错误消息。
Reading package lists... Done Building dependency tree
Reading state information... Done php5-curl is already the newest version. 0
upgraded, 0 newly installed, 0 to remove and 3 not upgraded. 2 not
fully installed or removed. After this operation, 0 B of additional
disk space will be used. Do you want to continue? [Y/n] Y Setting up
runit (2.1.2-3ubuntu1) ... start: Unable to connect to Upstart: Failed
to connect to socket /com/ubuntu/upstart: Connection refused dpkg:
error processing package runit (--configure): subprocess installed
post-installation script returned error exit status 1 dpkg: dependency
problems prevent configuration of git-daemon-run: git-daemon-run
depends on runit; however: Package runit is not configured yet.
dpkg: error processing package git-daemon-run (--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:
runit git-daemon-run E: Sub-process /usr/bin/dpkg returned an error
code (1)
当我尝试 sudo dpkg --configure -a
我得到:
dpkg: dependency problems prevent configuration of git-daemon-run:
git-daemon-run depends on runit; however: Package runit is not
configured yet.
dpkg: error processing package git-daemon-run (--configure):
dependency problems - leaving unconfigured Errors were encountered
while processing: git-daemon-run
当我尝试 sudo apt-get install --reinstall runit
我得到:
Reading package lists... Done Building dependency tree Reading
state information... Done 0 upgraded, 0 newly installed, 1
reinstalled, 0 to remove and 8 not upgraded. 2 not fully installed or
removed. After this operation, 0 B of additional disk space will be
used. E: Internal Error, No file name for runit:amd64
当我尝试 sudo apt-get install runit
时,我得到:
Reading package lists... Done Building dependency tree Reading
state information... Done runit is already the newest version. 0
upgraded, 0 newly installed, 0 to remove and 8 not upgraded. 2 not
fully installed or removed. After this operation, 0 B of additional
disk space will be used. Do you want to continue? [Y/n] Y Setting up
runit (2.1.2-3ubuntu1) ... start: Job is already running: runsvdir
dpkg: error processing package runit (--configure): subprocess
installed post-installation script returned error exit status 1 dpkg:
dependency problems prevent configuration of git-daemon-run:
git-daemon-run depends on runit; however: Package runit is not
configured yet.
dpkg: error processing package git-daemon-run (--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: runit git-daemon-run E:
Sub-process /usr/bin/dpkg returned an error code (1)
当我尝试 sudo apt-get install --reinstall git-daemon-run
时,我得到:
Reading package lists... Done Building dependency tree Reading
state information... Done 0 upgraded, 0 newly installed, 1
reinstalled, 0 to remove and 8 not upgraded. 2 not fully installed or
removed. After this operation, 0 B of additional disk space will be
used. E: Internal Error, No file name for git-daemon-run:amd64
我该如何解决这个问题?
系统规格:
- 处理器:英特尔® 酷睿™ i7-3630QM CPU @ 2.40GHz × 8
- 图形:AMD TURKS 上的 Gallium 0.4(DRM 2.43.0、LLVM 3.6.2)
- OS 类型:Ubuntu 15.10 64 位
检查来自 https://askubuntu.com/questions/631615/problems-with-git-all-and-15-04
的解决方案
您需要强行删除 runit
。 运行 sudo dpkg -r runit
应该可以。您可能需要使用 --force-*
选项之一。
我正尝试像这样安装 php curl:
sudo apt-get update
sudo apt-get install php5-curl
但我一直收到错误消息。
Reading package lists... Done Building dependency tree
Reading state information... Done php5-curl is already the newest version. 0 upgraded, 0 newly installed, 0 to remove and 3 not upgraded. 2 not fully installed or removed. After this operation, 0 B of additional disk space will be used. Do you want to continue? [Y/n] Y Setting up runit (2.1.2-3ubuntu1) ... start: Unable to connect to Upstart: Failed to connect to socket /com/ubuntu/upstart: Connection refused dpkg: error processing package runit (--configure): subprocess installed post-installation script returned error exit status 1 dpkg: dependency problems prevent configuration of git-daemon-run: git-daemon-run depends on runit; however: Package runit is not configured yet.dpkg: error processing package git-daemon-run (--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:
runit git-daemon-run E: Sub-process /usr/bin/dpkg returned an error code (1)
当我尝试 sudo dpkg --configure -a
我得到:
dpkg: dependency problems prevent configuration of git-daemon-run: git-daemon-run depends on runit; however: Package runit is not configured yet.
dpkg: error processing package git-daemon-run (--configure): dependency problems - leaving unconfigured Errors were encountered while processing: git-daemon-run
当我尝试 sudo apt-get install --reinstall runit
我得到:
Reading package lists... Done Building dependency tree Reading state information... Done 0 upgraded, 0 newly installed, 1 reinstalled, 0 to remove and 8 not upgraded. 2 not fully installed or removed. After this operation, 0 B of additional disk space will be used. E: Internal Error, No file name for runit:amd64
当我尝试 sudo apt-get install runit
时,我得到:
Reading package lists... Done Building dependency tree Reading state information... Done runit is already the newest version. 0 upgraded, 0 newly installed, 0 to remove and 8 not upgraded. 2 not fully installed or removed. After this operation, 0 B of additional disk space will be used. Do you want to continue? [Y/n] Y Setting up runit (2.1.2-3ubuntu1) ... start: Job is already running: runsvdir dpkg: error processing package runit (--configure): subprocess installed post-installation script returned error exit status 1 dpkg: dependency problems prevent configuration of git-daemon-run: git-daemon-run depends on runit; however: Package runit is not configured yet.
dpkg: error processing package git-daemon-run (--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: runit git-daemon-run E: Sub-process /usr/bin/dpkg returned an error code (1)
当我尝试 sudo apt-get install --reinstall git-daemon-run
时,我得到:
Reading package lists... Done Building dependency tree Reading state information... Done 0 upgraded, 0 newly installed, 1 reinstalled, 0 to remove and 8 not upgraded. 2 not fully installed or removed. After this operation, 0 B of additional disk space will be used. E: Internal Error, No file name for git-daemon-run:amd64
我该如何解决这个问题?
系统规格:
- 处理器:英特尔® 酷睿™ i7-3630QM CPU @ 2.40GHz × 8
- 图形:AMD TURKS 上的 Gallium 0.4(DRM 2.43.0、LLVM 3.6.2)
- OS 类型:Ubuntu 15.10 64 位
检查来自 https://askubuntu.com/questions/631615/problems-with-git-all-and-15-04
的解决方案您需要强行删除 runit
。 运行 sudo dpkg -r runit
应该可以。您可能需要使用 --force-*
选项之一。