Как удалить не полностью установленный или удаленный пакет?

Хорошо, вот моя проблема, я попытался установить Spotify. Это было не так хорошо, поэтому я решил удалить его. Будучи полным n00b, я удаляю папку, в которой она была установлена, чтобы решить мою проблему.

(Reading database ... 95881 files and directories currently installed.)
Removing spotify-client ...
/var/lib/dpkg/info/spotify-client.prerm: 9: cd: can't cd to /opt/spotify/spotify-client
dpkg: error processing spotify-client (--remove):
subprocess installed pre-removal script returned error exit status 2
/var/lib/dpkg/info/spotify-client.postinst: 5: cd: can't cd to /opt/spotify/spotify-client
dpkg: error while cleaning up:
subprocess installed post-installation script returned error exit status 2
Errors were encountered while processing:
spotify-client
E: Sub-process /usr/bin/dpkg returned an error code (1)

Я потерялся раньше, чем раньше, пожалуйста, помогите.

Содержание /var/lib/dpkg/info/spotify-client.prerm ]:

#!/bin/sh
#
# Copyright (c) 2012 Spotify AB

# We could be smart and not clean up on upgrade,
# but I worry that we'll leave old crap around
# when we change things.

cd /opt/spotify/spotify-client && ./unregister.sh
1
задан 27 April 2015 в 02:24

1 ответ

Вы всегда можете переустановить Spotify, а затем использовать соответствующий метод для его удаления. Таким образом, вы снова получите все необходимые файлы в системе.

1
ответ дан 23 May 2018 в 20:58

Другие вопросы по тегам:

Похожие вопросы: