Tag: error

  • Temporary solution for Ubuntu’s “not have a Release file”


    It’s wired that when I tried to update the Ubuntu zesty and install some new packages today, I got such errors below.

    Err:8 http://security.ubuntu.com/ubuntu zesty-security Release      
      404  Not Found [IP: 91.189.88.161 80]
    Err:10 http://archive.ubuntu.com/ubuntu zesty Release
      404  Not Found [IP: 91.189.88.152 80]
    Err:12 http://archive.ubuntu.com/ubuntu zesty-updates Release
      404  Not Found [IP: 91.189.88.152 80]
    Reading package lists... Done
    E: The repository 'http://security.ubuntu.com/ubuntu zesty-security Release' does no longer have a Release file.
    N: Updating from such a repository can't be done securely, and is therefore disabled by default.
    N: See apt-secure(8) manpage for repository creation and user configuration details.
    E: The repository 'http://archive.ubuntu.com/ubuntu zesty Release' does not have a Release file.
    N: Updating from such a repository can't be done securely, and is therefore disabled by default.
    N: See apt-secure(8) manpage for repository creation and user configuration details.
    E: The repository 'http://archive.ubuntu.com/ubuntu zesty-updates Release' does not have a Release file.
    N: Updating from such a repository can't be done securely, and is therefore disabled by default.
    N: See apt-secure(8) manpage for repository creation and user configuration details.
    

    And none of the other mirrors works to me. All of them has the same issue “no longer have a Release file”. I did some research and found the error message actually has another form “not have a Release file”.

    The solution is easy but tricky — Disable all sources of `security.ubuntu.com` and replace `archive.ubuntu.com` to `old-releases.ubuntu.com`.

    (more…)

  • 关于 QQ OAuth 封装出现 T_PAAMAYIM_NEKUDOTAYIM 的解决办法

    许多网友在使用我的 OAuth 的腾讯微博封装(腾讯微博开放平台的PECL的OAuth封装)时都遇到了 T_PAAMAYIM_NEKUDOTAYIM 的错误。为了方便大家,干脆这里统一说明一下吧。

    这个错误的责任在我。
    由于我使用的开发和部署环境都是 Ubuntu 环境,PHP 版本 5.3.3。我在编码的时候使用了一个 5.2.x 不支持的特性。在 XY/QQ/Store.php 的 28 行:

    $class::setParams($params);
    

    经不完全验证在 5.2.x 及以下版本会报 T_PAAMAYIM_NEKUDOTAYIM 错误。

    解决办法其实很简单,将 28 行代码替换为:

    call_user_func(array($class, 'setParams'), $params);
    

    仅此即可。

    真是抱歉了!同时感谢 ahusjolzy 提供的关键信息!