云网牛站
所在位置:首页 > Linux教程 > 提示/var/lib/lastore/srcipts/build_system_info: not found

提示/var/lib/lastore/srcipts/build_system_info: not found

2021-02-24 15:36:21作者:lehug稿源:深度站

在Deepin 20系统终端中apt install的时候提示有:sh: 1: /var/lib/lastore/srcipts/build_system_info: not found,如果你也有此问题,那在本文中就能解决问题。

 

尝试用sudo apt install --reinstall lastore-daemon

~ sudo apt install --reinstall lastore-daemon

请输入密码

[sudo] lehug 的密码:

验证成功

正在读取软件包列表... 完成

正在分析软件包的依赖关系树

正在读取状态信息... 完成

升级了 0 个软件包,新安装了 0 个软件包,重新安装了 1 个软件包,要卸载 0 个软件包,有 0 个软件包未被升级。

需要下载 7,981 kB 的归档。

解压缩后会消耗 0 B 的额外空间。

获取:1 https://community-packages.deepin.com/deepin apricot/main amd64 lastore-daemon amd64 5.1.30.1-1 [7,981 kB]

已下载 7,981 kB,耗时 4秒 (2,207 kB/s)      

(正在读取数据库 ... 系统当前共安装有 283449 个文件和目录。)

准备解压 .../lastore-daemon_5.1.30.1-1_amd64.deb  ...

正在解压 lastore-daemon (5.1.30.1-1) 并覆盖 (5.1.30.1-1) ...

正在设置 lastore-daemon (5.1.30.1-1) ...

lastore-build-system-info.service is a disabled or a static unit, not starting it.

lastore-daemon.service is a disabled or a static unit, not starting it.

lastore-smartmirror-daemon.service is a disabled or a static unit, not starting it.

正在处理用于 dbus (1.12.20-0+deb10u1+rebuild) 的触发器 ...

sh: 1: /var/lib/lastore/srcipts/build_system_info: not found

注:依然报错not found,刚发现其实有这个文件的时候,依然报这个错误:

-rwxr-xr-x 1 root root  184 1月  28 13:13 build_safecache.sh

-rwxr-xr-x 1 root root 1.9K 1月  28 13:13 build_system_info

 

提供该文件内容

#!/bin/bash

UPDATE_INFO="/var/lib/lastore/update_infos.json"

function prepare()

{

    # The unit is typically launched by apt hooks,

    # so we just directly exit failed when the apt-get is still running, and restart it after 1 seconds.

    if /usr/bin/pgrep apt-get > /dev/null; then

        echo "apt-get is running, please try it later"

        exit 1;

    fi

    if [ "$(/usr/bin/busctl get-property com.deepin.lastore /com/deepin/lastore com.deepin.lastore.Manager SystemOnChanging)" != "b false" ]; then

        echo "system is on changing, please try it later"

        exit -1;

    fi

}

function systemd_build_system_info()

{

    systemctl start lastore-build-system-info.service

}

function build_system_info_now()

{

    /usr/bin/lastore-tools update -j=update_infos -output=$UPDATE_INFO

    /usr/bin/lastore-tools update -j=desktop -o /var/lib/lastore/

    /var/lib/lastore/scripts/build_safecache.sh > /dev/null

}

# If both apt and dpkg hasn't modified after $UPDATE_INFO created, we doesn't need do anything.

if [[ -f "$UPDATE_INFO" ]] &&

       [[ $(find /var/lib/apt/lists -maxdepth 1 -type f -\! -name "lock") != "" ]] &&

       [[ "$UPDATE_INFO" -nt "/var/lib/dpkg/status" ]] &&

       [[ "$UPDATE_INFO" -ot "/proc/self"  ]] &&

       [[ $(find /var/lib/apt/lists -maxdepth 1 -type f -newercm "$UPDATE_INFO" ) == "" ]] ;then

# trigger lastore-daemon update handler

touch "$UPDATE_INFO"

    exit 0

fi

#We should clean the update_infos.json early, otherwise

#actions, like systemctl stop, reboot immediately after apt-get

#would cause the update_infos.json invalid.

[ -f $UPDATE_INFO ] && rm $UPDATE_INFO

case "$1" in

    "-now")

        prepare

        build_system_info_now

        ;;

    *)

        if [[ -S /var/run/systemd/notify ]]; then

            systemd_build_system_info

        else

            build_system_info_now

        fi

        ;;

esac

提示/var/lib/lastore/srcipts/build_system_info: not found

提示/var/lib/lastore/srcipts/build_system_info: not found

 

相关主题

更新Deepin 20系统如果出现404 Not Found错误的处理

精选文章
热门文章