[General Questions and Answers] Akatsubaki:
Hi everyone,

I hope this is still the appropiate thread for my problem^^"

I am starting to write edify scripts. Currently, I am struggling with the creation of the flashable zip. The script is a simple debloating script for my Sony Xperia Z3 Compact. When I flash the zip file via TWRP, I get those red lines:

Updater process ended with ERROR:6

Error installing zip file 'path of the zip file'

I tried to look it up. But I only get the suggestion that I have to pack the zip file using 7zip which I already did.

Here is the code of the updater-script:

ui_print("Debloat Script for Marschmallow by Steven Van");
run_program("/sbin/busybox", "mount", "/system");
delete_recursive("/system/vendor/overlay");
delete_recursive("/system/vendor/app");
delete_recursive("/system/etc/costumization/applications");
delete_recursive("/system/etc/product/applications");
delete_recursive("/system/etc/product/orig.applications");
delete_recursive("/system/etc/product/content");
delete_recursive("/system/tts");
delete_recursive("/system/app/AnonymousData");
delete_recursive("/system/app/AntHalService");
delete_recursive("/system/app/ar-effect");
delete_recursive("/system/app/Backup-Restore");
delete_recursive("/system/app/BasicDreams");
delete_recursive("/system/app/Books");
delete_recursive("/system/app/BookmarkProvider");
delete_recursive("/system/app/BrowserProviderProxy");
delete_recursive("/system/app/Chrome");
delete_recursive("/system/app/CityIdPermission");
delete_recursive("/system/app/ClockWidgets-release");
delete_recursive("/system/app/com.sonyericsson.xhs");
delete_recursive("/system/app/com.sonymobile.xperialounge.services");
delete_recursive("/system/app/cover-widget");
delete_recursive("/system/app/device-monitor");
delete_recursive("/system/app/DeviceConfigTool");
delete_recursive("/system/app/Drive");
delete_recursive("/system/app/DualShockManager");
delete_recursive("/system/app/EditorDocsStub");
delete_recursive("/system/app/enchantedforest-release");
delete_recursive("/system/app/ExaktCalculator");
delete_recursive("/system/app/Exchange3Google");
delete_recursive("/system/app/experienceflow2livewallpaper-release");
delete_recursive("/system/app/ExternalKeyboardJP");
delete_recursive("/system/app/FaceLock");
delete_recursive("/system/app/Galaxy4");
delete_recursive("/system/app/gmail-reader-service");
delete_recursive("/system/app/Gmail2");
delete_recursive("/system/app/GoogleLyricsPlugin");
delete_recursive("/system/app/GoogleTTS");
delete_recursive("/system/app/Hangouts");
delete_recursive("/system/app/HoloSpiralWallpaper");
delete_recursive("/system/app/HTMLViewer");
delete_recursive("/system/app/IddAgent");
delete_recursive("/system/app/Iengine");
delete_recursive("/system/app/ImageEnhancer");
delete_recursive("/system/app/IntelligentBlacklight");
delete_recursive("/system/app/IntelligentObserver");
delete_recursive("/system/app/IntelligentRotation");
delete_recursive("/system/app/IntelligentSettings");
delete_recursive("/system/app/Keepstub");
delete_recursive("/system/app/KerberosService");
delete_recursive("/system/app/Lifelog-googlePreloadLive-release-3.0.P.0.16-6291472");
delete_recursive("/system/app/Lifelog-googlePreloadLive-release-2.8.P.0.18");
delete_recursive("/system/app/LiveWallpapers");
delete_recursive("/system/app/Maps");
delete_recursive("/system/app/Music2");
delete_recursive("/system/app/NewsstandStub");
delete_recursive("/system/app/NewsWeather");
delete_recursive("/system/app/NoiseField");
delete_recursive("/system/app/OmaDownload");
delete_recursive("/system/app/OmaV1AgentDownloadServices");
delete_recursive("/system/app/PartnerBookmarksProvider");
delete_recursive("/system/app/PhaseBeam");
delete_recursive("/system/app/phone-usage");
delete_recursive("/system/app/Photos");
delete_recursive("/system/app/Photoslideshow-release");
delete_recursive("/system/app/PhotoTable");
delete_recursive("/system/app/PhotoWidget-release");
delete_recursive("/system/app/PlayGames");
delete_recursive("/system/app/PlusOne");
delete_recursive("/system/app/PremiumSmsUpdate");
delete_recursive("/system/app/PrintSpooler");
delete_recursive("/system/app/PrototypeProtection");
delete_recursive("/system/app/RecommendationEngineExtension");
delete_recursive("/system/app/RemoteControlService");
delete_recursive("/system/app/RemoteFileAccess");
delete_recursive("/system/app/RemoteStorageService");
delete_recursive("/system/app/SelfPortrait");
delete_recursive("/system/app/SemcAutoPowerOff");
delete_recursive("/system/app/SemcMetadataCleanup");
delete_recursive("/system/app/SemcSimDetection");
delete_recursive("/system/app/SemcWarrantyTime");
delete_recursive("/system/app/SimContacts");
delete_recursive("/system/app/SmallApp-Calculator");
delete_recursive("/system/app/SmallApp-Timer");
delete_recursive("/system/app/SmallAppManagerService");
delete_recursive("/system/app/SmallAppsFramework");
delete_recursive("/system/app/SmallAppsLauncher");
delete_recursive("/system/app/SmallAppsWidget");
delete_recursive("/system/app/sneiaccountmanager");
delete_recursive("/system/app/sociallife");
delete_recursive("/system/app/SomcCameraWidget");
delete_recursive("/system/app/SomcDlna");
delete_recursive("/system/app/SomcEnterpriseInstallationService");
delete_recursive("/system/app/SomcMovieCreatorRmm");
delete_recursive("/system/app/SomcMovieCreatorRmm-release");
delete_recursive("/system/app/SomcPOBox");
delete_recursive("/system/app/SomcSketch-live");
delete_recursive("/system/app/SonyEntrance");
delete_recursive("/system/app/StartupFlagV2");
delete_recursive("/system/app/Stk");
delete_recursive("/system/app/Street");
delete_recursive("/system/app/StyleBlue-release");
delete_recursive("/system/app/StyleBubble-release");
delete_recursive("/system/app/StyleDaily-release");
delete_recursive("/system/app/StylePaint-release");
delete_recursive("/system/app/StyleRed-release");
delete_recursive("/system/app/StyleStar-release");
delete_recursive("/system/app/StyleSunshine-release");
delete_recursive("/system/app/support");
delete_recursive("/system/app/SyncHub-release");
delete_recursive("/system/app/talkback");
delete_recursive("/system/app/Tasks");
delete_recursive("/system/app/textinput-chn");
delete_recursive("/system/app/Theme001-sw360dp-xhdpi-release");
delete_recursive("/system/app/Theme002-sw360dp-xhdpi-release");
delete_recursive("/system/app/Theme003-sw360dp-xhdpi-release");
delete_recursive("/system/app/Theme004-sw360dp-xhdpi-release");
delete_recursive("/system/app/Theme005-sw360dp-xhdpi-release");
delete_recursive("/system/app/Theme006-sw360dp-xhdpi-release");
delete_recursive("/system/app/TopContactsWidget-release");
delete_recursive("/system/app/TouchBlock");
delete_recursive("/system/app/TouchFilterPackageSwitchService");
delete_recursive("/system/app/UnsupportedHeadsetNotifier");
delete_recursive("/system/app/Videos");
delete_recursive("/system/app/VisualiuationWallpapers");
delete_recursive("/system/app/wallpaperpicker-release");
delete_recursive("/system/app/weather-release");
delete_recursive("/system/app/WeatherWidget-release");
delete_recursive("/system/app/white-balance");
delete_recursive("/system/app/Wikipedia-Plugin");
delete_recursive("/system/app/WirelessControllerManagerService");
delete_recursive("/system/app/WorldClockWidget-release");
delete_recursive("/system/app/YouTube");
delete_recursive("/system/app/YouTubeKaraokePlugin");
delete_recursive("/system/app/YouTubePlugin"););
delete_recursive("/system/priv-app/ActiveClipper");
delete_recursive("/system/priv-app/album-albumLive-release");
delete_recursive("/system/priv-app/AndroidForWork");
delete_recursive("/system/priv-app/ar-effect");
delete_recursive("/system/priv-app/arfun");
delete_recursive("/system/priv-app/ArtFilterCamera-xhdpi-release");
delete_recursive("/system/priv-app/BackupRestoreConfirmation");
delete_recursive("/system/priv-app/bgdefocus");
delete_recursive("/system/priv-app/CameraWearableBridgeHandheldServer");
delete_recursive("/system/priv-app/CivilAlerts");
delete_recursive("/system/priv-app/com.bambuser.sociallive");
delete_recursive("/system/priv-app/com.mobisystems.fileman");
delete_recursive("/system/priv-app/Conversations");
delete_recursive("/system/priv-app/CoverApp");
delete_recursive("/system/priv-app/CrashMonitor");
delete_recursive("/system/priv-app/CrashMonitorSystem");
delete_recursive("/system/priv-app/DefaultCapabilities");
delete_recursive("/system/priv-app/DualCamera-xhdpi-release");
delete_recursive("/system/priv-app/EmergencySms");
delete_recursive("/system/priv-app/enhancedusbux");
delete_recursive("/system/priv-app/EnterpriseService");
delete_recursive("/system/priv-app/Exchange2");
delete_recursive("/system/priv-app/FBCalendarSync");
delete_recursive("/system/priv-app/filecommander");
delete_recursive("/system/priv-app/GetMore-stub-release");
delete_recursive("/system/priv-app/GoogleBackupTransport");
delete_recursive("/system/priv-app/GoogleFeedback");
delete_recursive("/system/priv-app/GooglePartnerSetup");
delete_recursive("/system/priv-app/helpapp");
delete_recursive("/system/priv-app/infoeye");
delete_recursive("/system/priv-app/InputDevices");
delete_recursive("/system/priv-app/IntelligentGesture");
delete_recursive("/system/priv-app/livewaremanager");
delete_recursive("/system/priv-app/MusicFX");
delete_recursive("/system/priv-app/MyXperia");
delete_recursive("/system/priv-app/OMAClientProvisioning");
delete_recursive("/system/priv-app/OnlineRemoteCamera-xhdpi-release");
delete_recursive("/system/priv-app/qcrilmsgtunnel");
delete_recursive("/system/priv-app/RecommendationEngineExtension");
delete_recursive("/system/priv-app/retaildemo");
delete_recursive("/system/priv-app/ScreenRecording");
delete_recursive("/system/priv-app/SemcAlbum-albumLive-release");
delete_recursive("/system/priv-app/SemcCamera3D-xhdpi-release");
delete_recursive("/system/priv-app/SemcCalendar");
delete_recursive("/system/priv-app/SemcEmail");
delete_recursive("/system/priv-app/SEMCFacebookProxy");
delete_recursive("/system/priv-app/SemcMusic");
delete_recursive("/system/priv-app/SemcPhotoEditor");
delete_recursive("/system/priv-app/SemcStorageChecker");
delete_recursive("/system/priv-app/SemcTvOut");
delete_recursive("/system/priv-app/SemcVideo");
delete_recursive("/system/priv-app/SetupWizard");
delete_recursive("/system/priv-app/SharedStorageBackup");
delete_recursive("/system/priv-app/SimlockUnlockApp");
delete_recursive("/system/priv-app/SimpleHome");
delete_recursive("/system/priv-app/SmallApp-Calculator-release");
delete_recursive("/system/priv-app/SmallApp-Timer-release");
delete_recursive("/system/priv-app/SmallAppManagerService-release");
delete_recursive("/system/priv-app/SmallAppsFramework-release");
delete_recursive("/system/priv-app/SmallAppsLauncher-release");
delete_recursive("/system/priv-app/SmallAppWidget-release");
delete_recursive("/system/priv-app/SmartcardService");
delete_recursive("/system/priv-app/SnpVUStore");
delete_recursive("/system/priv-app/SocialEngineCore");
delete_recursive("/system/priv-app/SocialEngineFacebookPlugin");
delete_recursive("/system/priv-app/SocialEnginePicasaPlugin");
delete_recursive("/system/priv-app/somc-get-more-release");
delete_recursive("/system/priv-app/SomcHotspot2Settings");
delete_recursive("/system/priv-app/SomcMirrorLinkManualSwitch");
delete_recursive("/system/priv-app/SomcMirrorLinkSystem");
delete_recursive("/system/priv-app/SomcPhotoAnalyzer");
delete_recursive("/system/priv-app/SomcPlayAnywhere");
delete_recursive("/system/priv-app/SomcPodcast");
delete_recursive("/system/priv-app/SomcSeamlessTethering");
delete_recursive("/system/priv-app/SOMCTwitterAccount");
delete_recursive("/system/priv-app/SomcWifiDisplay");
delete_recursive("/system/priv-app/SonyEntrance2");
delete_recursive("/system/priv-app/sonyentrance2-release");
delete_recursive("/system/priv-app/SoundPhotoCamera-xhdpi-release");
delete_recursive("/system/priv-app/StylePortrait");
delete_recursive("/system/priv-app/Tag");
delete_recursive("/system/priv-app/TagGoogle");
delete_recursive("/system/priv-app/TimeShiftCamera");
delete_recursive("/system/priv-app/UpdateCenter");
delete_recursive("/system/priv-app/usb-mtp-backup-transport");
delete_recursive("/system/priv-app/usb-mtp-factoryreset-wrapper");
delete_recursive("/system/priv-app/usb-mtp-marlin-wrapper");
delete_recursive("/system/priv-app/usb-mtp-update-wrapper");
delete_recursive("/system/priv-app/usb-mtp-vendor-extension-service");
delete_recursive("/system/priv-app/Velvet");
delete_recursive("/system/priv-app/VoiceDialer");
delete_recursive("/system/priv-app/youtubelive");
run_program("/sbin/busybox", "unmount", "/system");

Unfortunately, I am unable to post the google drive link to my zip file. But I can give the information that I got the META-INF folder from there.

I am very grateful for any help to fix my problem.