Take the 2-minute tour ×
Ask Ubuntu is a question and answer site for Ubuntu users and developers. It's 100% free, no registration required.

apt-get install and apt-cache policy do not complete package names.

I have double checked /etc/bash.bashrc, no irregularities.

Googled for answers but none suffice.

Any help/advice?

share|improve this question
    
aptitude is not equal to apt. Which one is problematic? –  Lekensteyn May 7 '12 at 9:44
    
Apologies. Apt commands in general. –  beanaroo May 7 '12 at 9:50
    
Is completion set up for apt-get? complete -p apt-get –  geirha May 8 '12 at 17:00
    
The result reads: 'complete -F _apt_get apt-get' Not sure what that means –  beanaroo May 11 '12 at 14:44

2 Answers 2

up vote 7 down vote accepted

Actually, I found the solution ~

Install the auto-complete-el

sudo apt-get install auto-complete-el 

Install via the software center

After installing this package, I got everything back to normal.

share|improve this answer
    
100% - many thanks –  beanaroo May 16 '12 at 10:47
    
It works, but I don't get why, the el stands for Emacs Lisp... –  Gerhard Burger Jul 14 at 9:29

Open /etc/bash.bashrc with gedit or other text editor and uncomment the following lines:

#if [ -f /etc/bash_completion ] && ! shopt -oq posix; then
#    . /etc/bash_completion
#fi

It works for me.

share|improve this answer
    
I can't find any /etc/bash.bashrc. You sure about that? –  jokerdino Sep 22 '12 at 2:01

Your Answer

 
discard

By posting your answer, you agree to the privacy policy and terms of service.

Not the answer you're looking for? Browse other questions tagged or ask your own question.