public
Created

apt-get install fails but then does not

  • Download Gist
gistfile1.txt
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
# apt-get -q -y install ntp=1:4.2.6.p3+dfsg-1ubuntu3.1
Reading package lists...
Building dependency tree...
Reading state information...
The following extra packages will be installed:
libcap2 libopts25
Suggested packages:
ntp-doc
The following NEW packages will be installed:
libcap2 libopts25 ntp
0 upgraded, 3 newly installed, 0 to remove and 62 not upgraded.
Need to get 684 kB of archives.
After this operation, 1,765 kB of additional disk space will be used.
WARNING: The following packages cannot be authenticated!
libcap2 libopts25 ntp
E: There are problems and -y was used without --force-yes
 
# apt-get -q -y --force-yes install ntp=1:4.2.6.p3+dfsg-1ubuntu3.1
# gets installed
 
# apt-get purge libcap2 libopts25 ntp
 
# was expecting this to fail
# apt-get -q -y install ntp=1:4.2.6.p3+dfsg-1ubuntu3.1
# but it goes through. is the --force-yes option remembered

Please sign in to comment on this gist.

Something went wrong with that request. Please try again.