197
31
It seems that my aptitude
is somehow broken:
sudo aptitude update
0% [Working]Segmentation fault
dmesg
[223282.616599] aptitude[30972]: segfault at 67707f ip 7f954dcfae5d sp 7ffff5a5f950 error 4 in libapt-pkg-libc6.7-6.so.4.6.0[7f954dca5000+bd000]
So I would like to reinstall aptitude
by using apt-get
.
Unfortunately it seems apt-get
doesn't have a reinstall option.
How could I get aptitude
to work again?
It's possible that I found the root cause for aptitude's segfault. Here is how I can reproduce it:
- 'ssh' remote login into the Debian machine via Cygwin's rxvt terminal (from a Windows 7 64-bit German edition).
- Enlarge the rxvt window so that it spans across two monitors (yes, I have two monitors)
- Run
aptitude update
. Note: when I resize the rxvt terminal to normal then I don't have these segmentation faults!
16what's that
-A5
you are grepping ? – Vokuhila-Oliba – 2010-01-30T12:51:14.17090man grep | grep -- "-A" – user1686 – 2010-01-30T13:04:07.163
36What's that
--
you're grepping? – Desty – 2014-09-11T09:55:31.63317
man getopt
, look underPARSING
– Tino – 2014-11-17T16:43:33.58031
-A5
shows the matched line plus the following 5 lines.--
stops parsing of options, thus interpreting anything that comes after as positional arguments, avoiding having to escape the dash in the expression-A
which would otherwise be interpreted as an option to grep itself. – jjmontes – 2014-11-18T18:20:32.5472@jjmontes So technically quotes around
"-A"
are not necesary:man grep | grep -- -A
– Dimitry K – 2014-12-20T16:20:10.460