Reply in-line :-
On 28/12/2018, Gabriel F. T. Gomes <[email protected]> wrote:
> On Fri, Dec 28, 2018 at 01:46:30AM +0530, shirish शिरीष wrote:
>> $ sudo aptitude reinstall bash-completion
>> [sudo] password for shirish:
>> The following packages will be REINSTALLED:
>> bash-completion
>> 0 packages upgraded, 0 newly installed, 1 reinstalled, 0 to remove and
>> 9 not upgraded.
>> Need to get 0 B/208 kB of archives. After unpacking 0 B will be used.
>> (Reading database ... 517477 files and directories currently installed.)
>> Preparing to unpack .../bash-completion_1%3a2.8-5_all.deb ...
>> Unpacking bash-completion (1:2.8-5) over (1:2.8-5) ...
>> Setting up bash-completion (1:2.8-5) ...
>> Processing triggers for man-db (2.8.4-3) ...
>> adequate found packaging bugs
>> -----------------------------
>>
>> bash-completion: broken-symlink
>> /usr/share/bash-completion/completions/ifdown.disabled -> ifup
>> bash-completion: broken-symlink
>> /usr/share/bash-completion/completions/ifstatus -> ifup
>> bash-completion: py-file-not-bytecompiled
>> /usr/share/bash-completion/completions/btdownloadheadless.py
>> bash-completion: py-file-not-bytecompiled
>> /usr/share/bash-completion/completions/asciidoc.py
>> bash-completion: py-file-not-bytecompiled
>> /usr/share/bash-completion/completions/btdownloadcurses.py
>> bash-completion: py-file-not-bytecompiled
>> /usr/share/bash-completion/completions/btdownloadgui.py
>
> Thanks for trying my suggestion.
>
>> Just to make sure I didn't do anything silly I purged and installed
>> bash-completion again but still got the same error as above.
>
> Thanks for doing this, too.
>
>> I do see I have ifupdown2 installed. Maybe something in there messed
>> up with bash-completion at least the if states .
>
> I installed it, too, but it didn't cause these bugs for me (not even
> after purging then re-installing bash-completion), so I think I'll need
> your help to investigate this.
>
> When you purge bash-completion, does it remove
> /usr/share/bash-completion entirely?
>
Yes and no. It does remove bash_completion and the helpers directory
but not the completions directory, that is still there.
There are only 200 some files when bash-completion is purged in
/usr/share/bash-completion/completions directory which swells to
around 800+ when bash-completion is installed.
>> I did see this however, dunno if these are somehow responsible -
>>
>> The last bit is from $ dpkg -L ifupdown2 | tail
>>
>> /var/lib/ifupdown2/policy.d
>> /sbin/ifdown
>> package diverts others to: /sbin/ifdown.disabled
>> /sbin/ifquery
>> package diverts others to: /sbin/ifquery.disabled
>> /sbin/ifreload
>> package diverts others to: /sbin/ifreload.disabled
>> /sbin/ifup
>> package diverts others to: /sbin/ifup.disabled
>> /usr/share/ifupdown2/ifupdown2
>
> I don't see anything wrong with this snippet, however, I'm looking into
> the packaging files for ifupdown2 and I see that it ships (or used to
> ship) a completion file for ifup.
>
>> I am willing to investigate but have no idea about bash-completion
>> except that it makes my life easier.
>
> What is the version of ifupdown2 that you have installed in your
> machine? Do you know if you updated it recently?
>
apt-cache policy says that ifupdown2 is 1.2.2-1 at my end. Umm... I
have no clue where to look for that info. I used to remember there
used to be archives at /var/lib/apt/archives but now that holds only
listchanges.db which would require me to use something to query the
database and I'm not even sure even if that would be the right thing.
/var/lib/apt$ file listchanges.db
listchanges.db: Berkeley DB (Hash, version 9, native byte-order)
--
Regards,
Shirish Agarwal शिरीष अग्रवाल
My quotes in this email licensed under CC 3.0
http://creativecommons.org/licenses/by-nc/3.0/
http://flossexperiences.wordpress.com
EB80 462B 08E1 A0DE A73A 2C2F 9F3D C7A4 E1C4 D2D8