Google Groups no longer supports new Usenet posts or subscriptions. Historical content remains viewable.
Dismiss

Fail to execute apt autoremove

19 views
Skip to first unread message

Alexandre Bencz

unread,
Jul 3, 2023, 3:50:04 PM7/3/23
to
I am getting the following error when running apt autoremove:

sudo apt autoremove -y
Reading package lists... Done
Building dependency tree... Done
Reading state information... Done
The following packages will be REMOVED:
  linux-image-6.3.0-1-powerpc64
0 upgraded, 0 newly installed, 1 to remove and 7 not upgraded.
1 not fully installed or removed.
After this operation, 303 MB disk space will be freed.
apt-listchanges: Can't set locale; make sure $LC_* and $LANG are correct!
perl: warning: Setting locale failed.
perl: warning: Please check that your locale settings:
    LANGUAGE = "en_US:en",
    LC_ALL = (unset),
    LC_TIME = "pt_BR.UTF-8",
    LC_MONETARY = "pt_BR.UTF-8",
    LC_CTYPE = "pt_BR.UTF-8",
    LC_ADDRESS = "pt_BR.UTF-8",
    LC_TELEPHONE = "pt_BR.UTF-8",
    LC_NAME = "pt_BR.UTF-8",
    LC_MEASUREMENT = "pt_BR.UTF-8",
    LC_IDENTIFICATION = "pt_BR.UTF-8",
    LC_NUMERIC = "pt_BR.UTF-8",
    LC_PAPER = "pt_BR.UTF-8",
    LANG = "en_US.UTF-8"
    are supported and installed on your system.
perl: warning: Falling back to a fallback locale ("en_US.UTF-8").
locale: Cannot set LC_CTYPE to default locale: No such file or directory
locale: Cannot set LC_ALL to default locale: No such file or directory
(Reading database ... 86929 files and directories currently installed.)
Removing linux-image-6.3.0-1-powerpc64 (6.3.7-1) ...
/etc/kernel/postrm.d/initramfs-tools:
update-initramfs: Deleting /boot/initrd.img-6.3.0-1-powerpc64
/etc/kernel/postrm.d/zz-update-grub:
/usr/sbin/grub-mkconfig: 270: cannot create /boot/grub/grub.cfg.new:
Read-only f
ile system
run-parts: /etc/kernel/postrm.d/zz-update-grub exited with return code 2
dpkg: error processing package linux-image-6.3.0-1-powerpc64 (--remove):
 installed linux-image-6.3.0-1-powerpc64 package post-removal script
subprocess
returned error exit status 1
dpkg: too many errors, stopping
Errors were encountered while processing:
 linux-image-6.3.0-1-powerpc64
Processing was halted because there were too many errors.
E: Sub-process /usr/bin/dpkg returned an error code (1)

John Paul Adrian Glaubitz

unread,
Jul 3, 2023, 4:00:04 PM7/3/23
to
Hi Alexandre!

> On Jul 3, 2023, at 9:43 PM, Alexandre Bencz <aleb...@gmail.com> wrote:
>
> I am getting the following error when running apt autoremove:
Run the following commands:

# umount /boot/grub
# fsck.hfs /dev/sda2
# mount /dev/sda2 /boot/grub

Before running these commands, make sure that the package „hfsprogs“ is installed.

Adrian
0 new messages