this kid stuck in errors
using linux mint 20.3 cinnamon [from April 2022]
for some days [2-3 weeks ] whenever i install update a pop up cames with error massage not all updates are installed .......
i ignore that
today my samba stoped working i tryed to reinstall samba and then
Code: Select all
d@MINTBOOK:~$ sudo apt reinstall samba
The following packages will be REINSTALLED:
samba
The following partially installed packages will be configured:
doc-base linux-generic linux-image-5.4.0-121-generic linux-image-generic
linux-modules-extra-5.4.0-121-generic
0 packages upgraded, 0 newly installed, 1 reinstalled, 0 to remove and 0 not upgraded.
Need to get 0 B/11.6 MB of archives. After unpacking 0 B will be used.
(Reading database ... 388489 files and directories currently installed.)
Preparing to unpack .../samba_2%3a4.13.17~dfsg-0ubuntu0.21.04.2_amd64.deb ...
Unpacking samba (2:4.13.17~dfsg-0ubuntu0.21.04.2) over (2:4.13.17~dfsg-0ubuntu0.21.04.2) ...
Setting up doc-base (0.10.9) ...
Registering 47 doc-base files...
[b]Database error: Cannot save file `/var/lib/doc-base/info/status-new.yml': Can't locate PerlIO.pm in @INC (you may need to install the PerlIO module) (@INC contains: /etc/perl /usr/local/lib/x86_64-linux-gnu/perl/5.30.0 /usr/local/share/perl/5.30.0 /usr/lib/x86_64-linux-gnu/perl5/5.30 /usr/share/perl5 /usr/lib/x86_64-linux-gnu/perl/5.30 /usr/share/perl/5.30 /usr/local/lib/site_perl /usr/lib/x86_64-linux-gnu/perl-base) at /usr/share/perl5/YAML/Tiny.pm line 576.
BEGIN failed--compilation aborted.
.[/b]
** Trying to recover from the above install-docs error by
** removing its internal databases and re-calling it afterwards
mv: [b]cannot stat '/var/lib/doc-base/info/status.yml'[/b]: No such file or directory
dpkg: error processing package doc-base (--configure):
installed doc-base package post-installation script subprocess returned error exit status 1
Setting up linux-image-5.4.0-121-generic (5.4.0-121.137) ...
[b]Can't locate DebianLinux.pm in @INC (you may need to install the DebianLinux module) (@INC contains: /etc/perl /usr/local/lib/x86_64-linux-gnu/perl/5.30.0 /usr/local/share/perl/5.30.0 /usr/lib/x86_64-linux-gnu/perl5/5.30 /usr/share/perl5 /usr/lib/x86_64-linux-gnu/perl/5.30 /usr/share/perl/5.30 /usr/local/lib/site_perl /usr/lib/x86_64-linux-gnu/perl-base) at /usr/bin/linux-update-symlinks line 24.[/b]
BEGIN failed--compilation aborted at /usr/bin/linux-update-symlinks line 24.
dpkg: error processing package linux-image-5.4.0-121-generic (--configure):
installed linux-image-5.4.0-121-generic package post-installation script subprocess returned error exit status 2
Setting up samba (2:4.13.17~dfsg-0ubuntu0.21.04.2) ...
Samba is not being run as an AD Domain Controller: Masking samba-ad-dc.service
Please ignore the following error about deb-systemd-helper not finding those services.
(samba-ad-dc.service already masked)
Failed to preset unit: Unit file /etc/systemd/system/samba-ad-dc.service is masked.
/usr/bin/deb-systemd-helper: error: systemctl preset failed on samba-ad-dc.service: No such file or directory
samba-ad-dc.service is a disabled or a static unit not running, not starting it.
Job for nmbd.service failed because the control process exited with error code.
See "systemctl status nmbd.service" and "journalctl -xe" for details.
Job for smbd.service failed because the control process exited with error code.
See "systemctl status smbd.service" and "journalctl -xe" for details.
dpkg: dependency problems prevent configuration of linux-image-generic:
linux-image-generic depends on linux-image-5.4.0-121-generic; however:
Package linux-image-5.4.0-121-generic is not configured yet.
dpkg: error processing package linux-image-generic (--configure):
dependency problems - leaving unconfigured
dpkg: dependency problems prevent configuration of linux-generic:
linux-generic depends on linux-image-generic (= 5.4.0.121.122); however:
Package linux-image-generic is not configured yet.
dpkg: error processing package linux-generic (--configure):
dependency problems - leaving unconfigured
dpkg: dependency problems prevent configuration of linux-modules-extra-5.4.0-121-generic:
linux-modules-extra-5.4.0-121-generic depends on linux-image-5.4.0-121-generic | linux-image-unsigned-5.4.0-121-generic; however:
Package linux-image-5.4.0-121-generic is not configured yet.
Package linux-image-unsigned-5.4.0-121-generic is not installed.
dpkg: error processing package linux-modules-extra-5.4.0-121-generic (--configure):
dependency problems - leaving unconfigured
Processing triggers for libc-bin (2.31-0ubuntu9.9) ...
Processing triggers for ufw (0.36-6ubuntu1) ...
Processing triggers for systemd (245.4-4ubuntu3.17) ...
Processing triggers for man-db (2.9.1-1) ...
Errors were encountered while processing:
doc-base
linux-image-5.4.0-121-generic
linux-image-generic
linux-generic
linux-modules-extra-5.4.0-121-generic
E: Sub-process /usr/bin/dpkg returned an error code (1)
Setting up doc-base (0.10.9) ...
Registering 47 doc-base files...
Database error: Cannot save file `/var/lib/doc-base/info/status-new.yml': Can't locate PerlIO.pm in @INC (you may need to install the PerlIO module) (@INC contains: /etc/perl /usr/local/lib/x86_64-linux-gnu/perl/5.30.0 /usr/local/share/perl/5.30.0 /usr/lib/x86_64-linux-gnu/perl5/5.30 /usr/share/perl5 /usr/lib/x86_64-linux-gnu/perl/5.30 /usr/share/perl/5.30 /usr/local/lib/site_perl /usr/lib/x86_64-linux-gnu/perl-base) at /usr/share/perl5/YAML/Tiny.pm line 576.
BEGIN failed--compilation aborted.
.
** Trying to recover from the above install-docs error by
** removing its internal databases and re-calling it afterwards
mv: cannot stat '/var/lib/doc-base/info/status.yml': No such file or directory
dpkg: error processing package doc-base (--configure):
installed doc-base package post-installation script subprocess returned error exit status 1
Setting up linux-image-5.4.0-121-generic (5.4.0-121.137) ...
Can't locate DebianLinux.pm in @INC (you may need to install the DebianLinux module) (@INC contains: /etc/perl /usr/local/lib/x86_64-linux-gnu/perl/5.30.0 /usr/local/share/perl/5.30.0 /usr/lib/x86_64-linux-gnu/perl5/5.30 /usr/share/perl5 /usr/lib/x86_64-linux-gnu/perl/5.30 /usr/share/perl/5.30 /usr/local/lib/site_perl /usr/lib/x86_64-linux-gnu/perl-base) at /usr/bin/linux-update-symlinks line 24.
BEGIN failed--compilation aborted at /usr/bin/linux-update-symlinks line 24.
dpkg: error processing package linux-image-5.4.0-121-generic (--configure):
installed linux-image-5.4.0-121-generic package post-installation script subprocess returned error exit status 2
dpkg: dependency problems prevent configuration of linux-image-generic:
linux-image-generic depends on linux-image-5.4.0-121-generic; however:
Package linux-image-5.4.0-121-generic is not configured yet.
dpkg: error processing package linux-image-generic (--configure):
dependency problems - leaving unconfigured
dpkg: dependency problems prevent configuration of linux-generic:
linux-generic depends on linux-image-generic (= 5.4.0.121.122); however:
Package linux-image-generic is not configured yet.
dpkg: error processing package linux-generic (--configure):
dependency problems - leaving unconfigured
dpkg: dependency problems prevent configuration of linux-modules-extra-5.4.0-121-generic:
linux-modules-extra-5.4.0-121-generic depends on linux-image-5.4.0-121-generic | linux-image-unsigned-5.4.0-121-generic; however:
Package linux-image-5.4.0-121-generic is not configured yet.
Package linux-image-unsigned-5.4.0-121-generic is not installed.
dpkg: error processing package linux-modules-extra-5.4.0-121-generic (--configure):
dependency problems - leaving unconfigured
Errors were encountered while processing:
doc-base
linux-image-5.4.0-121-generic
linux-image-generic
linux-generic
linux-modules-extra-5.4.0-121-generic
Code: Select all
d@MINTBOOK:~$ sudo apt install perl
Reading package lists... Done
Building dependency tree
Reading state information... Done
perl is already the newest version (5.30.0-9ubuntu0.2).
The following packages will be REMOVED:
linux-image-5.4.0-117-generic
0 upgraded, 0 newly installed, 1 to remove and 0 not upgraded.
6 not fully installed or removed.
After this operation, 13.7 MB disk space will be freed.
Do you want to continue? [Y/n] y
(Reading database ... 388489 files and directories currently installed.)
Removing linux-image-5.4.0-117-generic (5.4.0-117.132) ...
Can't locate DebianLinux.pm in @INC (you may need to install the DebianLinux mod
ule) (@INC contains: /etc/perl /usr/local/lib/x86_64-linux-gnu/perl/5.30.0 /usr/
local/share/perl/5.30.0 /usr/lib/x86_64-linux-gnu/perl5/5.30 /usr/share/perl5 /u
sr/lib/x86_64-linux-gnu/perl/5.30 /usr/share/perl/5.30 /usr/local/lib/site_perl
/usr/lib/x86_64-linux-gnu/perl-base) at /usr/bin/linux-update-symlinks line 24.
BEGIN failed--compilation aborted at /usr/bin/linux-update-symlinks line 24.
dpkg: error processing package linux-image-5.4.0-117-generic (--remove):
installed linux-image-5.4.0-117-generic package post-removal script subprocess
returned error exit status 2
[b]dpkg: too many errors, stopping[/b]
Errors were encountered while processing:
linux-image-5.4.0-117-generic
Processing was halted because there were too many errors.
E: Sub-process /usr/bin/dpkg returned an error code (1)
what should i do now
??????