Skip to content

Instantly share code, notes, and snippets.

@sherylynn
Last active September 29, 2026 01:33
Show Gist options
  • Select an option

  • Save sherylynn/ccb89d422db8b410b4f90368652eacd7 to your computer and use it in GitHub Desktop.

Select an option

Save sherylynn/ccb89d422db8b410b4f90368652eacd7 to your computer and use it in GitHub Desktop.
install 360 in modern ubuntu 360安全卫士

记在ubuntu 18.04 安装 360安全卫士

首先是下载 360安装本体

curl -o 360.deb -l http://down.360safe.com/linuxsafe/deepin64/360safeforcnos-polkit-3.0.0.71-stripped.deb curl -o virus_lib.deb -l http://down.360safe.com/linuxsafe/deepin64/bdviruslibrary-3.0.0.71.deb

360.deb本身是针对deepin开发的,依赖中有,需要解包

sudo dpkg -X 360.deb fakeroot cd fakeroot sudo dpkg -e ../360.deb

然后

vim DEBIAN/control

删掉 dde-meta-core 依赖 并对 libcurl3添加一个libcurl4依赖 -> libcurl3|libcurl4

安装 libcurl3

由于libcurl4 和libcurl3 不兼容,我们先dpkg -L libcurl3 查看libcurl3安装了什么东西

然后我们把依赖复制到 360 包里

cp /usr/lib/x86_64-linux-gnu/libcurl.so.4.5.0 fakeroot/opt/360safeforcnos/lib/

然后我们重新安装回libcurl4 [此时我们之前安装的libcurl3会被删掉]

sudo apt install curl libcurl4

我们需要360指定加载libcurl3,于是我们查看官方的程序是如何打开的

cat fakeroot/usr/share/applications/start360.desktop

发现官方是使用了/usr/bin/start360

找不到这个文件,但是我们发现opt下的s360safeforcnos效果一致

于是我们在fakeroot/opt/360safefircbis/ 下新建start360.sh,内容为

env LD_PRELOAD=/opt/360safeforcnos/lib/libcurl.so.3 /opt/360safeforcnos/s360safeforcnos

并把start360.desktop中的Exec改为/opt/360safeforcnos/start360.sh 来执行我们自己的start360.sh

至此,对360的修复已经接近完成,我们重新打包 首先删掉md5sums,因为我们已经进行了改动

rm -rf fakeroot/DEBIAN/md5sums

然后打包

sudo dpkg -b fakeroot 360_fix.deb sudo dpkg -i 360_fix.deb

sudo apt install -f 安装依赖

安装病毒库

sudo apt install virus_lib.deb

@englianhu

Copy link
Copy Markdown
englianhu@Scibrokes-Trading:~$ sudo apt-get install 360safeforlinux -y
[sudo] password for englianhu: 
Reading package lists... Done
Building dependency tree       
Reading state information... Done
E: Unable to locate package 360safeforlinux
englianhu@Scibrokes-Trading:~$ curl -o 360.deb -l http://down.360safe.com/linuxsafe/deepin64/360safeforcnos-polkit-3.0.0.71-0stripped.deb
  % Total    % Received % Xferd  Average Speed   Time    Time     Time  Current
                                 Dload  Upload   Total   Spent    Left  Speed
100   162  100   162    0     0    198      0 --:--:-- --:--:-- --:--:--   198
englianhu@Scibrokes-Trading:~$ curl -o virus_lib.deb -l http://down.360safe.com/linuxsafe/deepin64/bdviruslibrary-3.0.0.71.deb
  % Total    % Received % Xferd  Average Speed   Time    Time     Time  Current
                                 Dload  Upload   Total   Spent    Left  Speed
100  124M  100  124M    0     0   881k      0  0:02:25  0:02:25 --:--:-- 2750k
englianhu@Scibrokes-Trading:~$ sudo dpkg -X 360.deb fakeroot cd fakeroot sudo dpkg -e ../360.deb
[sudo] password for englianhu: 
dpkg-deb: error: --vextract takes at most two arguments (.deb and directory)

Type dpkg-deb --help for help about manipulating *.deb files;
Type dpkg --help for help about installing and deinstalling packages.

https://www.zhihu.com/question/27263178 向来使用视窗都挺满意安全卫士,刚使用Linux Ubuntu操作系统,尝试安装下 install 360 in modern ubuntu 360安全卫士,安装失败... 错误信息如上

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment