Deactivating old abandoned repositories is usually the fix for getting errors like “Failed to Install a Dependency”. For “Can’t connect to network” that means the file source is offline or you mis-typed the URL.