我有Ubuntu 10.10 x64和x86在各种服务器上运行,并自动完成所有的工作吧。
问题:apt- <tab>会显示一个选项列表,但是sudo apt- <tab>不会。
摆弄了几个小时后,我发现/ etc / bash_autocomplete不存在。 在破碎的服务器上。 复制从现在工作的一个工作。 但仍然不正确。
sudo apt-get ins <tab>不显示任何操作。
在工作服务器上的/etc/bash_autocomplete.d/中列出的文件大约有50个文件,而破坏的只有两个或三个文件。
我不认为我可以只复制这些文件,因为它可能显示甚至没有安装的东西的命令。
TL; DR
自动完成破碎,我该如何解决它。 似乎在某处残疾,这是为什么
编辑:好吧,它没有安装…
$ sudo apt-get install bash-completion Reading package lists... Done Building dependency tree Reading state information... Done The following NEW packages will be installed bash-completion 0 upgraded, 1 newly installed, 0 to remove and 3 not upgraded. Need to get 140kB of archives. After this operation, 1,061kB of additional disk space will be used. Get:1 http://archive.ubuntu.com/ubuntu/ maverick-updates/main bash-completion all 1:1.2-2ubuntu1.1 [140kB] Fetched 140kB in 0s (174kB/s) Selecting previously deselected package bash-completion. (Reading database ... 23808 files and directories currently installed.) Unpacking bash-completion (from .../bash-completion_1%3a1.2-2ubuntu1.1_all.deb) ... Processing triggers for man-db ... Setting up bash-completion (1:1.2-2ubuntu1.1) ...
它现在有点工作,但仍然won … … apt-get ins <tab>给sudo apt-get insserv作为选项。 apt-get install php5 <tab>给apt-get install php5/不是php5- *选项。
bash完成软件包是否被删除,或者从未安装过? 尝试重新安装。