Public bug reported:

I amnot sure whether this is intended behavior. `apt update` exit code
is 0 even when the proxy is not working. Instead, the logs just contain
warnings


```
cat /etc/environment
http_proxy=http://10.10.10.10
PATH="/usr/local/sbin:/usr/local/bin:/usr/sbin:/usr/bin:/sbin:/bin:/usr/games:/usr/local/games:/snap/bin"

sudo apt update
Ign:1 http://archive.ubuntu.com/ubuntu resolute InRelease                       
      
Ign:2 http://archive.ubuntu.com/ubuntu resolute-updates InRelease               
      
Ign:3 http://archive.ubuntu.com/ubuntu resolute-backports InRelease             
      
Ign:4 http://security.ubuntu.com/ubuntu resolute-security InRelease             
      
Ign:4 http://security.ubuntu.com/ubuntu resolute-security InRelease             
      
Ign:3 http://archive.ubuntu.com/ubuntu resolute-backports InRelease
Ign:2 http://archive.ubuntu.com/ubuntu resolute-updates InRelease
Ign:1 http://archive.ubuntu.com/ubuntu resolute InRelease
Ign:1 http://archive.ubuntu.com/ubuntu resolute InRelease
Ign:2 http://archive.ubuntu.com/ubuntu resolute-updates InRelease
Ign:3 http://archive.ubuntu.com/ubuntu resolute-backports InRelease
Ign:4 http://security.ubuntu.com/ubuntu resolute-security InRelease
Err:4 http://security.ubuntu.com/ubuntu resolute-security InRelease
  Could not connect to 10.10.10.10:80 (10.10.10.10), connection timed out
  Unable to connect to 10.10.10.10:http:
Err:3 http://archive.ubuntu.com/ubuntu resolute-backports InRelease
  Unable to connect to 10.10.10.10:http:
Err:2 http://archive.ubuntu.com/ubuntu resolute-updates InRelease
  Unable to connect to 10.10.10.10:http:
Err:1 http://archive.ubuntu.com/ubuntu resolute InRelease
  Could not connect to 10.10.10.10:80 (10.10.10.10), connection timed out
  Unable to connect to 10.10.10.10:http:
All packages are up to date.    
Warning: Failed to fetch 
http://archive.ubuntu.com/ubuntu/dists/resolute/InRelease  Unable to connect to 
10.10.10.10:http:
Warning: Failed to fetch 
http://archive.ubuntu.com/ubuntu/dists/resolute-updates/InRelease  Unable to 
connect to 10.10.10.10:http:
Warning: Failed to fetch 
http://archive.ubuntu.com/ubuntu/dists/resolute-backports/InRelease  Unable to 
connect to 10.10.10.10:http:
Warning: Failed to fetch 
http://security.ubuntu.com/ubuntu/dists/resolute-security/InRelease  Unable to 
connect to 10.10.10.10:http:
Warning: Some index files failed to download. They have been ignored, or old 
ones used instead.

echo $?
0

```

** Affects: apt (Ubuntu)
     Importance: Undecided
         Status: New

-- 
You received this bug notification because you are a member of Ubuntu
Bugs, which is subscribed to Ubuntu.
https://bugs.launchpad.net/bugs/2160712

Title:
  `apt update` has exit code 0 even when the proxy is not working

To manage notifications about this bug go to:
https://bugs.launchpad.net/ubuntu/+source/apt/+bug/2160712/+subscriptions


-- 
ubuntu-bugs mailing list
[email protected]
https://lists.ubuntu.com/mailman/listinfo/ubuntu-bugs

Reply via email to