Package: apt
Version: 2.6.1

Sometimes apt-get -y update gets stuck, if apt-cacher-ng is involved. This
affects /usr/lib/apt/apt.systemd.daily, as the output of ps -ef --forest
shows:

# ps -ef --forest
:
root      852771       1  0 00:02 ?        00:00:00 /bin/sh 
/usr/lib/apt/apt.systemd.daily update
root      852775  852771  0 00:02 ?        00:00:00  \_ /bin/sh 
/usr/lib/apt/apt.systemd.daily lock_is_held update
root      852803  852775  0 00:02 ?        00:00:15      \_ apt-get -y update
_apt      852808  852803  0 00:02 ?        00:00:00          \_ 
/usr/lib/apt/methods/http
_apt      852809  852803  0 00:02 ?        00:00:00          \_ 
/usr/lib/apt/methods/http
_apt      852810  852803  0 00:02 ?        00:00:00          \_ 
/usr/lib/apt/methods/https
_apt      852811  852803  0 00:02 ?        00:00:00          \_ 
/usr/lib/apt/methods/https
_apt      852812  852803  0 00:02 ?        00:00:00          \_ 
/usr/lib/apt/methods/http
_apt      852813  852803  0 00:02 ?        00:00:00          \_ 
/usr/lib/apt/methods/https
_apt      852814  852803  0 00:02 ?        00:00:00          \_ 
/usr/lib/apt/methods/https
_apt      852815  852803  0 00:02 ?        00:00:00          \_ 
/usr/lib/apt/methods/https
_apt      852817  852803  0 00:02 ?        00:00:00          \_ 
/usr/lib/apt/methods/https
_apt      852818  852803  0 00:02 ?        00:00:00          \_ 
/usr/lib/apt/methods/https
_apt      852819  852803  0 00:02 ?        00:00:00          \_ 
/usr/lib/apt/methods/https
_apt      852820  852803  0 00:02 ?        00:00:00          \_ 
/usr/lib/apt/methods/https
_apt      852821  852803  0 00:02 ?        00:00:00          \_ 
/usr/lib/apt/methods/https
_apt      852822  852803  0 00:02 ?        00:00:00          \_ 
/usr/lib/apt/methods/https
_apt      852823  852803  0 00:02 ?        00:00:00          \_ 
/usr/lib/apt/methods/file
_apt      852824  852803  0 00:02 ?        00:00:00          \_ 
/usr/lib/apt/methods/http
_apt      852825  852803  0 00:02 ?        00:00:00          \_ 
/usr/lib/apt/methods/http
_apt      852826  852803  0 00:02 ?        00:00:00          \_ 
/usr/lib/apt/methods/http
_apt      852828  852803  0 00:02 ?        00:00:00          \_ 
/usr/lib/apt/methods/copy
_apt      852930  852803  0 00:02 ?        00:00:00          \_ 
/usr/lib/apt/methods/gpgv

Would it be possible to add a timeout to this script? 


Regards
Harri

Reply via email to