remove package does not remove bash-completion file

Bug #1688604 reported by Jeff Fredrickson
10
This bug affects 2 people
Affects Status Importance Assigned to Milestone
virtualenvwrapper (Ubuntu)
Confirmed
Undecided
Unassigned

Bug Description

'apt remove virtualenvwrapper' leaves behind a bash-completion file at: /etc/bash_completion.d/virtualenvwrapper.

Since file gets sourced in upon login, it results in an error after the package has been removed:

bash: /usr/share/virtualenvwrapper/virtualenvwrapper_lazy.sh: No such file or directory

Steps to reproduce:

1. apt install virtualenvwrapper
2. Verify /etc/bash_completion.d/virtualenvwrapper was created
3. apt remove virtualenvwrapper
4. Verify /etc/bash_completion.d/virtualenvwrapper is still there
5. Start a login shell

Expected: No error in new shell
Actual: Error message about virtualenvwrapper_lazy.sh

Release: Ubuntu Artful Aardvark (development branch)

virtualenvwrapper:
  Installed: (none)
  Candidate: 4.3.1-2
  Version table:
     4.3.1-2 500
        500 http://us.archive.ubuntu.com/ubuntu artful/universe amd64 Packages
        500 http://us.archive.ubuntu.com/ubuntu artful/universe i386 Packages
        100 /var/lib/dpkg/status

Revision history for this message
Launchpad Janitor (janitor) wrote :

Status changed to 'Confirmed' because the bug affects multiple users.

Changed in virtualenvwrapper (Ubuntu):
status: New → Confirmed
To post a comment you must log in.
This report contains Public information  
Everyone can see this information.

Other bug subscribers

Remote bug watches

Bug watches keep track of this bug in other bug trackers.