无法删除 burg 主题包

无法删除 burg 主题包

今天,在尝试安装和删除 BURG 和一些主题后,我遇到了一个问题。现在我无法安装或删除任何东西。

这是输出(不幸的是部分内容是芬兰语,我无法更改语言,因为它似乎也依赖于软件包列表):

lassi@lassi-ubuntu:~$ sudo apt-get autoremove
Luetaan pakettiluetteloita... Valmis
Muodostetaan riippuvuussuhteiden puu       
Luetaan tilatietoja... Valmis       
Seuraavat paketit POISTETAAN:
  burg-theme-fortune burg-theme-gnome burg-theme-picchio
0 päivitetty, 0 uutta asennusta, 3 poistettavaa ja 0 päivittämätöntä.
3 ei asennettu kokonaan tai poistettiin.
Toiminnon jälkeen vapautuu 7 180 k t levytilaa.
Haluatko jatkaa [K/e]? k
(Luetaan tietokantaa... 166462 files and directories currently installed.)
Poistetaan pakettia burg-theme-fortune...
sudo: update-burg: command not found
dpkg: virhe käsiteltäessä burg-theme-fortune (--remove):
 aliprosessi installed post-removal script palautti virhetilakoodin 1
Poistetaan pakettia burg-theme-gnome...
sudo: update-burg: command not found
dpkg: virhe käsiteltäessä burg-theme-gnome (--remove):
 aliprosessi installed post-removal script palautti virhetilakoodin 1
Poistetaan pakettia burg-theme-picchio...
sudo: update-burg: command not found
dpkg: virhe käsiteltäessä burg-theme-picchio (--remove):
 aliprosessi installed post-removal script palautti virhetilakoodin 1
Käsittelyssä tapahtui liian monta virhettä:
 burg-theme-fortune
 burg-theme-gnome
 burg-theme-picchio
E: Sub-process /usr/bin/dpkg returned an error code (1)

基本上发生的情况是这样的:

它创建了软件包列表,然后尝试删除数据包 burg-theme-fortune。由于未找到 update-burg 命令,此操作失败。然后 dpkg 在处理数据包时报告错误。

这 3 个包也是如此。

最后它声称错误太多,并且软件包保持安装状态。

我还尝试安装 burg,因为它尝试运行命令 update-burg,但当我尝试安装或删除或使用 apt 执行任何操作时,它似乎总是尝试删除这些包。

有什么想法可以解决这个问题吗?

编辑:这是 apt-get install burg 的输出(尝试再次安装以获取英文输出)

    lassi@lassi-ubuntu:~$ LC_ALL=C sudo apt-get install burg
[sudo] password for lassi: 
Reading package lists... Done
Building dependency tree       
Reading state information... Done
burg is already the newest version.
0 upgraded, 0 newly installed, 0 to remove and 0 not upgraded.
3 not fully installed or removed.
Need to get 0 B/6169 kB of archives.
After this operation, 0 B of additional disk space will be used.
Do you want to continue [Y/n]? y
(Reading database ... 167497 files and directories currently installed.)
Preparing to replace burg-theme-fortune 0.5.0-1 (using .../burg-theme-fortune_0.5.0-1_all.deb) ...
Unpacking replacement burg-theme-fortune ...
Generating burg.cfg ...
/usr/sbin/burg-probe: error: cannot stat `/boot/burg/locale'.
No path or device is specified.
Try `/usr/sbin/burg-probe --help' for more information.
dpkg: warning: subprocess old post-removal script returned error exit status 1
dpkg - trying script from the new package instead ...
Generating burg.cfg ...
/usr/sbin/burg-probe: error: cannot stat `/boot/burg/locale'.
No path or device is specified.
Try `/usr/sbin/burg-probe --help' for more information.
dpkg: error processing /var/cache/apt/archives/burg-theme-fortune_0.5.0-1_all.deb (--unpack):
 subprocess new post-removal script returned error exit status 1
Generating burg.cfg ...
/usr/sbin/burg-probe: error: cannot stat `/boot/burg/locale'.
No path or device is specified.
Try `/usr/sbin/burg-probe --help' for more information.
dpkg: error while cleaning up:
 subprocess new post-removal script returned error exit status 1
Preparing to replace burg-theme-gnome 0.5.0-1 (using .../burg-theme-gnome_0.5.0-1_all.deb) ...
Unpacking replacement burg-theme-gnome ...
Generating burg.cfg ...
/usr/sbin/burg-probe: error: cannot stat `/boot/burg/locale'.
No path or device is specified.
Try `/usr/sbin/burg-probe --help' for more information.
dpkg: warning: subprocess old post-removal script returned error exit status 1
dpkg - trying script from the new package instead ...
Generating burg.cfg ...
/usr/sbin/burg-probe: error: cannot stat `/boot/burg/locale'.
No path or device is specified.
Try `/usr/sbin/burg-probe --help' for more information.
dpkg: error processing /var/cache/apt/archives/burg-theme-gnome_0.5.0-1_all.deb (--unpack):
 subprocess new post-removal script returned error exit status 1
Generating burg.cfg ...
/usr/sbin/burg-probe: error: cannot stat `/boot/burg/locale'.
No path or device is specified.
Try `/usr/sbin/burg-probe --help' for more information.
dpkg: error while cleaning up:
 subprocess new post-removal script returned error exit status 1
Preparing to replace burg-theme-picchio 0.5.0-1 (using .../burg-theme-picchio_0.5.0-1_all.deb) ...
Unpacking replacement burg-theme-picchio ...
Generating burg.cfg ...
/usr/sbin/burg-probe: error: cannot stat `/boot/burg/locale'.
No path or device is specified.
Try `/usr/sbin/burg-probe --help' for more information.
dpkg: warning: subprocess old post-removal script returned error exit status 1
dpkg - trying script from the new package instead ...
Generating burg.cfg ...
/usr/sbin/burg-probe: error: cannot stat `/boot/burg/locale'.
No path or device is specified.
Try `/usr/sbin/burg-probe --help' for more information.
dpkg: error processing /var/cache/apt/archives/burg-theme-picchio_0.5.0-1_all.deb (--unpack):
 subprocess new post-removal script returned error exit status 1
Generating burg.cfg ...
/usr/sbin/burg-probe: error: cannot stat `/boot/burg/locale'.
No path or device is specified.
Try `/usr/sbin/burg-probe --help' for more information.
dpkg: error while cleaning up:
 subprocess new post-removal script returned error exit status 1
Errors were encountered while processing:
 /var/cache/apt/archives/burg-theme-fortune_0.5.0-1_all.deb
 /var/cache/apt/archives/burg-theme-gnome_0.5.0-1_all.deb
 /var/cache/apt/archives/burg-theme-picchio_0.5.0-1_all.deb
E: Sub-process /usr/bin/dpkg returned an error code (1)
lassi@lassi-ubuntu:~$ 

答案1

这是一个不太可能的尝试,但你可以尝试:

sudo mkdir /boot/burg
sudo touch /boot/burg/locale

然后再次尝试重新安装 burg:

sudo apt-get install --reinstall burg burg-theme-fortune burg-theme-gnome burg-theme-picchio

一旦一切安装完毕,首先删除主题,最后删除 Burg。

相关内容