mirror of
https://github.com/whyour/qinglong.git
synced 2026-08-12 03:10:48 +08:00
修改 apt 命令
This commit is contained in:
@@ -60,19 +60,19 @@ export const LINUX_DEPENDENCE_COMMAND: Record<
|
||||
}
|
||||
> = {
|
||||
Debian: {
|
||||
install: 'apt install -y',
|
||||
uninstall: 'apt remove -y',
|
||||
info: 'apt info',
|
||||
install: 'apt-get install -y',
|
||||
uninstall: 'apt-get remove -y',
|
||||
info: 'dpkg-query -s',
|
||||
check(info: string) {
|
||||
return info.includes('apt-manual-installed');
|
||||
return info.includes('install ok installed');
|
||||
},
|
||||
},
|
||||
Ubuntu: {
|
||||
install: 'apt install -y',
|
||||
uninstall: 'apt remove -y',
|
||||
info: 'apt info',
|
||||
install: 'apt-get install -y',
|
||||
uninstall: 'apt-get remove -y',
|
||||
info: 'dpkg-query -s',
|
||||
check(info: string) {
|
||||
return info.includes('apt-manual-installed');
|
||||
return info.includes('install ok installed');
|
||||
},
|
||||
},
|
||||
Alpine: {
|
||||
|
||||
+2
-2
@@ -691,7 +691,7 @@ async function _updateLinuxMirror(
|
||||
currentDomainWithScheme,
|
||||
mirrorDomainWithScheme || 'http://deb.debian.org',
|
||||
);
|
||||
return 'apt update';
|
||||
return 'apt-get update';
|
||||
} else {
|
||||
throw Error(`Current mirror domain not found.`);
|
||||
}
|
||||
@@ -704,7 +704,7 @@ async function _updateLinuxMirror(
|
||||
currentDomainWithScheme,
|
||||
mirrorDomainWithScheme || 'http://archive.ubuntu.com',
|
||||
);
|
||||
return 'apt update';
|
||||
return 'apt-get update';
|
||||
} else {
|
||||
throw Error(`Current mirror domain not found.`);
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user