zoukankan      html  css  js  c++  java
  • sudo apt-get update错误解决办法

    错误提示如下所示:

    $ sudo apt update
    Hit:1 http://security.ubuntu.com/ubuntu bionic-security InRelease
    Hit:2 http://ca.archive.ubuntu.com/ubuntu bionic InRelease
    Hit:3 http://ca.archive.ubuntu.com/ubuntu bionic-updates InRelease
    Hit:4 http://ca.archive.ubuntu.com/ubuntu bionic-backports InRelease
    
    (appstreamcli:15814): GLib-CRITICAL **: g_strchug: assertion 'string != NULL' failed
    
    (appstreamcli:15814): GLib-CRITICAL **: g_strchomp: assertion 'string != NULL' failed
    
    (appstreamcli:15814): GLib-CRITICAL **: g_strchug: assertion 'string != NULL' failed
    
    (appstreamcli:15814): GLib-CRITICAL **: g_strchomp: assertion 'string != NULL' failed
    AppStream cache update completed, but some metadata was ignored due to errors.
    Reading package lists... Done
    Building dependency tree       
    Reading state information... Done
    1675 packages can be upgraded. Run 'apt list --upgradable' to see them.

    解决办法:

    sudo sed -i -e 's/bionic/xenial/g' /etc/apt/sources.list

    参考链接:https://mlog.club/article/2665908

  • 相关阅读:
    js 数组去重的几种方式及原理
    js replace
    gulp的使用方法
    gulp 安装部署
    gulp 的5个方法
    fiddler 监听手机的http请求
    vsCood
    browser-sync使用方法
    browser-sync 安装
    npm 移除第三方包
  • 原文地址:https://www.cnblogs.com/iBoundary/p/12679186.html
Copyright © 2011-2022 走看看