mk-sbuild error: Package libeatmydata1 is not installed - linux

I am trying to compile a few 32 bit debs on my 64 bit Lubuntu (21.10 - Impish Indri). The target is Focal though and I have been trying to build the chroot with mk-sbuild.
The command I ran is mk-sbuild focal --arch=i386 --debootstrap-include=eatmydata
But, even after specifically mentioning eat my data, it still stops at:
I: Configuring build-essential...
I: Configuring libc-bin...
W: Failure while configuring base packages. This will be re-attempted up to five times.
W: See /var/lib/schroot/chroots/focal-i386/debootstrap/debootstrap.log for details (possibly the package eatmydata is at fault)
W: Failure while configuring base packages. This will be re-attempted up to five times.
W: See /var/lib/schroot/chroots/focal-i386/debootstrap/debootstrap.log for details (possibly the package eatmydata is at fault)
W: Failure while configuring base packages. This will be re-attempted up to five times.
W: See /var/lib/schroot/chroots/focal-i386/debootstrap/debootstrap.log for details (possibly the package eatmydata is at fault)
W: Failure while configuring base packages. This will be re-attempted up to five times.
W: See /var/lib/schroot/chroots/focal-i386/debootstrap/debootstrap.log for details (possibly the package eatmydata is at fault)
W: Failure while configuring base packages. This will be re-attempted up to five times.
W: See /var/lib/schroot/chroots/focal-i386/debootstrap/debootstrap.log for details (possibly the package eatmydata is at fault)
And, upon checking the log, these are the lines where the problem starts:
Setting up g++-9 (9.3.0-10ubuntu2) ...
Setting up g++ (4:9.3.0-1ubuntu2) ...
update-alternatives: using /usr/bin/g++ to provide /usr/bin/c++ (c++) in auto mode
Setting up build-essential (12.8ubuntu1) ...
Processing triggers for libc-bin (2.31-0ubuntu9) ...
Errors were encountered while processing:
eatmydata
dpkg: dependency problems prevent configuration of eatmydata:
eatmydata depends on libeatmydata1 (>= 105-7); however:
Package libeatmydata1 is not installed.
dpkg: error processing package eatmydata (--configure):
dependency problems - leaving unconfigured
Errors were encountered while processing:
eatmydata
dpkg: dependency problems prevent configuration of eatmydata:
eatmydata depends on libeatmydata1 (>= 105-7); however:
Package libeatmydata1 is not installed.
dpkg: error processing package eatmydata (--configure):
dependency problems - leaving unconfigured
Errors were encountered while processing:
eatmydata
dpkg: dependency problems prevent configuration of eatmydata:
eatmydata depends on libeatmydata1 (>= 105-7); however:
Package libeatmydata1 is not installed.
dpkg: error processing package eatmydata (--configure):
dependency problems - leaving unconfigured
Errors were encountered while processing:
eatmydata
dpkg: dependency problems prevent configuration of eatmydata:
eatmydata depends on libeatmydata1 (>= 105-7); however:
Package libeatmydata1 is not installed.
dpkg: error processing package eatmydata (--configure):
dependency problems - leaving unconfigured
Errors were encountered while processing:
eatmydata
After trying both pbuilder and debuild I thought sbuild might be the only viable option to build 32 bit debs on a bit OS. But, it's not easy too.
By the way, the 64 bit build goes fine and doesn't ask for eatmydata at all.
Thank you in advance.

Related

How to handle the errors during libwebkitgtk installation on Ubuntu 18.04 LTS?

Every time I tries to install something on Ubuntu using sudo apt-get install ..., it shows like that:
Reading package lists... Done
Building dependency tree
Reading state information... Done
You might want to run 'apt --fix-broken install' to correct these.
The following packages have unmet dependencies:
libwebkit2gtk-4.0-37 : Depends: libjavascriptcoregtk-4.0-18 (= 2.32.3-0ubuntu0.18.04.1) but 2.32.4-0ubuntu0.18.04.1 is to be installed
E: Unmet dependencies. Try 'apt --fix-broken install' with no packages (or specify a solution).
First I tried to sudo apt-get install libwebkit2gtk-4.0-37, it shows like that:
Reading package lists... Done
Building dependency tree
Reading state information... Done
The following packages were automatically installed and are no longer required:
libexiv2-14 libgee-0.8-2 libgexiv2-2 libraw16 linux-hwe-5.4-headers-5.4.0-66
linux-hwe-5.4-headers-5.4.0-67 linux-hwe-5.4-headers-5.4.0-73
linux-hwe-5.4-headers-5.4.0-74 shotwell-common
Use 'sudo apt autoremove' to remove them.
Suggested packages:
libwebkit2gtk-4.0-37-gtk2
The following packages will be upgraded:
libwebkit2gtk-4.0-37
1 upgraded, 0 newly installed, 0 to remove and 206 not upgraded.
43 not fully installed or removed.
Need to get 0 B/13.4 MB of archives.
After this operation, 81.9 kB of additional disk space will be used.
dpkg: warning: files list file for package 'fonts-sil-abyssinica' missing; assuming package has no files currently installed
dpkg: warning: files list file for package 'libatk-adaptor:amd64' missing; assuming package has no files currently installed
dpkg: warning: files list file for package 'libvorbisfile3:amd64' missing; assuming package has no files currently installed
dpkg: warning: files list file for package 'libquadmath0:amd64' missing; assuming package has no files currently installed
dpkg: warning: files list file for package 'libxkbfile1:amd64' missing; assuming package has no files currently installed
<ignoring for a long long list>
Preparing to unpack .../libwebkit2gtk-4.0-37_2.32.4-0ubuntu0.18.04.1_amd64.deb ...
Unpacking libwebkit2gtk-4.0-37:amd64 (2.32.4-0ubuntu0.18.04.1) over (2.32.3-0ubuntu0.18.04.1) ...
dpkg-deb (subprocess): decompressing archive member: lzma error: compressed data is corrupt
dpkg-deb: error: <decompress> subprocess returned error exit status 2
dpkg: error processing archive /var/cache/apt/archives/libwebkit2gtk-4.0-37_2.32.4-0ubuntu0.18.04.1_amd64.deb (--unpack):
cannot copy extracted data for './usr/lib/x86_64-linux-gnu/libwebkit2gtk-4.0.so.37.53.5' to '/usr/lib/x86_64-linux-gnu/libwebkit2gtk-4.0.so.37.53.5.dpkg-new': unexpected end of file or stream
Errors were encountered while processing:
/var/cache/apt/archives/libwebkit2gtk-4.0-37_2.32.4-0ubuntu0.18.04.1_amd64.deb
E: Sub-process /usr/bin/dpkg returned an error code (1)
Then I thought that since it says but 2.32.4-0ubuntu0.18.04.1 is to be installed, so I tries uninstalling it using sudo apt-get purge 2.32.4-0ubuntu0.18.04.1, and things goes like that: (I don't know what the 2.32.4-0ubuntu0.18.04.1 means)
Reading package lists... Done
Building dependency tree
Reading state information... Done
E: Unable to locate package 2.32.4-0ubuntu0.18.04.1
E: Couldn't find any package by glob '2.32.4-0ubuntu0.18.04.1'
E: Couldn't find any package by regex '2.32.4-0ubuntu0.18.04.1'
And I tried sudo apt --fix-broken install, but it still doesn't works. The error messages are the same as that when I run sudo apt-get install libwebkit2gtk-4.0-37.
Could someone help me out? Any reply is in fervent anticipation.
Platform: x64, Ubuntu 18.04 LTS

Postgresql not getting installed on ubuntu 20

I have recently upgraded my ubuntu to 20.04. Now, I am trying to install the postgresql but I am getting error. I have tried to 100 different ways and crawled every web but nothing worked.
These are the steps I followed:
Step 1
sudo apt update
Step 2
sudo apt install postgresql postgresql-contrib
Here is the error log
Setting up postgresql-common (223.pgdg20.04+1) ...
dpkg: error processing package postgresql-common (--configure):
installed postgresql-common package post-installation script subprocess returned error exit status 10
dpkg: dependency problems prevent configuration of postgresql-13:
postgresql-13 depends on postgresql-common (>= 182~); however:
Package postgresql-common is not configured yet.
dpkg: error processing package postgresql-13 (--configure):
dependency problems - leaving unconfigured
dpkg: dependency problems prevent configuration of postgresql:
postgresql depends on postgresql-13; however:
Package postgresql-13 is not configured yet.
dpkg: error processing package postgresql (--configure):
dependency problems - leaving unconfigured
dpkg: dependency problems prevent configuration of postgresql-contrib:
postgresql-contrib depends on postgresql-contrib-13; however:
Package postgresql-contrib-13 is not installed.
Package postgresql-13 which provides postgresql-contrib-13 is not configured yet.
dpkg: error processing package postgresql-contrib (--configure):
dependency problems - leaving unconfigured
Processing triggers for man-db (2.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
9.1-1) ...
Processing triggers for systemd (245.4-4ubuntu3.3) ...
Errors were encountered while processing:
sysstat
postgresql-common
postgresql-13
postgresql
postgresql-contrib
E: Sub-process /usr/bin/dpkg returned an error code (1)
Somebody please help me here

How to install software-properties-gtk package in python? on ubuntu

i run this command sudo apt install python3.7.
E: The package libglu1-mesa:i386 needs to be reinstalled, but I can't find an archive for it.
this error massage still showing.
Reading package lists... Done
Building dependency tree
Reading state information... Done
Suggested packages:
python3.7-venv python3.7-doc
The following NEW packages will be installed:
python3.7
0 upgraded, 1 newly installed, 0 to remove and 4 not upgraded.
1 not fully installed or removed.
Need to get 0 B/528 kB of archives.
After this operation, 439 kB of additional disk space will be used.
Selecting previously unselected package python3.7.
(Reading database ... 199040 files and directories currently installed.)
Preparing to unpack .../python3.7_3.7.7-1+bionic1_amd64.deb ...
Unpacking python3.7 (3.7.7-1+bionic1) ...
Processing triggers for mime-support (3.60ubuntu1) ...
Processing triggers for desktop-file-utils (0.23-1ubuntu3.18.04.2) ...
Setting up python3.7 (3.7.7-1+bionic1) ...
Processing triggers for man-db (2.8.3-2ubuntu0.1) ...
dpkg: error processing package libglu1-mesa:i386 (--configure):
package is in a very bad inconsistent state; you should
reinstall it before attempting configuration
Processing triggers for gnome-menus (3.13.3-11ubuntu1.1) ...
Errors were encountered while processing:
libglu1-mesa:i386
E: Sub-process /usr/bin/dpkg returned an error code (1)
use sudo apt-get install software-properties-gtk

nodejs install issue in linux

sudo apt-get install nodejs
[sudo] password for akhil:
Reading package lists... Done
Building dependency tree
Reading state information... Done
nodejs is already the newest version (4.2.6~dfsg-1ubuntu4.1).
The following packages were automatically installed and are no longer required:
linux-headers-4.4.0-51 linux-headers-4.4.0-51-generic linux-headers-4.4.0-57 linux-headers-4.4.0-57-generic
linux-image-4.4.0-51-generic linux-image-4.4.0-57-generic linux-image-extra-4.4.0-51-generic linux-image-extra-4.4.0-57-generic
ubuntu-core-launcher
Use 'sudo apt autoremove' to remove them.
0 upgraded, 0 newly installed, 0 to remove and 140 not upgraded.
2 not fully installed or removed.
After this operation, 0 B of additional disk space will be used.
Do you want to continue? [Y/n] y
Setting up python-gunicorn (19.4.5-1ubuntu1) ...
update-rc.d: error: initscript does not exist: /etc/init.d/gunicorn
dpkg: error processing package python-gunicorn (--configure):
subprocess installed post-installation script returned error exit status 1
dpkg: dependency problems prevent configuration of gunicorn:
gunicorn depends on python-gunicorn (= 19.4.5-1ubuntu1); however:
Package python-gunicorn is not configured yet.
dpkg: error processing package gunicorn (--configure):
dependency problems - leaving unconfigured
No apport report written because the error message indicates its a followup error from a previous failure.
Errors were encountered while processing:
python-gunicorn
gunicorn
E: Sub-process /usr/bin/dpkg returned an error code (1)
I am trying to install nodejs on my system.But the above error occured.
I already installed gunicorn in my system.Please figureout what is the real issue?

Error when sudo apt-get install php5-cli

I'm using linux mint. I'm trying to install php5-cli, but after execution a corresponding bash command I've the following log:
Reading package lists... Done
Building dependency tree
Reading state information... Done
php5-cli is already the newest version.
0 upgraded, 0 newly installed, 0 to remove and 353 not upgraded.
4 not fully installed or removed.
After this operation, 0 B of additional disk space will be used.
Do you want to continue [Y/n]? y
debconf: DbDriver "config": /var/cache/debconf/config.dat is locked by another process: Resource temporarily unavailable
Setting up php5-common (5.4.6-1ubuntu1.5) ...
debconf: DbDriver "config": /var/cache/debconf/config.dat is locked by another process: Resource temporarily unavailable
dpkg: error processing php5-common (--configure):
subprocess installed post-installation script returned error exit status 1
Setting up man-db (2.6.3-1) ...
debconf: DbDriver "config": /var/cache/debconf/config.dat is locked by another process: Resource temporarily unavailable
dpkg: error processing man-db (--configure):
subprocess installed post-installation script returned error exit status 1
dpkg: dependency problems prevent configuration of libapache2-mod-php5:
libapache2-mod-php5 depends on php5-common (= 5.4.6-1ubuntu1.5); however:
Package php5-common is not configured yet.
dpkg: error processing libapache2-mod-php5 (--configure):
dependency problems - leaving unconfigured
dpkg: dependency problems prevent configuration of php5-cli:
php5-cli depends on php5-common (= 5.4.6-1ubuntu1.5); however:
Package php5-common is not configured yet.
dpkg: error processing php5-cli (--configure):
dependency problems - leaving unconfigured
Errors were encountered while processing:
php5-common
man-db
libapache2-mod-php5
php5-cli
E: Sub-
process /usr/bin/dpkg returned an error code (1)
If I'm trying to execute sudo apt-get install man-db or sudo apt-get install libapache2-mod-php5 I have the same errors. Why it occurred?
I had this same error after symlinking the /etc/php5/cli/php.ini from /etc/php5/apache/php.ini
I deleted the symlink and then called
sudo apt-get -f install
all is good!
before above you should do
sudo mv /etc/php5/cli/php.ini /etc/php5/cli/php.bak

Resources