Skip to content

Instantly share code, notes, and snippets.

@deepak deepak/gist:3017966
Created Jun 29, 2012

Embed
What would you like to do?
apt-get install fails but then does not
# 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
@deepak

This comment has been minimized.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
You can’t perform that action at this time.