Distributions
› Ubuntu
› Fedora
› CentOS
中文资源站
› 网易开源镜像站
ziyouhua
V2EX  ›  Linux

请教大佬一个 ubuntu 运行 dpkg 的问题

  •  
  •   ziyouhua · Oct 7, 2023 via Android · 2036 views
    This topic created in 1135 days ago, the information mentioned may be changed or developed.

    我的 vps 是 ubuntu 系统,但无法安装 dpkg ,许多简单的系统升级命令都运行不了,都出现:

    5 replies  •  2023-10-09 06:34:43 +08:00
    hsfzxjy
    hsfzxjy
    Oct 7, 2023 via Android
    1
    出现啥
    ziyouhua
    ziyouhua
    OP
    Oct 7, 2023 via Android
    2
    都出现:

    E: dpkg was interrupted, you must manually run \'dpkg --configure -a\' to correct the problem


    它好像说是要运行 dpkg --configure -a ,但运行了 dpkg --configure -a ,又出现

    dpkg: error: parsing file \'/var/lib/dpkg/updates/0001\' near line 0:
    end of file after field name

    请问怎么搞?
    NessajCN
    NessajCN
    Oct 8, 2023
    3
    sudo rm /var/lib/dpkg/updates/*
    sudo apt update && sudo apt upgrade
    ziyouhua
    ziyouhua
    OP
    Oct 8, 2023 via Android
    4
    谢谢,ChatGPT 都解决不了的你解决了
    levenwindy
    levenwindy
    Oct 9, 2023 via Android
    5
    一般来说,报错命令 去谷歌就行了
    About   ·   Help   ·   Advertise   ·   Blog   ·   API   ·   FAQ   ·   Privacy   ·   Solana   ·   2240 Online   Highest 6679   ·     Select Language
    创意工作者们的社区
    World is powered by solitude
    VERSION: 3.9.8.5 · 36ms · UTC 13:49 · PVG 21:49 · LAX 05:49 · JFK 08:49
    ♥ Do have faith in what you're doing.