Cockpit 在 Ubuntu 中管理网络和更新

问题描述

无论我找到并阅读了多少关于在 Ubuntu 上安装和使用 Cockpit 的文章,但我无法同时管理网络和更新。当我想管理网络时,我必须启动并运行 NetworkManager 服务,否则我只能在“网络”选项卡中看到空白的白色屏幕。但是,当 NetworkManager 服务启动并运行时,我无法管理更新(收到“离线时无法刷新缓存”错误消息)。请问有人有解决这种奇怪行为的方法吗?

解决方法

这对我有用。

<?php
    $main_group_field = get_field('GROUP-FIELD-NAME');

    // Group's field returs array. So can fetch subfields like this.
    $quantity = $main_group_field['quantity'];
    $ean = $main_group_field['ean'];
    $linkap = $main_group_field['linkap'];
?>

参考https://github.com/cockpit-project/cockpit/issues/8477#issuecomment-737046753

相关问答

错误1:Request method ‘DELETE‘ not supported 错误还原:...
错误1:启动docker镜像时报错:Error response from daemon:...
错误1:private field ‘xxx‘ is never assigned 按Alt...
报错如下,通过源不能下载,最后警告pip需升级版本 Requirem...