我使用的是 Fedora 39 KDE。我JDownloader2Setup_unix_nojre.sh
从以下位置下载了“ ”文件https://jdownloader.org/jdownloader2。
安装程序不起作用。
./JDownloader2Setup_unix_nojre.sh
Starting Installer ...
Could not display the GUI. This application needs access to an X Server.
*******************************************************************
You can also run this application in unattended mode without
access to an X server by passing the argument -q
*******************************************************************
“目录名称不能包含空格。”错误:
./JDownloader2Setup_unix_nojre.sh -q
Starting Installer ...
The installation directory has been set to /home/user/jd2/JDownloader 2.
The directory name must not contain spaces.
[1/1|Priority: 0]ShutdownController: start item->ShutdownEvent: Save JSonStorages
[1/1|Priority: 0]ShutdownController: item ended after->2
[Done:1/1]
Shutdown Hooks Finished
答案1
我能够让无人值守的安装程序工作(但不是 GUI 模式)。
安装最新的Java
安装JDownloader后,出现“java.lang.UnsatisfiedLinkError:无法加载库:/usr/lib/jvm/java-17-openjdk-17.0.9.0.9-3.fc39.x86_64/lib/libawt_xawt.so” “OpenJDK 17 上出现错误,所以我不得不切换到最新的 OpenJDK 22。
# Install latest OpenJDK.
sudo dnf install java-latest-openjdk-devel.x86_64 java-latest-openjdk.x86_64
# Switch to latest OpenJDK.
sudo alternatives --config java
# Confirm Java version.
java --version
以无人值守模式安装
要使用无人值守模式,您需要创建并提供一个“ response.varfile
”文件。
[已解决] 无人值守新安装程序模式
“ response.varfile
“ 文件:
sys.fileAssociation.launchers$StringArray="26","26","26","26","26"
sys.languageId=en
customTab$Boolean=false
customBasic$Boolean=true
sys.installationDir=/opt/JDownloader
customSearch$Boolean=false
customHomepage$Boolean=false
executeLauncherAction$Boolean=false
sys.fileAssociation.extensions$StringArray="dlc","jdc","ccf","rsdf","metalink"
installFM=skip
设置“ sys.installationDir
”。例如我安装到“ /opt/JDownloader
”。
# Create JDownloader installation directory.
sudo mkdir /opt/JDownloader
sudo chmod 777 /opt/JDownloader
./JDownloader2Setup_unix_nojre.sh -q -varfile "response.varfile"
成功:
Starting Installer ...
The installation directory has been set to /opt/JDownloader.
Import proxyList
null
StepID: CREATE_PACKAGE
StepID: DOWNLOAD
StepID: EXTRACTION
StepID: PREPARE_INSTALL
StepID: PREPARE_INSTALL
StepID: INSTALLING
StepID: INSTALLING
StepID: CLIENT_OPTIONS
StepID: CLEANUP
StepID: CREATE_PACKAGE
StepID: DOWNLOAD
StepID: EXTRACTION
StepID: PREPARE_INSTALL
StepID: PREPARE_INSTALL
StepID: INSTALLING
StepID: INSTALLING
StepID: CLIENT_OPTIONS
StepID: CLEANUP
CustomProxyListPath: /opt/JDownloader/cfg/org.jdownloader.settings.InternetConnectionSettings.customproxylist.json
[1/3|Priority: 0]ShutdownController: start item->ShutdownEvent: SaveAllStorageHandler
[1/3|Priority: 0]ShutdownController: item ended after->0
[Done:1/3]
[2/3|Priority: 0]ShutdownController: start item->ShutdownEvent: ProcessDelayedWrites num=0
[2/3|Priority: 0]ShutdownController: item ended after->0
[Done:2/3]
[3/3|Priority: 0]ShutdownController: start item->ShutdownEvent: Save JSonStorages
[3/3|Priority: 0]ShutdownController: item ended after->1
[Done:3/3]
Shutdown Hooks Finished