我正在尝试自动化一个需要从文件中检索依赖项列表的构建过程,然后将这些依赖项编成一个命令。我有一个循环来自动下载我正在构建的包,但是我需要读取一个文件并获得一个依赖项列表。我想做的是:
cd ${pkg}
then read this line from a file called PKGBUILD: depends=('dep1' 'dep2')
paru -S dep1 dep2
有办法这样做吗?我刚开始使用bash,但我已经(复制)了这段代码:这段代码的问题是它不像AUR中那样检索一些依赖项,所以makepkg不会自动检索它们。
build_pkgs ()
系统位于意大利,执行date会给出Fri 7 Aug 16:15:56 CEST 2020,而实际时间是14:21:09。
执行timedatectl status提供:
Local time: Fri 2020-08-07 16:15:56 CEST
Universal time: Fri 2020-08-07 14:15:56 UTC
RTC time: Fri 2020-08-07 14:15:57
Time zone: Europe/Rome (CEST,
过去的三天,我经历了随机的冰冻。如果我看到youtube,当这种情况发生时,音频继续播放,但屏幕是冻结的,键盘或光标不做任何事情。
我试着在sudo journalctl中寻找,这就是我发现的:
led 04 10:44:02 arch-thinkpad kernel: i915 0000:00:02.0: [drm] *ERROR* Atomic update failure on pipe C (start=113031 end=113032) time 340 us, min 1073, max 1079, scanline start 1062, end 1085
led 04 11:
我需要用GPGME错误来解决这个问题。我不能升级或安装任何东西。这就是我在航站楼得到的信息:
sudo pacman -Syyu
error: GPGME error: No data
error: GPGME error: No data
error: GPGME error: No data
:: Synchronizing package databases...
core 1424.0 B 0.00B/s 00:00 [######################] 100%
core.sig 1424.0
#! /bin/bash
# Read battery percentage value
OUT=`upower -i /org/freedesktop/UPower/devices/battery_BAT1 | grep percentage`
# Select only the int value
IFS=':' read -ra P <<< "$OUT"
PERCENTAGE="%"
BATTERY_VALUE=${P[1]%$PERCENTAGE}
# Send a notification if battery
我正在运行bash脚本:
#!/bin/bash
touch archlinux_log.txt
touch packages_not_in_archlinux.txt
while read line; do
if pacman -Q --info $line ; then
pacman -Q --info $line >> archlinux_log.txt
else
echo "No Package info for $line"
$line >> packages_not_in_ar
操作系统运行的是ArchLinux86-64。我试图通过tomcat7.service启动systemctl start tomcat7.service,但是它会引发一条错误消息:
Job for tomcat7.service failed because the control process exited with error code.
See "systemctl status tomcat7.service" and "journalctl -xe" for details.
当我执行systemctl status tomcat7.service时