zoukankan      html  css  js  c++  java
  • ubuntu 18 卸载 cloud

    You just deployed yourself a fresh copy of Ubuntu Server 18.04 Bionic Beaver. It should be the latest and greatest, and you just need a virtual machine to do some web development or perhaps you just want to enable IP forwarding and use this machine as a router. That’s great, except the latest Ubuntu assumes that you are part of the current trend to put everything in the cloud, and so ships with something called cloud-init.

    No harm normally, but this wastes valuable seconds doing something you don’t need if you’re not in the cloud. It’s easy to remove this package by following the (modified) instructions here: https://makandracards.com/operations/42688-how-to-remove-cloud-init-from-ubuntu :

    1. dpkg-reconfigure cloud-init
      1. Then deselect all the options except None
    2. sudo apt-get purge cloud-init
    3. sudo mv /etc/cloud/ ~/; sudo mv /var/lib/cloud/ ~/cloud-lib
      1. I prefer to move, rather than delete, in case something goes wrong and you wish to restore the files.

    When you remove cloud-init following those steps, your machine stops booting and there is apparently a service that is waiting for network to be up. This would normally be just an inconvenience, but the boot hangs indefinitely waiting for said network. Odd choice of configuration out of the box, but anyway, you can fix this by:

    1. List the services which depend on network being online.
      • sudo systemctl show -p WantedBy network-online.target
    2. This will list the culprits as some iscsi services that you probably don’t need.
    3. Disable the services and remove the open-iscsi package
      • systemctl disable <service name>
      • apt remove open-iscsi

    That should do to get the system booting without some service waiting endlessly for a network connection.

    You just deployed yourself a fresh copy of Ubuntu Server 18.04 Bionic Beaver. It should be the latest and greatest, and you just need a virtual machine to do some web development or perhaps you just want to enable IP forwarding and use this machine as a router. That’s great, except the latest Ubuntu assumes that you are part of the current trend to put everything in the cloud, and so ships with something called cloud-init.

    No harm normally, but this wastes valuable seconds doing something you don’t need if you’re not in the cloud. It’s easy to remove this package by following the (modified) instructions here: https://makandracards.com/operations/42688-how-to-remove-cloud-init-from-ubuntu :

    1. dpkg-reconfigure cloud-init
      1. Then deselect all the options except None
    2. sudo apt-get purge cloud-init
    3. sudo mv /etc/cloud/ ~/; sudo mv /var/lib/cloud/ ~/cloud-lib
      1. I prefer to move, rather than delete, in case something goes wrong and you wish to restore the files.

    When you remove cloud-init following those steps, your machine stops booting and there is apparently a service that is waiting for network to be up. This would normally be just an inconvenience, but the boot hangs indefinitely waiting for said network. Odd choice of configuration out of the box, but anyway, you can fix this by:

    1. List the services which depend on network being online.
      • sudo systemctl show -p WantedBy network-online.target
    2. This will list the culprits as some iscsi services that you probably don’t need.
    3. Disable the services and remove the open-iscsi package
      • systemctl disable <service name>
      • apt remove open-iscsi

    That should do to get the system booting without some service waiting endlessly for a network connection.

  • 相关阅读:
    Maven仓库是什么
    Maven的工程类型有哪些?
    什么是Maven?
    MyBatis 与 Hibernate 有哪些不同?
    MySQL里有2000w数据,redis中只存20w的数据,如何保证redis中的数据都是热点数据?
    使用过Redis做异步队列么,你是怎么用的?
    我们怎样才能在动作类中获得Servlet API请求,响应,HttpSession等对象?
    forward 和redirect的区别 ?
    你所知道的微服务技术栈有哪些?请列举一二
    SpringMVC流程?
  • 原文地址:https://www.cnblogs.com/fenle/p/10571001.html
Copyright © 2011-2022 走看看