• apt小问题


    安装软件遇到情况,一直等待:

    root@test-xxx:/opt# apt-get install vsftpd
    Reading package lists... Done
    Building dependency tree
    Reading state information... Done
    The following extra packages will be installed:
    ssl-cert
    Suggested packages:
    openssl-blacklist
    The following NEW packages will be installed:
    ssl-cert vsftpd
    0 upgraded, 2 newly installed, 0 to remove and 17 not upgraded.
    Need to get 130 kB of archives.
    After this operation, 477 kB of additional disk space will be used.
    Do you want to continue? [Y/n] y
    0% [Waiting for headers]

    进行apt-get update,也是一直等到

    root@test-xxx:/etc/apt# apt-get update
    0% [Waiting for headers] [Waiting for headers]

    按照网上说法,更换源,问题未修复。

    之后又找到一说法,删除/var/cache/apt/archives/partial目录,问题未修复。

    但是,发现/var/cache/apt/archives/下有一个‘lock’文件。删除,问题解决。

    看来,遇到问题自己分析一下,是很有必要的。

  • 相关阅读:
    内置方法(item系列、__str__方法、__del__方法)
    POJ3436
    CF551B
    HDU1588
    HDU3117
    CF834D
    CF832D
    CF832C
    POJ1930
    POJ3666
  • 原文地址:https://www.cnblogs.com/laozhizi/p/4448327.html
Copyright © 2020-2023  润新知