Software-Installation

無法在 Kali 上安裝 Timeshift

  • November 9, 2021

我一直在嘗試從我從 github 複製的目錄安裝 time shift。

我執行了以下命令:

光碟源;進行安裝

然後我單獨跑:

sudo 全部

在這兩種情況下得到以下結果:

makefile:4: *** No msgmerge found, install it.  Stop.

然後我嘗試了命令:

sudo 全部

並得到以下輸出:

cd src; make all
make[1]: Entering directory '/home/omair/timeshift/src'
makefile:4: *** No msgmerge found, install it.  Stop.
make[1]: Leaving directory '/home/omair/timeshift/src'
make: *** [makefile:2: all] Error 2

經過一番Google搜尋後,我按照線上論壇的建議安裝了 gettext:

sudo apt install gettext

之後我再次嘗試:

sudo 全部

結果:

cd src; make all
make[1]: Entering directory '/home/omair/timeshift/src'
makefile:4: *** No valac found, install it.  Stop.
make[1]: Leaving directory '/home/omair/timeshift/src'
make: *** [makefile:2: all] Error 2

再次Google搜尋後,我跑了:

sudo apt-get install libval​​a-dev

之後我發出命令,我又跑了一次:

sudo make all

結果:

cd src; make all
make[1]: Entering directory '/home/omair/timeshift/src'
makefile:4: *** No valac found, install it.  Stop.
make[1]: Leaving directory '/home/omair/timeshift/src'
make: *** [makefile:2: all] Error 2

sudo apt-get install valac

然後我跑了:

sudo 全部

結果是:

cd src; make all
make[1]: Entering directory '/home/omair/timeshift/src'
Package vte-2.91 was not found in the pkg-config search path.
Perhaps you should add the directory containing `vte-2.91.pc'
to the PKG_CONFIG_PATH environment variable
No package 'vte-2.91' found
/bin/bash: line 0: test: -lt: unary operator expected
Package gtk+-3.0 was not found in the pkg-config search path.
Perhaps you should add the directory containing `gtk+-3.0.pc'
to the PKG_CONFIG_PATH environment variable
No package 'gtk+-3.0' found
/bin/bash: line 0: test: -gt: unary operator expected
#timeshift-gtk
valac -X -D'GETTEXT_PACKAGE="timeshift"' \
       --Xcc="-lm" --Xcc="-O3" -D VTE_291   \
       Core/*.vala Gtk/*.vala Utility/*.vala Utility/Gtk/*.vala \
       -o timeshift-gtk \
       --pkg glib-2.0 --pkg gio-unix-2.0 --pkg posix \
       --pkg gee-0.8 --pkg json-glib-1.0 \
       --pkg gtk+-3.0 --pkg vte-2.91 
error: Package `gee-0.8' not found in specified Vala API directories or GObject-Introspection GIR directories
error: Package `vte-2.91' not found in specified Vala API directories or GObject-Introspection GIR directories
Compilation failed: 2 error(s), 0 warning(s)
make[1]: *** [makefile:52: app-gtk] Error 1
make[1]: Leaving directory '/home/omair/timeshift/src'
make: *** [makefile:2: all] Error 2

我正處於放棄這裡的邊緣。

**編輯:**安裝 libgtk2.0-dev 後我也嘗試過:

sudo apt-get install libgtk2.0-dev

也試過:

安裝依賴項

sudo apt install -y g++ libgtk-3-dev gtk-doc-tools gnutls-bin \
   valac intltool libpcre2-dev libglib3.0-cil-dev libgnutls28-dev \
   libgirepository1.0-dev libxml2-utils gperf build-essential

按照我在某處找到的說明獲取並安裝 vte-ng:

git clone https://github.com/thestinger/vte-ng.git
echo export LIBRARY_PATH="/usr/include/gtk-3.0:$LIBRARY_PATH"
cd vte-ng && ./autogen.sh && make && sudo make install
cd ..

要在 Kali Linux 上安裝Timeshift,您只需從儲存庫下載它。

使用刪除您自己安裝的版本apt purge timeshift

如果您能夠從原始碼安裝軟體包,則可以執行timeshift-uninstall以刪除該軟體。我還建議您清理包含原始碼和二進製文件的目錄,以確認它已從您的系統中刪除。

確認您的 Kali Linux/etc/apt/sources.list僅包含以下內容:

deb http://http.kali.org/kali kali-rolling main non-free contrib 

正如官方 Kali Linux 文件中所指出的,您可以執行以下命令來確認是這種情況:

grep -v '#' /etc/apt/sources.list | sort -u  

此外,您應該沒有任何東西在裡面/etc/apt/sources.list.d

apt update使用和更新您的系統apt upgrade

然後使用apt install timeshift.

現在將使用您的包管理器安裝和管理 Timeshift。在基於 Debian 的系統上,這是保持軟體包和系統高度兼容性並防止任何軟體包不匹配或FrankenDebian類型問題的最簡單方法。

Kali Linux 是一個滾動發行版,因此如果前沿的上游軟體包和庫引入系統不穩定或其他問題,請不要感到驚訝。它主要設計為一次性滲透測試發行版,預裝了最常見的安全工具。

祝你好運!

引用自:https://unix.stackexchange.com/questions/587654