AskOverflow.Dev

AskOverflow.Dev Logo AskOverflow.Dev Logo

AskOverflow.Dev Navigation

  • 主页
  • 系统&网络
  • Ubuntu
  • Unix
  • DBA
  • Computer
  • Coding
  • LangChain

Mobile menu

Close
  • 主页
  • 系统&网络
    • 最新
    • 热门
    • 标签
  • Ubuntu
    • 最新
    • 热门
    • 标签
  • Unix
    • 最新
    • 标签
  • DBA
    • 最新
    • 标签
  • Computer
    • 最新
    • 标签
  • Coding
    • 最新
    • 标签
主页 / computer / 问题

问题[alpine-linux](computer)

Martin Hope
Jinja_dude
Asked: 2021-03-09 01:11:11 +0800 CST

在 Alpine linux 上运行 ARA 服务器时出错

  • 5

我正在尝试在 alpine Linux 上安装最新版本的 Ansible 记录分析器服务器我确保所有要求都已安装好(Django、GCC、python3、Pypi、ansible)安装顺利,除了关于缺少的警告我修复的 PATH 变量上的根 PATH :警告:

  WARNING: The script pbr is installed in '/root/.local/bin' which is not on PATH.
  Consider adding this directory to PATH or, if you prefer to suppress this warning, use --no-warn-script-location.

修复:

~ # export PATH=/root/.local/bin:$PATH

因此,按照打算运行服务器的此步骤的安装指南,我遇到了大量错误,就好像运行命令没有找到要执行的所需组件一样,尽管我确信所有组件都已安装:

~ # ara-manage runserver
[ara] No setting found for SECRET_KEY. Generating a random key...
Traceback (most recent call last):
  File "/root/.local/bin/ara-manage", line 8, in <module>
    sys.exit(main())
  File "/root/.local/lib/python3.8/site-packages/ara/server/__main__.py", line 41, in main
    if not os.path.exists(settings.ARA_SETTINGS):
  File "/root/.local/lib/python3.8/site-packages/django/conf/__init__.py", line 79, in __getattr__
    self._setup(name)
  File "/root/.local/lib/python3.8/site-packages/django/conf/__init__.py", line 66, in _setup
    self._wrapped = Settings(settings_module)
  File "/root/.local/lib/python3.8/site-packages/django/conf/__init__.py", line 157, in __init__
    mod = importlib.import_module(self.SETTINGS_MODULE)
  File "/usr/lib/python3.8/importlib/__init__.py", line 127, in import_module
    return _bootstrap._gcd_import(name[level:], package, level)
  File "<frozen importlib._bootstrap>", line 1014, in _gcd_import
  File "<frozen importlib._bootstrap>", line 991, in _find_and_load
  File "<frozen importlib._bootstrap>", line 975, in _find_and_load_unlocked
  File "<frozen importlib._bootstrap>", line 671, in _load_unlocked
  File "<frozen importlib._bootstrap_external>", line 783, in exec_module
  File "<frozen importlib._bootstrap>", line 219, in _call_with_frames_removed
  File "/root/.local/lib/python3.8/site-packages/ara/server/settings.py", line 263, in <module>
    ALLOWED_HOSTS=ALLOWED_HOSTS.to_list(),
AttributeError: 'list' object has no attribute 'to_list'

这种行为背后的原因可能是什么?

ansible alpine-linux
  • 1 个回答
  • 34 Views
Martin Hope
ffuentes
Asked: 2020-12-23 09:35:18 +0800 CST

Alpine Linux:重新定位 libsudo_util.so.0 时出错(sudo 不起作用)

  • 5

我安装 sudo 是为了不必一直使用 root 但在设置之后。

 Error relocating libsudo_util.so.0: reallocarray: symbol not found

我检查了 /usr/lib/sudo 但所有文件和符号链接似乎都在他们的位置。

我遵循了这两个 教程,但显然这只是文件的错误。发行版提供的软件包不起作用是非常不寻常的。

sudo alpine-linux
  • 1 个回答
  • 852 Views
Martin Hope
Wlad
Asked: 2020-09-10 02:23:16 +0800 CST

如何在 Alpine linux 上安装 screenfetch?

  • 5

我想在 Alpine Linux 上安装 screenfetch。

我能找到的只是谷歌上的一个死链接:

https://pkgs.alpinelinux.org/package/edge/testing/x86_64/screenfetch-doc

alpine-linux
  • 1 个回答
  • 549 Views
Martin Hope
Compile Commit
Asked: 2020-06-09 07:57:10 +0800 CST

在 alpine 上安装 forticlient

  • 5

如何在 alpine linux 上安装 forticlient VPN?

如果不可能,我可以在其中安装 forticlient 的最小 Linux 发行版是什么?我将使用它作为 docker 图像,因此试图最小化大小。

docker alpine-linux
  • 1 个回答
  • 556 Views
Martin Hope
Maxim
Asked: 2019-09-06 12:50:30 +0800 CST

如何在 Alpine Linux 上设置主目录?

  • 6

在大多数 Linux 上,通常会使用usermod,但 Alpine 似乎没有,是否有其他方法可以在 Alpine 上设置主目录?

alpine-linux user-profiles
  • 1 个回答
  • 3297 Views
Martin Hope
William Overton
Asked: 2019-08-18 10:46:45 +0800 CST

以易于解析的格式打印已安装的 Alpine 软件包列表

  • 11

我正在尝试以易于处理的格式获取已安装软件包的列表,以便自动工具进行解析。

我可以得到这个输出:

/ # apk list -i
WARNING: Ignoring APKINDEX.00740ba1.tar.gz: No such file or directory
WARNING: Ignoring APKINDEX.d8b2a6f4.tar.gz: No such file or directory
musl-1.1.22-r2 x86_64 {musl} (MIT) [installed]
zlib-1.2.11-r1 x86_64 {zlib} (zlib) [installed]
apk-tools-2.10.4-r2 x86_64 {apk-tools} (GPL2) [installed]
musl-utils-1.1.22-r2 x86_64 {musl} (MIT BSD GPL2+) [installed]
libssl1.1-1.1.1c-r0 x86_64 {openssl} (OpenSSL) [installed]
alpine-baselayout-3.1.2-r0 x86_64 {alpine-baselayout} (GPL-2.0-only) [installed]
alpine-keys-2.1-r2 x86_64 {alpine-keys} (MIT) [installed]
busybox-1.30.1-r2 x86_64 {busybox} (GPL-2.0) [installed]
scanelf-1.2.3-r0 x86_64 {pax-utils} (GPL-2.0) [installed]
libc-utils-0.7.1-r0 x86_64 {libc-dev} (BSD) [installed]
libtls-standalone-2.9.1-r0 x86_64 {libtls-standalone} (ISC) [installed]
ssl_client-1.30.1-r2 x86_64 {busybox} (GPL-2.0) [installed]
ca-certificates-cacert-20190108-r0 x86_64 {ca-certificates} (MPL-2.0 GPL-2.0-or-later) [installed] 
libcrypto1.1-1.1.1c-r0 x86_64 {openssl} (OpenSSL) [installed]

但是,包名称可以包含连字符,版本由连字符分隔,这使得无法可靠地解析此结果。

有没有办法以更易于解析的格式获取此信息?JSON 会很棒,但一个简单的制表符分隔表就可以了。

谢谢!

linux alpine-linux
  • 1 个回答
  • 3745 Views
Martin Hope
wataash
Asked: 2019-06-27 02:42:31 +0800 CST

安装Alpine Linux 扫描镜像列表失败“403 Forbidden”

  • 7

我正在尝试安装在 QEMU 上运行的 Alpine Linux,但出现以下错误(我将错误消息标记为<===):

localhost:~# setup-alpine
Available keyboard layouts:
...
Which timezone are you in? ('?' for list) [UTC]
 * Starting busybox acpid ...
 [ ok ]
 * Starting busybox crond ...
 [ ok ]
HTTP/FTP proxy URL? (e.g. 'http://proxy:8080', or 'none') [none] http://192.0.2.1:8080
wget: server returned error: HTTP/1.0 403 Forbidden                     <===
r) Add random from the above list
f) Detect and add fastest mirror from above list
e) Edit /etc/apk/repositories with text editor

Enter mirror number (1-0) or URL to add (or r/f/e/done) [f]: f
Finding fastest mirror...
Warning! No mirror found                                                <===
r) Add random from the above list
f) Detect and add fastest mirror from above list
e) Edit /etc/apk/repositories with text editor

Enter mirror number (1-0) or URL to add (or r/f/e/done) [f]: r
/sbin/setup-apkrepos: line 30: divide by zero                           <===
Which SSH server? ('openssh', 'dropbear' or 'none') [openssh]
 * service sshd added to runlevel default
 * Caching service dependencies ...
 [ ok ]
ssh-keygen: generating new host keys: RSA DSA ECDSA ED25519
 * Starting sshd ...
 [ ok ]
Available disks are:
  sda   (107.4 GB ATA      QEMU HARDDISK   )
Which disk(s) would you like to use? (or '?' for help or 'none') [none] sda
The following disk is selected:
  sda   (107.4 GB ATA      QEMU HARDDISK   )
How would you like to use it? ('sys', 'data', 'lvm' or '?' for help) [?] sys
ERROR: unsatisfiable constraints:                                       <===
  sfdisk (missing):                                                     <===
    required by: world[sfdisk]                                          <===
  syslinux (missing):                                                   <===
    required by: world[syslinux]                                        <===
localhost:~#

看到/sbin/setup-apkrepos:30(对应这里)和grep -rn wget /sbin/,发现我办公室的代理服务器(http://192.0.2.1:8080)403 Forbidden 在请求镜像列表时返回:

localhost:~# export http_proxy=http://192.0.2.1:8080; export https_proxy=http://192.0.2.1:8080; export ftp_proxy=http://192.0.2.1:8080
localhost:~# wget https://mirrors.alpinelinux.org/mirrors.txt
Connecting to 192.0.2.1:8080 (192.0.2.1:8080)
wget: server returned error: HTTP/1.0 403 Forbidden
localhost:~#

虽然我不是代理服务器的管理员,但有什么解决方法吗?

alpine-linux
  • 1 个回答
  • 3131 Views

Sidebar

Stats

  • 问题 205573
  • 回答 270741
  • 最佳答案 135370
  • 用户 68524
  • 热门
  • 回答
  • Marko Smith

    如何减少“vmmem”进程的消耗?

    • 11 个回答
  • Marko Smith

    从 Microsoft Stream 下载视频

    • 4 个回答
  • Marko Smith

    Google Chrome DevTools 无法解析 SourceMap:chrome-extension

    • 6 个回答
  • Marko Smith

    Windows 照片查看器因为内存不足而无法运行?

    • 5 个回答
  • Marko Smith

    支持结束后如何激活 WindowsXP?

    • 6 个回答
  • Marko Smith

    远程桌面间歇性冻结

    • 7 个回答
  • Marko Smith

    子网掩码 /32 是什么意思?

    • 6 个回答
  • Marko Smith

    鼠标指针在 Windows 中按下的箭头键上移动?

    • 1 个回答
  • Marko Smith

    VirtualBox 无法以 VERR_NEM_VM_CREATE_FAILED 启动

    • 8 个回答
  • Marko Smith

    应用程序不会出现在 MacBook 的摄像头和麦克风隐私设置中

    • 5 个回答
  • Martin Hope
    Vickel Firefox 不再允许粘贴到 WhatsApp 网页中? 2023-08-18 05:04:35 +0800 CST
  • Martin Hope
    Saaru Lindestøkke 为什么使用 Python 的 tar 库时 tar.xz 文件比 macOS tar 小 15 倍? 2021-03-14 09:37:48 +0800 CST
  • Martin Hope
    CiaranWelsh 如何减少“vmmem”进程的消耗? 2020-06-10 02:06:58 +0800 CST
  • Martin Hope
    Jim Windows 10 搜索未加载,显示空白窗口 2020-02-06 03:28:26 +0800 CST
  • Martin Hope
    andre_ss6 远程桌面间歇性冻结 2019-09-11 12:56:40 +0800 CST
  • Martin Hope
    Riley Carney 为什么在 URL 后面加一个点会删除登录信息? 2019-08-06 10:59:24 +0800 CST
  • Martin Hope
    zdimension 鼠标指针在 Windows 中按下的箭头键上移动? 2019-08-04 06:39:57 +0800 CST
  • Martin Hope
    jonsca 我所有的 Firefox 附加组件突然被禁用了,我该如何重新启用它们? 2019-05-04 17:58:52 +0800 CST
  • Martin Hope
    MCK 是否可以使用文本创建二维码? 2019-04-02 06:32:14 +0800 CST
  • Martin Hope
    SoniEx2 更改 git init 默认分支名称 2019-04-01 06:16:56 +0800 CST

热门标签

windows-10 linux windows microsoft-excel networking ubuntu worksheet-function bash command-line hard-drive

Explore

  • 主页
  • 问题
    • 最新
    • 热门
  • 标签
  • 帮助

Footer

AskOverflow.Dev

关于我们

  • 关于我们
  • 联系我们

Legal Stuff

  • Privacy Policy

Language

  • Pt
  • Server
  • Unix

© 2023 AskOverflow.DEV All Rights Reserve