Unable to install apps

Ask for help with issues regarding the Installations of the Debian O/S.
Post Reply
Message
Author
rhawkins58
Posts: 2
Joined: 2024-09-11 19:00

Unable to install apps

#1 Post by rhawkins58 »

Hi all, every time I try to install something like 'Hardinfo' using 'apt install foo', I get the following error message "Sub-process /usr/bin/dpkg returned an error code (1)".

Any idea what this means & how overcome this message?

Running Debian 12.7 KDE DE.

Thanks

User avatar
dilberts_left_nut
Administrator
Administrator
Posts: 5441
Joined: 2009-10-05 07:54
Location: enzed
Has thanked: 21 times
Been thanked: 87 times

Re: Unable to install apps

#2 Post by dilberts_left_nut »

It means something is wrong.
If you fix what is wrong you will overcome the message.
AdrianTM wrote:There's no hacker in my grandma...

User avatar
kc1di
Posts: 304
Joined: 2007-03-12 12:52
Location: Somewhere In Maine
Has thanked: 5 times
Been thanked: 20 times

Re: Unable to install apps

#3 Post by kc1di »

Most of the time you get that message when you have a broken install of a package you can try this command and see if it clears it.
sudo dpkg --configure -a
Dave
Morse Code -An Early digital mode !
Bookworm
John 3:16
Registered Linux User # 462608

User avatar
sunrat
Site admin
Site admin
Posts: 7339
Joined: 2006-08-29 09:12
Location: Melbourne, Australia
Has thanked: 130 times
Been thanked: 642 times

Re: Unable to install apps

#4 Post by sunrat »

It is more helpful to post, in code tags, the exact contents of the terminal including command and errors rather than paraphrasing. Error code 1 just means it failed.
If you tried apt install Hardinfo it won't work because the package is called hardinfo, no upper case.
“ computer users can be divided into 2 categories:
Those who have lost data
...and those who have not lost data YET ”
Remember to BACKUP!

rhawkins58
Posts: 2
Joined: 2024-09-11 19:00

[Solved] Re: Unable to install apps

#5 Post by rhawkins58 »

Hi all, I re-installed the entire shebang (Debian12.7) & am now able to install the apps I want. Thanks for all the advice!

Post Reply