V2EX = way to explore
V2EX 是一个关于分享和探索的地方
Sign Up Now
For Existing Member  Sign In
Distributions
Ubuntu
Fedora
CentOS
中文资源站
网易开源镜像站
ziyouhua
V2EX  ›  Linux

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

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

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

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

    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
        3
    NessajCN  
       Oct 8, 2023
    sudo rm /var/lib/dpkg/updates/*
    sudo apt update && sudo apt upgrade
    ziyouhua
        4
    ziyouhua  
    OP
       Oct 8, 2023 via Android
    谢谢,ChatGPT 都解决不了的你解决了
    levenwindy
        5
    levenwindy  
       Oct 9, 2023 via Android
    一般来说,报错命令 去谷歌就行了
    About   ·   Help   ·   Advertise   ·   Blog   ·   API   ·   FAQ   ·   Solana   ·   6057 Online   Highest 6679   ·     Select Language
    创意工作者们的社区
    World is powered by solitude
    VERSION: 3.9.8.5 · 47ms · UTC 02:12 · PVG 10:12 · LAX 19:12 · JFK 22:12
    ♥ Do have faith in what you're doing.