# Apt-utills Apt install Issue

**URL:** <https://dietpi.com/forum/t/apt-utills-apt-install-issue/13688>\
**Category:** Troubleshooting\
**Created:** [14 July 2022 05:38 UTC](https://dietpi.com/forum/t/apt-utills-apt-install-issue/13688 "2022-07-14T05:38:07Z")\
**Posts on this page:** 3\
**Page:** 1

<div class="post-metadata">

**Author:** ![eHag-FRU](https://dietpi.com/forum/user_avatar/dietpi.com/ehag-fru/32/2253_2.png) [@eHag-FRU](https://dietpi.com/forum/u/eHag-FRU)\
**Post date:** [14 July 2022 05:38 UTC](https://dietpi.com/forum/t/apt-utills-apt-install-issue/13688/1 "2022-07-14T05:38:08Z")

</div>

### Creating a bug report/issue

#### Required Information

- DietPi version | 8.6.1
- Distro version | Bullseye 1
- Kernel version | Linux DietPi 5.15.32+ #1538 Thu Mar 31 19:37:58 BST 2022 armv6l GNU/Linux
- SBC model | RPi B+ (armv6l)
- Power supply used | 5V USB Power Supply
- SD card used | Samsung Pro 32 Gb

#### Additional Information (if applicable)

- Software title | apt & apt-utils
- Was the software title installed freshly or updated/migrated?  
freshly installed and then run update to update the OS
- Can this issue be replicated on a fresh installation of DietPi?  
No, you have to successfully add the Sury PHP repository

#### Steps to reproduce

1. Finish initial DietPi setup, then install ls-release
2. Follow this guide for the Raspberry Pi OS version of the Sury Repository ([Installing the Latest Versions of PHP on Raspberry Pi OS - Pi My Life Up](https://pimylifeup.com/raspberry-pi-latest-php/comment-page-1/?unapproved=86505&moderation-hash=293e21335dcdf8adc7268ca657214a2b))
3. Run the command: apt install php8.0
4. See error about apt-utils not being installed, then run: apt install apt-utils
5. Error produced about how apt-utils can not be installed because apt-utils is not installed
6. Try just about any built-in linux command

#### Expected behaviour

- Should install apt-utils OR if an error, not break the rest of the OS and allow other built in commands to execute

#### Actual behaviour

- Error message on just about every Linux command of “illegal Command”

#### Extra details

- Things like dietpi-config and dietpi-software work, but this breaks apt, ls, dir, and other commands. I have to reformat my SD card and start with a fresh copy of the OS just to get basic functionality working again

- Using the built-in SSH server to run commands and look at terminal output

---

<div class="post-metadata">

**Author:** ![Joulinar](https://dietpi.com/forum/user_avatar/dietpi.com/joulinar/32/57_2.png) [@Joulinar](https://dietpi.com/forum/u/Joulinar)\
**Post date:** [14 July 2022 08:39 UTC](https://dietpi.com/forum/t/apt-utills-apt-install-issue/13688/2 "2022-07-14T08:39:59Z")

</div>

Welcome to our community.

Usually it is not possible for apt package manager to break an entire system. Probably you have some file system corruption or a dying SD card. You could try checking for kernel error messages

```nohighlight
dmesg -l err,crit,alert,emerg

```

---

<div class="post-metadata">

**Author:** ![MichaIng](https://dietpi.com/forum/user_avatar/dietpi.com/michaing/32/7_2.png) [@MichaIng](https://dietpi.com/forum/u/MichaIng)\
**Post date:** [14 July 2022 16:30 UTC](https://dietpi.com/forum/t/apt-utills-apt-install-issue/13688/3 "2022-07-14T16:30:23Z")

</div>

> [@eHag-FRU](#):
>
> See error about apt-utils not being installed, then run: apt install apt-utils

This is btw not an error but an info that due to the missing package, possibly existing interactive package debconf options are not offered in a bunch before all package installs start, but during their installation. It is not required for anything than the comfort to pre-configure everything than go and drink a coffee, when you install a large number of packages 😉.

However it shouldn’t break the system either of course.

The reason why your system breaks is that you install an ARMv7-only PHP on an ARMv6-only RPi. I’m also wondering why it breaks the whole system instead of only leading to a failing PHP service, but it’s known like that. I already reported this to Ondrej years ago, but since it is explicitly an ARMv7 repository, he didn’t find it reasonable to have a closer look.

If I remember right, it really is impossible now to do anything, especially purging the package again, right? So I’m AFRAID you need to reflash and stay with PHP7.4.

… ah another thought and explanation: The package pulls a lot of very basic system library upgrades from that repo, like libSSL. So every command with relies on any of those libraries is doomed to fail. Makes all sense then.
