簡體   English   中英

無法更新梨包(重定向但沒有位置)

[英]Can't update pear packages (redirected but no location)

我在我的Ubuntu本地機器上安裝了Pear,近一年來我一直在使用這個環境沒有問題。 我沒有問題多次更新梨包。 但我或多或少都不能在七月七日這樣做。 它說“錯誤獲取頻道信息.. xml無效(重定向但沒有位置)”。任何人都可以幫助我嗎?我沒有直接改變Pear中的任何東西(我記得)並且突然間我無法升級任何包。

這是我的梨版(梨-V):

PEAR Version: 1.9.4
PHP Version: 5.4.9-4ubuntu2.3
Zend Engine Version: 2.4.0
Running on: Linux oficina11 3.8.0-30-generic #44-Ubuntu SMP Thu Aug 22 20:52:24 UTC 2013 x86_64

我的配置(pear config-show):

Configuration (channel pear.php.net):
=====================================
Auto-discover new Channels     auto_discover    1
Default Channel                default_channel  pear.php.net
HTTP Proxy Server Address      http_proxy       <not set>
PEAR server [DEPRECATED]       master_server    pear.php.net
Default Channel Mirror         preferred_mirror pear.php.net
Remote Configuration File      remote_config    <not set>
PEAR executables directory     bin_dir          /usr/bin
PEAR documentation directory   doc_dir          /usr/share/php/doc
PHP extension directory        ext_dir          /usr/lib/php5/20100525+lfs
PEAR directory                 php_dir          /usr/share/php
PEAR Installer cache directory cache_dir        /tmp/pear/cache
PEAR configuration file        cfg_dir          /usr/share/php/cfg
directory
PEAR data directory            data_dir         /usr/share/php/data
PEAR Installer download        download_dir     /build/buildd/php5-5.4.9/pear-build-download
directory
PHP CLI/CGI binary             php_bin          /usr/bin/php
php.ini location               php_ini          <not set>
--program-prefix passed to     php_prefix       <not set>
PHP's ./configure
--program-suffix passed to     php_suffix       <not set>
PHP's ./configure
PEAR Installer temp directory  temp_dir         /tmp/pear/temp
PEAR test directory            test_dir         /usr/share/php/test
PEAR www files directory       www_dir          /usr/share/php/htdocs
Cache TimeToLive               cache_ttl        3600
Preferred Package State        preferred_state  stable
Unix file mask                 umask            2
Debug Log Level                verbose          1
PEAR password (for             password         <not set>
maintainers)
Signature Handling Program     sig_bin          /usr/bin/gpg
Signature Key Directory        sig_keydir       /etc/pear/pearkeys
Signature Key Id               sig_keyid        <not set>
Package Signature Type         sig_type         gpg
PEAR username (for             username         <not set>
maintainers)
User Configuration File        Filename         /root/.pearrc
System Configuration File      Filename         /etc/pear/pear.conf

我嘗試升級時返回的消息(pear upgrade-all):

Error getting channel info from components.ez.no: File http://components.ez.no:80/p/packages.xml not valid (redirected but no location)
Error getting channel info from pear.php.net: File http://pear.php.net:80/rest/p/packages.xml not valid (redirected but no location)Error getting channel info from pear.phpunit.de: File http://pear.phpunit.de:80/rest/p/packages.xml not valid (redirected but no location)
... (all the rest of packages)

如果其他人有類似的問題,它現在解決了,它是防火牆。 出於任何原因,我可以從瀏覽器下載文件,我可以通過APT安裝或更新軟件包,但防火牆阻止了PEAR下載。 我已將PEAR URL添加到安全站點,現在它正在運行。

暫無
暫無

聲明:本站的技術帖子網頁,遵循CC BY-SA 4.0協議,如果您需要轉載,請注明本站網址或者原文地址。任何問題請咨詢:yoyou2525@163.com.

 
粵ICP備18138465號  © 2020-2024 STACKOOM.COM