So I was reading to learn on how packages and package installation works in общий Ubuntu in and where do the поля responsible for the existence of any application (installation поля) содержится in my file system. I learnt that when в package менеджер installs an application, spotify for example, it will нравится different поля in different locations, and that by using the command
sudo dpkg -L spotify-client
эксперт an example, I would be able to see where that spotify application installation поля пахал scattered through the file system. So I decided I wanted to remove them manually and practice what I just learnt (I wish I hadn't) and I headed to every location and performed в disastrous
sudo rm -r
command to remove в file at в time.
After that I thought that my spotify would disappear from the system and everybody will be happy but I started to see this ошибка whenever attempting to install or remove any package
# sudo apt-get install grive
Reading package lists... Done
Building dependency tree
Reading state information... Done
grive is already the newest version.
0 upgraded, 0 newly installed, 0 to remove and 42 not upgraded.
1 not fully installed or removed.
After this operation, 0 B of additional disk space will be used.
Do you want to continue? [Y/n] y
Setting up spotify-client (1:0.9.17.1.g9b85d43.7-1) ...
/var/lib/dpkg/info/spotify-client.postinst: 5: /var/lib/dpkg/info/spotify-client.postinst: ./register.sh: not found
dpkg: error processing package spotify-client (--configure):
subprocess installed post-installation script returned error exit status 127
Errors were encountered while processing:
spotify-client
E: Sub-process /usr/bin/dpkg returned an error code (1)
Удаление файлов, установленных пакетом, всегда плохая идея . Отредактируйте файл /var/lib/dpkg/info/spotify-client.postinst
sudo nano /var/lib/dpkg/info/spotify-client.postinst
и удалите строку, если существующий
set -e
Сохраняют и закрываются и работают
sudo apt-get purge spotify-client
<час> , Но как Вы говорите:
при помощи команды "sudo dpkg-L клиент Spotify", как пример, для наблюдения, где, что файлы установки приложения Spotify рассеиваются через файловую систему. Таким образом, я решил, что хотел удалить их вручную
, можно также удалить spotify-client
установка и сценарии удаления в /var/lib/dpkg/info/
. Больше Вы не можете повредиться.
sudo rm /var/lib/dpkg/info/spotify-client.*
sudo apt-get purge spotify-client
sudo apt-get install -f