[Magisk] spambayes:
Installation failed

Hi,

Magisk v13.3 and Magisk Manager v5.1.1 on Lollipop v5.0.1 on stock Samsung kernel. Busybox is installed.

I am trying the latest Unified Hosts Adblocker v24.0. Installing using Magisk Manager gets a "will be updated next reboot". Installing via TWRP in recovery gets an "Error: 1". In either case, I get "sh: hosts: not found" in a terminal window.

Here is the recovery.log from TWRP:

I:Set page: 'action_complete'
I:operation_end - status=0
I:Set page: 'clear_vars'
I:Set page: 'advanced'
I:Set page: 'main'
I:Set page: 'clear_vars'
I:Set page: 'main2'
I:Set page: 'install'
Truncating string cache entries.
I:Set page: 'flash_confirm'
I:Set page: 'flash_zip'
I:operation_start: 'Flashing'
Installing zip file '/external_sd/Unified_Hosts_Adblock_v2.4.zip'
Checking for MD5 file...
Skipping MD5 check: no MD5 file found
I:Update binary zip
I:Zip does not contain SELinux file_contexts file in its root.
I:Legacy property environment initialized.
Segmentation fault
Archive: /external_sd/Unified_Hosts_Adblock_v2.4.zip
inflating: config.sh
*******************************
Unified Hosts Adblock
(Zackptg5)
*******************************
******************************
Powered by Magisk (@topjohnwu)
******************************
Mounting /system(ro)...
Mounting /vendor(ro)...
- Extracting module files
Archive: /external_sd/Unified_Hosts_Adblock_v2.4.zip
creating: common/
inflating: common/file_contexts_image
inflating: common/post-fs-data.sh
inflating: common/service.sh
inflating: common/system.prop
inflating: config.sh
creating: META-INF/
creating: META-INF/com/
creating: META-INF/com/google/
creating: META-INF/com/google/android/
inflating: META-INF/com/google/android/update-binary
inflating: META-INF/com/google/android/updater-script
inflating: module.prop
inflating: README.md
creating: system/
creating: system/bin/
inflating: system/bin/hosts
inflating: wget
- /data/magisk.img detected!
/tmp/updater: line 169: cut: not found
/tmp/updater: line 169: cut: not found
- Resizing /data/magisk.img to 64M
- Mounting /data/magisk.img to /magisk
- Copying files
mv: invalid option -- P
usage: mv [-fiv] source target
mv [-fiv] source ... directory
mv: /system/bin/cp: terminated with 1 (non-zero) status
- Setting permissions
chown: /magisk/unifiedhostsadblock/system/bin/hosts: No such file or directory
Updater process ended with ERROR: 1
I:Legacy property environment disabled.
I:Install took 3 second(s).
Error installing zip file '/external_sd/Unified_Hosts_Adblock_v2.4.zip'
Updating partition details...
I:Data backup size is 8129MB, free: 765MB.
I:Unable to mount '/usbstorage'
I:Actual block device: '', current file system: 'vfat'
...done
I:Set page: 'flash_done'
I:operation_end - status=1
I:Set page: 'clear_vars'
I:Set page: 'install'
I:Set page: 'main'
I:Set page: 'clear_vars'
I:Set page: 'main2'
I:Set page: 'advanced'
I:Set page: 'copylog'
I:Set page: 'action_page'
I:operation_start: 'Copy Log'
I:Copying file /tmp/recovery.log to /external_sd/recovery.log

Can anyone help?

Thanks.

---------- Post added at 01:58 PM ---------- Previous post was at 01:45 PM ----------

Update to my previous post.

Just tried installing the latest v25.0 of Unified Hosts Adblocker via TWRP. Still getting a failed installation.

Recovery log follows:

I:Set page: 'flash_confirm'
I:Set page: 'flash_zip'
I:operation_start: 'Flashing'
Installing zip file '/external_sd/Unified_Hosts_Adblock_v2.5.zip'
Checking for MD5 file...
Skipping MD5 check: no MD5 file found
I:Update binary zip
I:Zip does not contain SELinux file_contexts file in its root.
I:Legacy property environment initialized.
Segmentation fault
Archive: /external_sd/Unified_Hosts_Adblock_v2.5.zip
inflating: config.sh
*******************************
Unified Hosts Adblock
(Zackptg5)
*******************************
******************************
Powered by Magisk (@topjohnwu)
******************************
Mounting /system(ro)...
Mounting /vendor(ro)...
- Extracting module files
Archive: /external_sd/Unified_Hosts_Adblock_v2.5.zip
creating: common/
inflating: common/system.prop
inflating: common/post-fs-data.sh
inflating: common/service.sh
inflating: common/file_contexts_image
creating: META-INF/
creating: META-INF/com/
creating: META-INF/com/google/
creating: META-INF/com/google/android/
inflating: META-INF/com/google/android/updater-script
inflating: META-INF/com/google/android/update-binary
creating: system/
creating: system/bin/
inflating: system/bin/hosts
inflating: config.sh
inflating: module.prop
inflating: README.md
inflating: wget
- /data/magisk.img detected!
/tmp/updater: line 172: cut: not found
/tmp/updater: line 172: cut: not found
- Resizing /data/magisk.img to 64M
- Mounting /data/magisk.img to /magisk
- Copying files
mv: invalid option -- P
usage: mv [-fiv] source target
mv [-fiv] source ... directory
mv: /system/bin/cp: terminated with 1 (non-zero) status
- Setting permissions
chown: /magisk/unifiedhostsadblock/system/bin/hosts: No such file or directory
Updater process ended with ERROR: 1
I:Legacy property environment disabled.
I:Install took 2 second(s).
Error installing zip file '/external_sd/Unified_Hosts_Adblock_v2.5.zip'
Updating partition details...
I:Data backup size is 8168MB, free: 723MB.
I:Unable to mount '/usbstorage'
I:Actual block device: '', current file system: 'vfat'
...done
I:Set page: 'flash_done'
I:operation_end - status=1
I:Set page: 'clear_vars'
I:Set page: 'install'
I:Set page: 'main'
I:Set page: 'clear_vars'
I:Set page: 'main2'
I:Set page: 'advanced'
I:Set page: 'copylog'
I:Set page: 'action_page'
I:operation_start: 'Copy Log'
I:Copying file /tmp/recovery.log to /external_sd/recovery.log