我正在尝试使用本指南中的代码运行 gnome 扩展 https://gjs.guide/extensions/upgrading/legacy-documentation.html#extensionUbuntu 22.04、GNOME 42.9、waylandcontents 扩展...
我正在尝试使用本指南中的代码运行 gnome 扩展 https://gjs.guide/extensions/upgrading/legacy-documentation.html#extension Ubuntu 22.04、GNOME 42.9、wayland
extension.js 的内容(从上面的链接复制):
const St = imports.gi.St;
const ExtensionUtils = imports.misc.extensionUtils;
const Me = ExtensionUtils.getCurrentExtension();
const Main = imports.ui.main;
const PanelMenu = imports.ui.panelMenu;
const {
gettext: _,
} = ExtensionUtils;
class Extension {
enable() {
// Create a panel button
this._indicator = new PanelMenu.Button(0.0, Me.metadata.name, false);
// Add an icon
const icon = new St.Icon({
icon_name: 'face-laugh-symbolic',
style_class: 'system-status-icon',
});
this._indicator.add_child(icon);
// Add the indicator to the panel
Main.panel.addToStatusArea(Me.metadata.uuid, this._indicator);
// Add a menu item to open the preferences window
this._indicator.menu.addAction(_('Preferences'),
() => ExtensionUtils.openPrefs());
this._count = 0;
}
disable() {
if (this._indicator) {
this._indicator.destroy();
this._indicator = null;
}
}
}
function init() {
ExtensionUtils.initTranslations();
return new Extension();
}
metadata.json的内容:
{
"uuid": "[email protected]",
"name": "Example Extension",
"description": "An example extension",
"shell-version": [ "42.9" ],
"url": "https://gjs.guide/extensions"
}
错误:
按照以下步骤 https://github.com/google/android-cuttlefish/blob/main/docker/README.md 构建 Docker 镜像以在 Ubuntu 23.10 主机上运行 Cuttlefish 会产生以下输出和
按照以下步骤 https://github.com/google/android-cuttlefish/blob/main/docker/README.md 构建 Docker 镜像以在 Ubuntu 23.10 主机上运行 Cuttlefish,运行后会出现以下输出和错误 ./build.sh
:
###
### Building docker image
###
[+] Building 53.1s (13/20) docker:default
=> [internal] load build definition from Dockerfile 0.0s
=> => transferring dockerfile: 4.37kB 0.0s
=> [internal] load metadata for docker.io/library/debian:stable-20211011 0.2s
=> [internal] load .dockerignore 0.0s
=> => transferring context: 2B 0.0s
=> [cuttlefish-softgpu 1/16] FROM docker.io/library/debian:stable-20211011@sha256:9de81807d160cd87c476ffe90215d85478d1d2e2c1d4973b54d993a34d3986de 0.0s
=> [internal] load build context 0.0s
=> => transferring context: 89B 0.0s
=> CACHED [cuttlefish-softgpu 2/16] WORKDIR /root 0.0s
=> [cuttlefish-softgpu 3/16] RUN set -x 0.5s
=> [cuttlefish-softgpu 4/16] RUN apt-get update && apt-get install --no-install-recommends -y systemd && apt-get clean && rm -rf /var/lib 7.6s
=> [cuttlefish-softgpu 5/16] RUN rm -f /lib/systemd/system/multi-user.target.wants/* /etc/systemd/system/*.wants/* /lib/systemd/system/local- 0.3s
=> [cuttlefish-softgpu 6/16] RUN apt-get update && apt-get install --no-install-recommends -y apt-utils sudo vim gawk coreutils openssh-s 43.6s
=> [cuttlefish-softgpu 7/16] RUN if test $(uname -m) == aarch64; then dpkg --add-architecture amd64 && apt-get update && apt-get insta 0.2s
=> [cuttlefish-softgpu 8/16] COPY ./out/*.deb ./android-cuttlefish/out/ 0.2s
=> ERROR [cuttlefish-softgpu 9/16] RUN cd /root/android-cuttlefish/out && apt-get install --no-install-recommends -y -f ./cuttlefish-base_*.deb 0.5s
------
> [cuttlefish-softgpu 9/16] RUN cd /root/android-cuttlefish/out && apt-get install --no-install-recommends -y -f ./cuttlefish-base_*.deb && apt-get install --no-install-recommends -y -f ./cuttlefish-user_*.deb && apt-get install --no-install-recommends -y -f ./cuttlefish-common_*.deb && apt-get install --no-install-recommends -y -f ./cuttlefish-orchestration_*.deb && rm -rvf ./cuttlefish-base_*.deb && rm -rvf ./cuttlefish-user_*.deb && rm -rvf ./cuttlefish-common_*.deb && rm -rvf ./cuttlefish-orchestration_*.deb && cd /root:
0.260 Reading package lists...
0.497 E: Unsupported file ./cuttlefish-base_*.deb given on commandline
------
Dockerfile:56
--------------------
55 |
56 | >>> RUN cd /root/android-cuttlefish/out \
57 | >>> && apt-get install --no-install-recommends -y -f ./cuttlefish-base_*.deb \
58 | >>> && apt-get install --no-install-recommends -y -f ./cuttlefish-user_*.deb \
59 | >>> && apt-get install --no-install-recommends -y -f ./cuttlefish-common_*.deb \
60 | >>> && apt-get install --no-install-recommends -y -f ./cuttlefish-orchestration_*.deb \
61 | >>> && rm -rvf ./cuttlefish-base_*.deb \
62 | >>> && rm -rvf ./cuttlefish-user_*.deb \
63 | >>> && rm -rvf ./cuttlefish-common_*.deb \
64 | >>> && rm -rvf ./cuttlefish-orchestration_*.deb \
65 | >>> && cd /root
66 |
--------------------
ERROR: failed to solve: process "/bin/bash -c cd /root/android-cuttlefish/out && apt-get install --no-install-recommends -y -f ./cuttlefish-base_*.deb && apt-get install --no-install-recommends -y -f ./cuttlefish-user_*.deb && apt-get install --no-install-recommends -y -f ./cuttlefish-common_*.deb && apt-get install --no-install-recommends -y -f ./cuttlefish-orchestration_*.deb && rm -rvf ./cuttlefish-base_*.deb && rm -rvf ./cuttlefish-user_*.deb && rm -rvf ./cuttlefish-common_*.deb && rm -rvf ./cuttlefish-orchestration_*.deb && cd /root" did not complete successfully: exit code: 100
我尝试使用精确的文件名,但仍然失败,所以这不是通配符的问题。