Error while purge bash-prompt

Bug #1068560 reported by Sergey Kryazhevskikh
6
This bug affects 1 person
Affects Status Importance Assigned to Milestone
bash-prompt
Fix Released
High
Sergey Kryazhevskikh

Bug Description

oliver@bosone:~$ sudo aptitude purge bash-prompt
Следующие пакеты будут УДАЛЕНЫ:
  bash-prompt{p}
0 пакетов обновлено, 0 установлено новых, 1 пакетов отмечено для удаления, и 31 пакетов не обновлено.
Необходимо получить 0 Б архивов. После распаковки освободится 49,2 kБ.
Хотите продолжить? [Y/n/?] y
(Чтение базы данных ... на данный момент установлен 331051 файл и каталог.)
Удаляется пакет bash-prompt ...
/var/lib/dpkg/info/bash-prompt.postrm: 25: [: -gt: unexpected operator
Вычищаются файлы настройки пакета bash-prompt ...

Revision history for this message
Sergey Kryazhevskikh (soliverr) wrote :

Error fixed by this command:

oliver@bosone:~$ (grep --line-number "^# Added by bash-prompt package #" /etc/profile || echo 0) | cut -d ':' -f 1
31
oliver@bosone:~$ sudo vim /etc/profile
oliver@bosone:~$ (grep --line-number "^# Added by bash-prompt package #" /etc/profile || echo 0) | cut -d ':' -f 1
0

Changed in bash-prompt:
status: New → In Progress
assignee: nobody → Sergey Kryazhevskikh (soliverr)
importance: Undecided → High
Changed in bash-prompt:
milestone: none → rc1
status: In Progress → Fix Committed
Changed in bash-prompt:
status: Fix Committed → Fix Released
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.