Score:1

I can't install Steam or any other software. Is there a problem with dpkg error - how to solve this?

us flag

When I tried to install Steam , I got the following errors:

root@vishal-Inspiron-3542:/home/vishal# sudo apt install steam
Reading package lists... Done
Building dependency tree       
Reading state information... Done
steam:i386 is already the newest version (1:1.0.0.61-2ubuntu3).
0 upgraded, 0 newly installed, 0 to remove and 0 not upgraded.
8 not fully installed or removed.
Need to get 0 B/1,451 kB of archives.
After this operation, 0 B of additional disk space will be used.
Do you want to continue? [Y/n] y
Setting up php7.4-common (7.4.3-4ubuntu2.5) ...
dpkg: error processing package php7.4-common (--configure):
 installed php7.4-common package post-installation script subprocess returned error exit status 10
dpkg: dependency problems prevent configuration of php7.4-readline:
 php7.4-readline depends on php7.4-common (= 7.4.3-4ubuntu2.5); however:
  Package php7.4-common is not configured yet.

dpkg: error processing package php7.4-readline (--configure):
 dependency problems - leaving unconfigured
dpkg: dependency problems prevent configuration of php7.4-cli:
 php7.4-cli depends on php7.4-common (= 7.4.3-4ubuntu2.5); however:
  Package php7.4-common is not configured yet.
 php7.4-cli depends on php7.4-readline; however:
  Package php7.4-readline is not configured yet.

dpkg: error processing package php7.4-cli (--configure):
 dependency problems - leaving unconfigured
dpkg: dependency problems prevent configuration of php7.4:
 php7.4 depends on php7.4-common; however:
  Package php7.4-common is not configured yet.

dpkg: error processing package php7.4 (--configure):
 dependency problems - leaving unconfigured
No apport report written because the error message indicates its a followup error from a previous failure.
No apport report written because the error message indicates its a followup error from a previous failure.
No apport report written because MaxReports is reached already
No apport report written because MaxReports is reached already

dpkg: dependency problems prevent configuration of php7.4-opcache:
 php7.4-opcache depends on php7.4-common (= 7.4.3-4ubuntu2.5); however:
  Package php7.4-common is not configured yet.

dpkg: error processing package php7.4-opcache (--configure):
 dependency problems - leaving unconfigured
dpkg: dependency problems prevent configuration of libapache2-mod-php7.4:
 libapache2-mod-php7.4 depends on php7.4-cli; however:
  Package php7.4-cli is not configured yet.
 libapache2-mod-php7.4 depends on php7.4-common (= 7.4.3-4ubuntu2.5); however:
  Package php7.4-common is not configured yet.
 libapache2-mod-php7.4 depends on php7.4-opcache; however:
  Package php7.4-opcache is not configured yet.

dpkg: error processing package libapache2-mod-php7.4 (--configure):
 dependency problems - leaving unconfigured
No apport report written because MaxReports is reached already
dpkg: dependency problems prevent configuration of php7.4-json:
 php7.4-json depends on php7.4-common (= 7.4.3-4ubuntu2.5); however:
  Package php7.4-common is not configured yet.

dpkg: error processing package php7.4-json (--configure):
 dependency problems - leaving unconfigured
No apport report written because MaxReports is reached already
Errors were encountered while processing:
 php7.4-common
 php7.4-readline
 php7.4-cli
 php7.4
 php7.4-opcache
 libapache2-mod-php7.4
 php7.4-json
E: Sub-process /usr/bin/dpkg returned an error code (1)
N0rbert avatar
zw flag
What is your Ubuntu version? What is the output of `apt-cache policy steam:i386 php7.4 libapache2-mod-php7.4` - add it to question.
Nmath avatar
ng flag
Edit your question with the output of `sudo apt update`
Score:1
zw flag

The errors in your question seems not related to Steam.

To fix errors with PHP packages run

sudo apt-get update
sudo apt-get install -f
sudo dpkg --configure -a
sudo apt-get dist-upgrade

Also please note that you do not need sudo when you are already root user. Being root for long time is dangerous, then use sudo while being normal user.

Gourav Raghuwanshi avatar
us flag
this is not working.
mangohost

Post an answer

Most people don’t grasp that asking a lot of questions unlocks learning and improves interpersonal bonding. In Alison’s studies, for example, though people could accurately recall how many questions had been asked in their conversations, they didn’t intuit the link between questions and liking. Across four studies, in which participants were engaged in conversations themselves or read transcripts of others’ conversations, people tended not to realize that question asking would influence—or had influenced—the level of amity between the conversationalists.