添加ppa:ondrej/php后找不到包

添加ppa:ondrej/php后找不到包,php,vagrant,installation,apt,Php,Vagrant,Installation,Apt,我在一个新的盒子里没有任何运气地遵循了建议 看起来这个包在UTF-8编码方面有一些问题。业主发布了关于如何在ppa中强制本地化以克服此问题的说明,但新安装似乎无法解决此问题 我错过了什么 $ vagrant up Bringing machine 'default' up with 'virtualbox' provider... ==> default: Importing base box 'hashicorp/precise64'... ==> default: Matchin

我在一个新的盒子里没有任何运气地遵循了建议

看起来这个包在UTF-8编码方面有一些问题。业主发布了关于如何在ppa中强制本地化以克服此问题的说明,但新安装似乎无法解决此问题

我错过了什么

$ vagrant up
Bringing machine 'default' up with 'virtualbox' provider...
==> default: Importing base box 'hashicorp/precise64'...
==> default: Matching MAC address for NAT networking...
==> default: Checking if box 'hashicorp/precise64' is up to date...
==> default: Setting the name of the VM: cpf_default_1496675342115_33230
==> default: Clearing any previously set network interfaces...
==> default: Preparing network interfaces based on configuration...
    default: Adapter 1: nat
    default: Adapter 2: hostonly
==> default: Forwarding ports...
    default: 3306 (guest) => 3306 (host) (adapter 1)
    default: 22 (guest) => 2222 (host) (adapter 1)
==> default: Running 'pre-boot' VM customizations...
==> default: Booting VM...
==> default: Waiting for machine to boot. This may take a few minutes...
    default: SSH address: 127.0.0.1:2222
    default: SSH username: vagrant
    default: SSH auth method: private key
    default: 
    default: Vagrant insecure key detected. Vagrant will automatically replace
    default: this with a newly generated keypair for better security.
    default: 
    default: Inserting generated public key within guest...
    default: Removing insecure key from the guest if it's present...
    default: Key inserted! Disconnecting and reconnecting using new SSH key...
==> default: Machine booted and ready!
==> default: Checking for guest additions in VM...
    default: The guest additions on this VM do not match the installed version of
    default: VirtualBox! In most cases this is fine, but in rare cases it can
    default: prevent things such as shared folders from working properly. If you see
    default: shared folder errors, please make sure the guest additions within the
    default: virtual machine match the version of VirtualBox you have installed on
    default: your host and reload your VM.
    default:
    default: Guest Additions Version: 4.2.0
    default: VirtualBox Version: 5.1
==> default: Configuring and enabling network interfaces...
==> default: Mounting shared folders...
$ vagrant ssh
Welcome to Ubuntu 12.04 LTS (GNU/Linux 3.2.0-23-generic x86_64)

 * Documentation:  https://help.ubuntu.com/
New release '14.04.5 LTS' available.
Run 'do-release-upgrade' to upgrade to it.

Welcome to your Vagrant-built virtual machine.
Last login: Fri Sep 14 06:23:18 2012 from 10.0.2.2
vagrant@precise64:~$ sudo su
root@precise64:/home/vagrant# apt-get update
Get:1 http://security.ubuntu.com precise-security InRelease [55.7 kB]
Ign http://us.archive.ubuntu.com precise InRelease   
Get:2 http://us.archive.ubuntu.com precise-updates InRelease [55.7 kB]
Get:3 http://us.archive.ubuntu.com precise-backports InRelease [55.7 kB]
Hit http://us.archive.ubuntu.com precise Release.gpg                       
Get:4 http://security.ubuntu.com precise-security/main Sources [150 kB]    
Hit http://us.archive.ubuntu.com precise Release       
Get:5 http://us.archive.ubuntu.com precise-updates/main Sources [503 kB]       
Get:6 http://security.ubuntu.com precise-security/restricted Sources [4,643 B]
Get:7 http://security.ubuntu.com precise-security/universe Sources [57.9 kB]
Get:8 http://security.ubuntu.com precise-security/multiverse Sources [3,032 B]         
Get:9 http://security.ubuntu.com precise-security/main amd64 Packages [375 kB]
Get:10 http://us.archive.ubuntu.com precise-updates/restricted Sources [8,837 B]       
Get:11 http://us.archive.ubuntu.com precise-updates/universe Sources [137 kB]        
Get:12 http://us.archive.ubuntu.com precise-updates/multiverse Sources [10.5 kB]    
Get:13 http://us.archive.ubuntu.com precise-updates/main amd64 Packages [741 kB]    
Get:14 http://security.ubuntu.com precise-security/restricted amd64 Packages [10.9 kB]   
Get:15 http://security.ubuntu.com precise-security/universe amd64 Packages [145 kB]      
Get:16 http://us.archive.ubuntu.com precise-updates/restricted amd64 Packages [15.4 kB]    
Get:17 http://us.archive.ubuntu.com precise-updates/universe amd64 Packages [288 kB]    
Get:18 http://us.archive.ubuntu.com precise-updates/multiverse amd64 Packages [17.1 kB]    
Get:19 http://us.archive.ubuntu.com precise-updates/main i386 Packages [745 kB]        
Get:20 http://security.ubuntu.com precise-security/multiverse amd64 Packages [3,367 B]
Get:21 http://security.ubuntu.com precise-security/main i386 Packages [377 kB]        
Get:22 http://us.archive.ubuntu.com precise-updates/restricted i386 Packages [15.3 kB]     
Get:23 http://us.archive.ubuntu.com precise-updates/universe i386 Packages [297 kB]        
Get:24 http://us.archive.ubuntu.com precise-updates/multiverse i386 Packages [17.3 kB]      
Get:25 http://us.archive.ubuntu.com precise-updates/main TranslationIndex [208 B]              
Get:26 http://us.archive.ubuntu.com precise-updates/multiverse TranslationIndex [202 B]        
Get:27 http://us.archive.ubuntu.com precise-updates/restricted TranslationIndex [202 B]        
Get:28 http://us.archive.ubuntu.com precise-updates/universe TranslationIndex [205 B]             
Get:29 http://us.archive.ubuntu.com precise-backports/main Sources [5,922 B]                      
Get:30 http://us.archive.ubuntu.com precise-backports/restricted Sources [28 B]                   
Get:31 http://us.archive.ubuntu.com precise-backports/universe Sources [44.2 kB]                  
Get:32 http://us.archive.ubuntu.com precise-backports/multiverse Sources [5,750 B]                
Get:33 http://us.archive.ubuntu.com precise-backports/main amd64 Packages [6,477 B]           
Get:34 http://security.ubuntu.com precise-security/restricted i386 Packages [10.8 kB]     
Get:35 http://security.ubuntu.com precise-security/universe i386 Packages [154 kB]
Get:36 http://us.archive.ubuntu.com precise-backports/restricted amd64 Packages [28 B]
Get:37 http://us.archive.ubuntu.com precise-backports/universe amd64 Packages [46.3 kB]
Get:38 http://us.archive.ubuntu.com precise-backports/multiverse amd64 Packages [5,419 B]    
Get:39 http://us.archive.ubuntu.com precise-backports/main i386 Packages [6,478 B]            
Get:40 http://us.archive.ubuntu.com precise-backports/restricted i386 Packages [28 B]         
Get:41 http://us.archive.ubuntu.com precise-backports/universe i386 Packages [46.1 kB]        
Get:42 http://security.ubuntu.com precise-security/multiverse i386 Packages [3,537 B]         
Get:43 http://security.ubuntu.com precise-security/main TranslationIndex [208 B]              
Get:44 http://security.ubuntu.com precise-security/multiverse TranslationIndex [199 B]        
Get:45 http://security.ubuntu.com precise-security/restricted TranslationIndex [202 B]        
Get:46 http://security.ubuntu.com precise-security/universe TranslationIndex [205 B]          
Get:47 http://us.archive.ubuntu.com precise-backports/multiverse i386 Packages [5,413 B]      
Get:48 http://security.ubuntu.com precise-security/main Translation-en [188 kB]
Get:49 http://us.archive.ubuntu.com precise-backports/main TranslationIndex [202 B]                
Get:50 http://us.archive.ubuntu.com precise-backports/multiverse TranslationIndex [202 B]          
Get:51 http://us.archive.ubuntu.com precise-backports/restricted TranslationIndex [193 B]          
Get:52 http://us.archive.ubuntu.com precise-backports/universe TranslationIndex [205 B]            
Hit http://us.archive.ubuntu.com precise/main Sources                                              
Hit http://us.archive.ubuntu.com precise/restricted Sources                                        
Hit http://us.archive.ubuntu.com precise/universe Sources                                          
Hit http://us.archive.ubuntu.com precise/multiverse Sources                                        
Hit http://us.archive.ubuntu.com precise/main amd64 Packages                                       
Hit http://us.archive.ubuntu.com precise/restricted amd64 Packages                      
Hit http://us.archive.ubuntu.com precise/universe amd64 Packages                        
Hit http://us.archive.ubuntu.com precise/multiverse amd64 Packages                      
Hit http://us.archive.ubuntu.com precise/main i386 Packages                             
Hit http://us.archive.ubuntu.com precise/restricted i386 Packages                       
Hit http://us.archive.ubuntu.com precise/universe i386 Packages                         
Hit http://us.archive.ubuntu.com precise/multiverse i386 Packages                       
Hit http://us.archive.ubuntu.com precise/main TranslationIndex                          
Hit http://us.archive.ubuntu.com precise/multiverse TranslationIndex                    
Get:53 http://security.ubuntu.com precise-security/multiverse Translation-en [1,993 B]   
Get:54 http://security.ubuntu.com precise-security/restricted Translation-en [2,802 B]   
Hit http://us.archive.ubuntu.com precise/restricted TranslationIndex                     
Hit http://us.archive.ubuntu.com precise/universe TranslationIndex      
Get:55 http://us.archive.ubuntu.com precise-updates/main Translation-en [344 kB]
Get:56 http://security.ubuntu.com precise-security/universe Translation-en [93.2 kB]   
Get:57 http://us.archive.ubuntu.com precise-updates/multiverse Translation-en [10.1 kB]                  
Get:58 http://us.archive.ubuntu.com precise-updates/restricted Translation-en [3,686 B]                    
Get:59 http://us.archive.ubuntu.com precise-updates/universe Translation-en [174 kB]                       
Get:60 http://us.archive.ubuntu.com precise-backports/main Translation-en [5,737 B]                        
Get:61 http://us.archive.ubuntu.com precise-backports/multiverse Translation-en [4,852 B]                
Get:62 http://us.archive.ubuntu.com precise-backports/restricted Translation-en [28 B]                   
Get:63 http://us.archive.ubuntu.com precise-backports/universe Translation-en [35.9 kB]                  
Hit http://us.archive.ubuntu.com precise/main Translation-en                                             
Hit http://us.archive.ubuntu.com precise/multiverse Translation-en                                       
Hit http://us.archive.ubuntu.com precise/restricted Translation-en                                       
Hit http://us.archive.ubuntu.com precise/universe Translation-en                                         
Fetched 5,297 kB in 2s (1,928 kB/s)                                                      
Reading package lists... Done
root@precise64:/home/vagrant# apt-get install -y python-software-properties software-properties-common
Reading package lists... Done
Building dependency tree       
Reading state information... Done
The following extra packages will be installed:
  python-pycurl unattended-upgrades
Suggested packages:
  libcurl4-gnutls-dev python-pycurl-dbg bsd-mailx
The following NEW packages will be installed:
  python-pycurl python-software-properties software-properties-common unattended-upgrades
0 upgraded, 4 newly installed, 0 to remove and 193 not upgraded.
Need to get 56.6 kB/106 kB of archives.
After this operation, 794 kB of additional disk space will be used.
Get:1 http://us.archive.ubuntu.com/ubuntu/ precise-updates/main unattended-upgrades all 0.76ubuntu1.3 [24.7 kB]
Get:2 http://us.archive.ubuntu.com/ubuntu/ precise-updates/main python-software-properties all 0.82.7.7 [23.5 kB]
Get:3 http://us.archive.ubuntu.com/ubuntu/ precise-updates/main software-properties-common all 0.82.7.7 [8,450 B]
Fetched 56.6 kB in 0s (214 kB/s)                 
Preconfiguring packages ...
Selecting previously unselected package unattended-upgrades.
(Reading database ... 51095 files and directories currently installed.)
Unpacking unattended-upgrades (from .../unattended-upgrades_0.76ubuntu1.3_all.deb) ...
Selecting previously unselected package python-pycurl.
Unpacking python-pycurl (from .../python-pycurl_7.19.0-4ubuntu3_amd64.deb) ...
Selecting previously unselected package python-software-properties.
Unpacking python-software-properties (from .../python-software-properties_0.82.7.7_all.deb) ...
Selecting previously unselected package software-properties-common.
Unpacking software-properties-common (from .../software-properties-common_0.82.7.7_all.deb) ...
Processing triggers for man-db ...
Processing triggers for ureadahead ...
ureadahead will be reprofiled on next reboot
Setting up unattended-upgrades (0.76ubuntu1.3) ...
Setting up python-pycurl (7.19.0-4ubuntu3) ...
Setting up python-software-properties (0.82.7.7) ...
Setting up software-properties-common (0.82.7.7) ...
root@precise64:/home/vagrant# apt-get install -y language-pack-en-base
Reading package lists... Done
Building dependency tree       
Reading state information... Done
The following extra packages will be installed:
  language-pack-en
Recommended packages:
  firefox-locale-en
The following packages will be upgraded:
  language-pack-en language-pack-en-base
2 upgraded, 0 newly installed, 0 to remove and 191 not upgraded.
Need to get 882 kB of archives.
After this operation, 143 kB of additional disk space will be used.
Get:1 http://us.archive.ubuntu.com/ubuntu/ precise-updates/main language-pack-en all 1:12.04+20140106 [1,978 B]
Get:2 http://us.archive.ubuntu.com/ubuntu/ precise-updates/main language-pack-en-base all 1:12.04+20140106 [880 kB]
Fetched 882 kB in 1s (605 kB/s)
(Reading database ... 51182 files and directories currently installed.)
Preparing to replace language-pack-en 1:12.04+20120801 (using .../language-pack-en_1%3a12.04+20140106_all.deb) ...
Unpacking replacement language-pack-en ...
Preparing to replace language-pack-en-base 1:12.04+20120801 (using .../language-pack-en-base_1%3a12.04+20140106_all.deb) ...
Unpacking replacement language-pack-en-base ...
Setting up language-pack-en (1:12.04+20140106) ...
Setting up language-pack-en-base (1:12.04+20140106) ...
Generating locales...
  en_AG.UTF-8... done
  en_AU.UTF-8... done
  en_BW.UTF-8... done
  en_CA.UTF-8... done
  en_DK.UTF-8... done
  en_GB.UTF-8... done
  en_HK.UTF-8... done
  en_IE.UTF-8... done
  en_IN.UTF-8... done
  en_NG.UTF-8... done
  en_NZ.UTF-8... done
  en_PH.UTF-8... done
  en_SG.UTF-8... done
  en_US.UTF-8... up-to-date
  en_ZA.UTF-8... done
  en_ZM.UTF-8... done
  en_ZW.UTF-8... done
Generation complete.
root@precise64:/home/vagrant# locale
LANG=en_US.UTF-8
LANGUAGE=
LC_CTYPE="en_US"
LC_NUMERIC="en_US"
LC_TIME="en_US"
LC_COLLATE="en_US"
LC_MONETARY="en_US"
LC_MESSAGES="en_US"
LC_PAPER="en_US"
LC_NAME="en_US"
LC_ADDRESS="en_US"
LC_TELEPHONE="en_US"
LC_MEASUREMENT="en_US"
LC_IDENTIFICATION="en_US"
LC_ALL=en_US
root@precise64:/home/vagrant# export LC_ALL=en_US.UTF-8
root@precise64:/home/vagrant# locale
LANG=en_US.UTF-8
LANGUAGE=
LC_CTYPE="en_US.UTF-8"
LC_NUMERIC="en_US.UTF-8"
LC_TIME="en_US.UTF-8"
LC_COLLATE="en_US.UTF-8"
LC_MONETARY="en_US.UTF-8"
LC_MESSAGES="en_US.UTF-8"
LC_PAPER="en_US.UTF-8"
LC_NAME="en_US.UTF-8"
LC_ADDRESS="en_US.UTF-8"
LC_TELEPHONE="en_US.UTF-8"
LC_MEASUREMENT="en_US.UTF-8"
LC_IDENTIFICATION="en_US.UTF-8"
LC_ALL=en_US.UTF-8
root@precise64:/home/vagrant# LC_ALL=en_US.UTF-8 add-apt-repository ppa:ondrej/php
You are about to add the following PPA to your system:
 Co-installable PHP versions: PHP 5.6, PHP 7.0, PHP 7.1 and most requested extensions are included.

PLEASE DON'T USE PHP 5.4 OR PHP 5.5. The PHP 5.5 and later are no longer supported with security updates, therefore they are not included in this repository.

You can get more information about the packages at https://deb.sury.org

BUGS&FEATURES: This PPA now has a issue tracker: https://deb.sury.org/#bug-reporting

PLEASE READ: If you like my work and want to give me a little motivation, please consider donating regularly: https://donate.sury.org/

WARNING: add-apt-repository is broken with non-UTF-8 locales, see https://github.com/oerdnj/deb.sury.org/issues/56 for workaround:

# LC_ALL=C.UTF-8 add-apt-repository ppa:ondrej/php
 More info: https://launchpad.net/~ondrej/+archive/ubuntu/php
Press [ENTER] to continue or ctrl-c to cancel adding it

gpg: keyring `/tmp/tmptF8yjV/secring.gpg' created
gpg: keyring `/tmp/tmptF8yjV/pubring.gpg' created
gpg: requesting key E5267A6C from hkp server keyserver.ubuntu.com
gpg: /tmp/tmptF8yjV/trustdb.gpg: trustdb created
gpg: key E5267A6C: public key "Launchpad PPA for Ondřej Surý" imported
gpg: Total number processed: 1
gpg:               imported: 1  (RSA: 1)
OK
root@precise64:/home/vagrant# apt-key list
/etc/apt/trusted.gpg
--------------------
pub   1024D/437D05B5 2004-09-12
uid                  Ubuntu Archive Automatic Signing Key <ftpmaster@ubuntu.com>
sub   2048g/79164387 2004-09-12

pub   1024D/FBB75451 2004-12-30
uid                  Ubuntu CD Image Automatic Signing Key <cdimage@ubuntu.com>

pub   1024R/E5267A6C 2009-01-26
uid                  Launchpad PPA for Ondřej Surý

root@precise64:/home/vagrant# apt-get install php7.0
Reading package lists... Done
Building dependency tree
Reading state information... Done
E: Unable to locate package php7.0
E: Couldn't find any package by regex 'php7.0'
root@precise64:/home/vagrant# apt-get install php5.6
Reading package lists... Done
Building dependency tree
Reading state information... Done
E: Unable to locate package php5.6
E: Couldn't find any package by regex 'php5.6'
$vagrant up
正在使用“virtualbox”提供程序启动计算机“默认”。。。
==>默认值:导入基本框“hashicorp/precise64”。。。
==>默认值:匹配NAT网络的MAC地址。。。
==>默认设置:正在检查“hashicorp/precise64”框是否为最新状态。。。
==>默认值:设置虚拟机的名称:cpf_default_1496675342115_33230
==>默认设置:清除任何以前设置的网络接口。。。
==>默认值:根据配置准备网络接口。。。
默认值:适配器1:nat
默认值:适配器2:hostonly
==>默认值:转发端口。。。
默认值:3306(来宾)=>3306(主机)(适配器1)
默认值:22(来宾)=>2222(主机)(适配器1)
==>默认值:运行“预引导”VM自定义。。。
==>默认值:正在启动VM。。。
==>默认值:等待机器启动。这可能需要几分钟。。。
默认值:SSH地址:127.0.0.1:2222
默认值:SSH用户名:vagrant
默认值:SSH auth方法:私钥
违约:
默认值:检测到不安全的密钥。流浪汉将自动替换
默认设置:这将与新生成的密钥对一起使用,以提高安全性。
违约:
默认设置:在来宾中插入生成的公钥。。。
默认设置:从来宾中删除不安全的密钥(如果存在的话)。。。
默认值:插入密钥!正在使用新SSH密钥断开和重新连接。。。
==>默认值:机器已启动并准备就绪!
==>默认值:正在VM中检查来宾添加。。。
默认值:此VM上的来宾添加与的安装版本不匹配
默认值:VirtualBox!在大多数情况下,这是好的,但在极少数情况下,它可以
默认设置:阻止共享文件夹等工作正常。如果你看到
默认值:共享文件夹错误,请确保在
默认值:虚拟机与您安装的VirtualBox版本匹配
默认设置:重新加载主机并重新加载虚拟机。
违约:
默认:来宾添加版本:4.2.0
默认值:VirtualBox版本:5.1
==>默认值:配置和启用网络接口。。。
==>默认值:装载共享文件夹。。。
$vagrant-ssh
欢迎使用Ubuntu 12.04 LTS(GNU/Linux 3.2.0-23-generic x86_64)
*文件:https://help.ubuntu.com/
新版本“14.04.5 LTS”可用。
运行“do release upgrade”升级到它。
欢迎使用您的流浪者构建的虚拟机。
上次登录:2012年9月14日星期五06:23:18从10.0.2.2开始
vagrant@precise64:~$sudo su
root@precise64:/home/vagrant#易于获取更新
获得:1http://security.ubuntu.com 精确的加密加密协议[55.7KB]
点火http://us.archive.ubuntu.com 精密继电器
获得:2http://us.archive.ubuntu.com Release中的精确更新[55.7KB]
获得:3http://us.archive.ubuntu.com 精简版中的精确后端口[55.7 kB]
打http://us.archive.ubuntu.com 精确释放.gpg
获得:4http://security.ubuntu.com 精确安全/主要来源[150 kB]
打http://us.archive.ubuntu.com 精确释放
获得:5http://us.archive.ubuntu.com 精确更新/主要来源[503KB]
获得:6http://security.ubuntu.com 精确安全/受限来源[4643 B]
获得:7http://security.ubuntu.com 精确安全/宇宙来源[57.9KB]
获得:8http://security.ubuntu.com 精确安全/多重宇宙来源[3032 B]
获取:9http://security.ubuntu.com 精确安全/主amd64软件包[375 kB]
获得:10http://us.archive.ubuntu.com 精确更新/限制来源[8837 B]
获得:11http://us.archive.ubuntu.com 精确更新/宇宙来源[137 kB]
获得:12http://us.archive.ubuntu.com 精确更新/多重宇宙来源[10.5 kB]
获得:13http://us.archive.ubuntu.com 精确更新/主要amd64软件包[741KB]
获得:14http://security.ubuntu.com 精确安全/受限amd64软件包[10.9 kB]
获得:15http://security.ubuntu.com 精确安全/universe amd64软件包[145 kB]
获得:16http://us.archive.ubuntu.com 精确更新/受限制的amd64软件包[15.4KB]
获得:17http://us.archive.ubuntu.com 精确更新/universe amd64软件包[288 kB]
获得:18http://us.archive.ubuntu.com 精确更新/multiverse amd64软件包[17.1 kB]
获得:19http://us.archive.ubuntu.com 精确更新/主i386软件包[745 kB]
得到:20http://security.ubuntu.com 精确安全/多元宇宙amd64软件包[3367 B]
获得:21http://security.ubuntu.com 精确安全/主i386软件包[377KB]
获得:22http://us.archive.ubuntu.com 精确更新/受限i386软件包[15.3 kB]
获得:23http://us.archive.ubuntu.com 精确更新/universe i386软件包[297 kB]
获取:24http://us.archive.ubuntu.com 精确更新/多元宇宙i386软件包[17.3 kB]
获得:25http://us.archive.ubuntu.com 精确更新/主翻译索引[208 B]
获得:26http://us.archive.ubuntu.com 精确更新/多重宇宙翻译索引[202 B]
获得:27http://us.archive.ubuntu.com 精确更新/受限翻译索引[202 B]
获得:28http://us.archive.ubuntu.com 精确更新/宇宙翻译索引[205 B]
获得:29http://us.archive.ubuntu.com 精确的后端口/主要源[5922 B]
时间:30http://us.archive.ubuntu.com 精确后端口/受限源[28 B]
获得:31http://us.archive.ubuntu.com 精确的后台端口/通用源[44.2 kB]
获得:32http://us.archive.ubuntu.com 精确的后端口/多重宇宙源[5750 B]
获得:33http://us.archive.ubuntu.com 精确的后端口/主amd64包[6477 B]
获得:34http://security.ubuntu.com 精确安全/受限i386软件包[10.8 kB]
获得:35http://security