Cydia will give error “unable to load, internet connection appears to be offline” and “network error” if you are using an iPhone/iPad from China and jailbroken by Electra for iOS 11.2-11.3.1.
Just use SSH and run the following command to fix it.
rm -r /var/preferences/com.apple.networkextension* && reboot
Then re-jailbreak the device and it will work.
It says “no such file or directory”
how to fix Network Error in Cydia on Jailbroken iOS 12.1.2