forked from roothide/roothide.github.io
-
Notifications
You must be signed in to change notification settings - Fork 0
/
fix_partial_is_missing.sh
37 lines (32 loc) · 1007 Bytes
/
fix_partial_is_missing.sh
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
#fix "/var/cache/apt/archives/partial is missing" for Sileo
#run this script in filza installed in trollstore
set JBROOT $(find /var/containers/Bundle/Application -maxdepth 1 -name ".jbroot-*")
unlink $JBROOT/UsrLb
unlink $JBROOT/vmo
unlink $JBROOT/Xapps
unlink $JBROOT/var/.keep_symlinks
unlink $JBROOT/var/alternatives
unlink $JBROOT/var/bash
unlink $JBROOT/var/bin
unlink $JBROOT/var/dpkg
unlink $JBROOT/var/etc
unlink $JBROOT/var/lib
unlink $JBROOT/var/Lib
unlink $JBROOT/var/libexec
unlink $JBROOT/var/LIY
unlink $JBROOT/var/sbin
unlink $JBROOT/var/share
unlink $JBROOT/var/sy
unlink $JBROOT/var/zsh
mkdir $JBROOT/var/cache
mkdir $JBROOT/var/cache/locate
mkdir -p $JBROOT/var/cache/apt/archives/partial
printf "" > $JBROOT/var/cache/apt/archives/lock
unlink $JBROOT/var/lib
mkdir $JBROOT/var/lib
mkdir $JBROOT/var/lib/ex
mkdir $JBROOT/var/lib/misc
unlink $JBROOT/var/lib/.jbroot
ln -s ../../.jbroot $JBROOT/var/lib/.jbroot
ln -s .jbroot/Library/dpkg $JBROOT/var/lib/dpkg
echo "fix completed (v3)"