I am using Ubuntu 16.04 and use sudo apt-get upgrade
. After that, I use sudo apt-get -f install
and I got the error below. Could you tell me how should I fix it? Thanks
Do you want to continue? [Y/n] y
dpkg: warning: files list file for package 'apport-symptoms' missing; assuming package has no files currently installed
dpkg: warning: files list file for package 'apport' missing; assuming package has no files currently installed
(Reading database ... 290080 files and directories currently installed.)
Preparing to unpack .../python3-apport_2.20.1-0ubuntu2.14_all.deb ...
/var/lib/dpkg/info/python3-apport.prerm: 6: /var/lib/dpkg/info/python3-apport.prerm: py3clean: not found
dpkg: warning: subprocess old pre-removal script returned error exit status 127
dpkg: trying script from the new package instead ...
/var/lib/dpkg/tmp.ci/prerm: 6: /var/lib/dpkg/tmp.ci/prerm: py3clean: not found
dpkg: error processing archive /var/cache/apt/archives/python3-apport_2.20.1-0ubuntu2.14_all.deb (--unpack):
subprocess new pre-removal script returned error exit status 127
Errors were encountered while processing:
/var/cache/apt/archives/python3-apport_2.20.1-0ubuntu2.14_all.deb
E: Sub-process /usr/bin/dpkg returned an error code (1)
Update: This is error when run the first command of Starnet
Reading package lists... Done
Building dependency tree
Reading state information... Done
You might want to run 'apt-get -f install' to correct these:
The following packages have unmet dependencies:
apport : Depends: python3-apport (>= 2.20.1-0ubuntu2.14) but 2.20.1-0ubuntu2.13 is to be installed
apport-gtk : Depends: python3-apport (>= 2.20.1-0ubuntu2.14) but 2.20.1-0ubuntu2.13 is to be installed
E: Unmet dependencies. Try 'apt-get -f install' with no packages (or specify a solution).
Then I run sudo apt-get -f install
Reading package lists... Done
Building dependency tree
Reading state information... Done
Correcting dependencies... Done
The following additional packages will be installed:
python3-apport
Suggested packages:
python3-launchpadlib
The following packages will be upgraded:
python3-apport
1 upgraded, 0 newly installed, 0 to remove and 1 not upgraded.
4 not fully installed or removed.
Need to get 0 B/79.5 kB of archives.
After this operation, 0 B of additional disk space will be used.
Do you want to continue? [Y/n]
When I select yes, it still show the error as above
sudo dpkg -i --force-all /var/cache/apt/archives/python3-apport_2.20.1-0ubuntu2.14_all.deb
and start over. – N0rbert Jan 03 '18 at 10:33dpkg: error processing archive /var/cache/apt/archives/python3-apport_2.20.1-0ubuntu2.14_all.deb (--install): cannot access archive: No such file or directory Errors were encountered while processing: /var/cache/apt/archives/python3-apport_2.20.1-0ubuntu2.14_all.deb
– KimHee Jan 03 '18 at 10:40