小编Nic*_*lla的帖子

Pacman 在 Docker 镜像中不起作用

我需要运行 Arch Linux 容器,但我无法在其上安装任何东西:

当我尝试跑步时 pacman -Syyu --noconfirm

error: failed to initialize alpm library
(could not find or read directory: /var/lib/pacman/)
Run Code Online (Sandbox Code Playgroud)

按照那个线程

我跑了

pacman-db-upgrade
Run Code Online (Sandbox Code Playgroud)

但这也失败了:

==> ERROR: You must have correct permissions to upgrade the database.
Run Code Online (Sandbox Code Playgroud)

这个容器是一个archlinux:latest基于vanilla的容器docker run -it archlinux

arch-linux docker

8
推荐指数
2
解决办法
2485
查看次数

笔记本电脑上的 PowerShell 运行速度极慢

我们有一组运行 Windows 11 的ThinkPad X1,它们在使用 PowerShell(确切地说是 .NET Core 7.2.2)时表现出相同的症状。

配置文件加载非常慢(Chocolatey 的模块显示加载时间超过 2000 毫秒,并且已验证 Chocolatey 不是问题所在)和整体响应速度(例如命令完成和 shell 再次准备就绪之间至少需要一秒钟)。

除了(不相关?)智能卡错误(这没有多大意义,因为除了 4G-LTE 调制解调器之外,这些机器上没有卡设备),事件查看器为空。

Smart Card Reader 'Microsoft UICC ISO Reader 89946827 1' rejected IOCTL TRANSMIT: Access is denied.  If this error persists, your smart card or reader may not be functioning correctly.

Command Header: 00 a4 04 00
Run Code Online (Sandbox Code Playgroud)

启动它并-NoProfile没有改变任何东西,重新安装 PowerShell Core 也没有改变。研究错误也没有给出答案。

有没有办法让PowerShell恢复正常速度?

windows powershell laptop

5
推荐指数
1
解决办法
1580
查看次数

标签 统计

arch-linux ×1

docker ×1

laptop ×1

powershell ×1

windows ×1