[Date Prev][Date Next] [Thread Prev][Thread Next] [Date Index] [Thread Index]

Re: Fail to execute apt autoremove



Hi Alexandre!

> On Jul 3, 2023, at 9:43 PM, Alexandre Bencz <alebencz@gmail.com> wrote:
> 
> 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 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

Reply to: