package oscar 1.0.1-r1 failed to install/upgrade: installed oscar package post-installation script subprocess returned error exit status 1
Affects | Status | Importance | Assigned to | Milestone | |
---|---|---|---|---|---|
oscar (Ubuntu) |
New
|
Undecided
|
Unassigned |
Bug Description
Description: Ubuntu 20.10
Release: 20.10
oscar:
Installed: 1.0.1-r1
Candidate: 1.1.1-1
Version table:
1.1.1-1 500
500 http://
*** 1.0.1-r1 100
100 /var/lib/
This machine is a fresh install (groovy gorilla, amd64) with "minimal" packages - so LibreOffice was not installed by default. I attempted to open an .xls file by clicking it in the file manager; responded to the resulting pop-up dialogue with "find an app to open this" and (from the list of three suggested apps) selecting LibreOffice Calc. The "Ubuntu Software" app popped up; I clicked "Install" - it sat at "0% completed" for a minute or two, then failed with the prompt to report this to Ubuntu as a bug and with "Unable to install 'LibreOffice Calc' as not supported.
An attempt to "apt install libreoffice" as root from the command line also fails, with:
# apt install libreoffice
Waiting for cache lock: Could not get lock /var/lib/
Reading package lists... Done
Building dependency tree
Reading state information... Done
The following packages were automatically installed and are no longer required:
libbrotli1:i386 libbsd0:i386 libcairo2:i386 libexpat1:i386 libffi8ubuntu1:i386 libfontconfig1:i386 libfreetype6:i386
libgdk-
libtiff5:i386 libwebp6:i386 libx11-6:i386 libxau6:i386 libxcb-render0:i386 libxcb-shm0:i386 libxcb1:i386 libxdmcp6:i386
libxext6:i386 libxrender1:i386
Use 'apt autoremove' to remove them.
The following additional packages will be installed:
firebird3.
fonts-
fonts-
libfbclient2 libfreehand-0.1-1 libib-util libmspub-0.1-1 libpagemaker-0.0-0 libpq5 libreoffice-base libreoffice-
libreoffice-draw libreoffice-gnome libreoffice-gtk3 libreoffice-impress libreoffice-
libreoffice-
libreoffice-
libreoffice-
libtommath1 libunoil-java
Suggested packages:
firebird3.
liblog4j1.2-java gpa hyphen-
libreoffice-
libofficebean
libreofficeki
The following NEW packages will be installed:
firebird3.
fonts-
fonts-
libfbclient2 libfreehand-0.1-1 libib-util libmspub-0.1-1 libpagemaker-0.0-0 libpq5 libreoffice libreoffice-base
libreoffice-
libreoffice-math libreoffice-
libreoffice-
libreoffice-
libtommath1 libunoil-java
0 upgraded, 49 newly installed, 0 to remove and 1 not upgraded.
1 not fully installed or removed.
Need to get 122 MB of archives.
After this operation, 519 MB of additional disk space will be used.
Do you want to continue? [Y/n] y
Get:1 http://
Get:2 http://
Get:3 http://
Get:4 http://
Get:5 http://
Get:6 http://
Get:7 http://
Get:8 http://
Get:9 http://
Get:10 http://
Get:11 http://
Get:12 http://
Get:13 http://
Get:14 http://
Get:15 http://
Get:16 http://
Get:17 http://
Get:18 http://
Get:19 http://
Get:20 http://
Get:21 http://
Get:22 http://
Get:23 http://
Get:24 http://
Get:25 http://
Get:26 http://
Get:27 http://
Get:28 http://
Get:29 http://
Get:30 http://
Get:31 http://
Get:32 http://
Get:33 http://
Get:34 http://
Get:35 http://
Get:36 http://
Get:37 http://
Get:38 http://
Get:39 http://
Get:40 http://
Get:41 http://
Get:42 http://
Get:43 http://
Get:44 http://
Get:45 http://
Get:46 http://
Get:47 http://
Get:48 http://
Get:49 http://
Fetched 122 MB in 58s (2,095 kB/s)
Extracting templates from packages: 100%
Selecting previously unselected package libreoffice-
(Reading database ... 284965 files and directories currently installed.)
Preparing to unpack .../00-
Unpacking libreoffice-
Selecting previously unselected package libreoffice-base.
Preparing to unpack .../01-
No diversion 'diversion of /usr/lib/
breoffice-base', none removed.
No diversion 'diversion of /usr/lib/
breoffice-base', none removed.
Unpacking libreoffice-base (1:7.0.
Selecting previously unselected package firebird3.
Preparing to unpack .../02-
Unpacking firebird3.
Selecting previously unselected package firebird3.0-common.
Preparing to unpack .../03-
Unpacking firebird3.0-common (3.0.6.
Selecting previously unselected package libtommath1:amd64.
Preparing to unpack .../04-
Unpacking libtommath1:amd64 (1.2.0-5) ...
Selecting previously unselected package libfbclient2:amd64.
Preparing to unpack .../05-
Unpacking libfbclient2:amd64 (3.0.6.
Selecting previously unselected package libib-util:amd64.
Preparing to unpack .../06-
Unpacking libib-util:amd64 (3.0.6.
Selecting previously unselected package firebird3.
Preparing to unpack .../07-
Unpacking firebird3.
Selecting previously unselected package firebird3.0-utils.
Preparing to unpack .../08-
Unpacking firebird3.0-utils (3.0.6.
Selecting previously unselected package fonts-crosextra
Preparing to unpack .../09-
Unpacking fonts-crosextra
Selecting previously unselected package fonts-crosextra
Preparing to unpack .../10-
Unpacking fonts-crosextra
Selecting previously unselected package fonts-dejavu.
Preparing to unpack .../11-
Unpacking fonts-dejavu (2.37-2) ...
Selecting previously unselected package fonts-linuxlibe
Preparing to unpack .../12-
Unpacking fonts-linuxlibe
Selecting previously unselected package fonts-noto-core.
Preparing to unpack .../13-
Unpacking fonts-noto-core (20200323-1build1) ...
Selecting previously unselected package fonts-noto-extra.
Preparing to unpack .../14-
Unpacking fonts-noto-extra (20200323-1build1) ...
Selecting previously unselected package fonts-noto-ui-core.
Preparing to unpack .../15-
Unpacking fonts-noto-ui-core (20200323-1build1) ...
Selecting previously unselected package fonts-sil-gentium.
Preparing to unpack .../16-
Unpacking fonts-sil-gentium (20081126:1.03-3) ...
Selecting previously unselected package fonts-sil-
Preparing to unpack .../17-
Unpacking fonts-sil-
Selecting previously unselected package gstreamer1.
Preparing to unpack .../18-
Unpacking gstreamer1.
Selecting previously unselected package libabw-0.1-1:amd64.
Preparing to unpack .../19-
Unpacking libabw-0.1-1:amd64 (0.1.3-1build1) ...
Selecting previously unselected package libbsh-java.
Preparing to unpack .../20-
Unpacking libbsh-java (2.0b4-20) ...
Selecting previously unselected package libcommons-
Preparing to unpack .../21-
Unpacking libcommons-
Selecting previously unselected package libe-book-
Preparing to unpack .../22-
Unpacking libe-book-
Selecting previously unselected package libepubgen-
Preparing to unpack .../23-
Unpacking libepubgen-
Selecting previously unselected package libfreehand-0.1-1.
Preparing to unpack .../24-
Unpacking libfreehand-0.1-1 (0.1.2-3) ...
Selecting previously unselected package libmspub-
Preparing to unpack .../25-
Unpacking libmspub-
Selecting previously unselected package libpagemaker-
Preparing to unpack .../26-
Unpacking libpagemaker-
Selecting previously unselected package libpq5:amd64.
Preparing to unpack .../27-
Unpacking libpq5:amd64 (12.5-0ubuntu0.
Selecting previously unselected package libreoffice-draw.
Preparing to unpack .../28-
Unpacking libreoffice-draw (1:7.0.
Selecting previously unselected package libreoffice-
Preparing to unpack .../29-
Unpacking libreoffice-impress (1:7.0.
Selecting previously unselected package libreoffice-math.
Preparing to unpack .../30-
Unpacking libreoffice-math (1:7.0.
Selecting previously unselected package libreoffice-
Preparing to unpack .../31-
Unpacking libreoffice-
Selecting previously unselected package libreoffice-writer.
Preparing to unpack .../32-
Unpacking libreoffice-writer (1:7.0.
Selecting previously unselected package libreoffice.
Preparing to unpack .../33-
Unpacking libreoffice (1:7.0.
Selecting previously unselected package libreoffice-gnome.
Preparing to unpack .../34-
Unpacking libreoffice-gnome (1:7.0.
Selecting previously unselected package libreoffice-gtk3.
Preparing to unpack .../35-
Unpacking libreoffice-gtk3 (1:7.0.
Selecting previously unselected package libunoil-java.
Preparing to unpack .../36-
Unpacking libunoil-java (1:7.0.
Selecting previously unselected package libreoffice-
Preparing to unpack .../37-
Unpacking libreoffice-
Selecting previously unselected package libreoffice-
Preparing to unpack .../38-
Unpacking libreoffice-
Selecting previously unselected package libreoffice-
Preparing to unpack .../39-
Unpacking libreoffice-
Selecting previously unselected package libreoffice-
Preparing to unpack .../40-
Unpacking libreoffice-
Selecting previously unselected package libreoffice-
Preparing to unpack .../41-
Unpacking libreoffice-
Selecting previously unselected package libreoffice-
Preparing to unpack .../42-
Unpacking libreoffice-
Selecting previously unselected package libreoffice-
Preparing to unpack .../43-
Unpacking libreoffice-
Selecting previously unselected package libreoffice-
Preparing to unpack .../44-
Unpacking libreoffice-
Selecting previously unselected package libreoffice-
Preparing to unpack .../45-
Unpacking libreoffice-
Selecting previously unselected package libreoffice-
Preparing to unpack .../46-
Unpacking libreoffice-
Selecting previously unselected package libreoffice-
Preparing to unpack .../47-
Unpacking libreoffice-
Selecting previously unselected package libreoffice-
Preparing to unpack .../48-
Unpacking libreoffice-
Setting up libreoffice-
Setting up libreoffice-math (1:7.0.
Creating config file /etc/libreoffic
Setting up libreoffice-gtk3 (1:7.0.
Setting up fonts-sil-
Setting up fonts-dejavu (2.37-2) ...
Setting up libmspub-
Setting up libtommath1:amd64 (1.2.0-5) ...
Setting up fonts-noto-extra (20200323-1build1) ...
Setting up oscar (1.0.1-r1) ...
mv: cannot stat '/opt/tempDir': No such file or directory
ln: failed to create symbolic link '/usr/bin/OSCAR': File exists
chown: cannot access '/home/
chmod: cannot access '/home/
dpkg: error processing package oscar (--configure):
installed oscar package post-installation script subprocess returned error exit status 1
Setting up libreoffice-
Setting up libunoil-java (1:7.0.
Setting up libpq5:amd64 (12.5-0ubuntu0.
Setting up libcommons-
Setting up libreoffice-
Setting up gstreamer1.
Setting up libpagemaker-
Setting up libe-book-
Setting up firebird3.
Setting up fonts-crosextra
Setting up firebird3.0-common (3.0.6.
Setting up fonts-sil-gentium (20081126:1.03-3) ...
Setting up libreoffice-
Setting up libfreehand-0.1-1 (0.1.2-3) ...
Setting up fonts-linuxlibe
Setting up libbsh-java (2.0b4-20) ...
Setting up libreoffice-gnome (1:7.0.
Creating config file /etc/libreoffic
Setting up libabw-0.1-1:amd64 (0.1.3-1build1) ...
Setting up libepubgen-
Setting up fonts-crosextra
Setting up libreoffice-
Setting up libib-util:amd64 (3.0.6.
Setting up fonts-noto-ui-core (20200323-1build1) ...
Setting up fonts-noto-core (20200323-1build1) ...
Setting up libreoffice-base (1:7.0.
Creating config file /etc/libreoffic
Setting up libreoffice-
Creating config file /etc/libreoffic
Setting up libreoffice-writer (1:7.0.
Creating config file /etc/libreoffic
Setting up libreoffice-draw (1:7.0.
Creating config file /etc/libreoffic
Creating config file /etc/libreoffic
Setting up libreoffice-
Setting up libreoffice-
Setting up libreoffice-
Setting up libreoffice-
Setting up libfbclient2:amd64 (3.0.6.
Setting up firebird3.0-utils (3.0.6.
Setting up libreoffice-impress (1:7.0.
Creating config file /etc/libreoffic
Creating config file /etc/libreoffic
Setting up libreoffice-
Setting up libreoffice-
Setting up libreoffice (1:7.0.
Setting up libreoffice-
Creating config file /etc/libreoffic
Setting up firebird3.
Setting up libreoffice-
Processing triggers for fontconfig (2.13.1-2ubuntu3) ...
Processing triggers for desktop-file-utils (0.24-1ubuntu4) ...
Processing triggers for mime-support (3.64ubuntu1) ...
Processing triggers for gnome-menus (3.36.0-1ubuntu1) ...
Processing triggers for libc-bin (2.32-0ubuntu3) ...
Processing triggers for man-db (2.9.3-2) ...
Processing triggers for libreoffice-common (1:7.0.
Errors were encountered while processing:
oscar
E: Sub-process /usr/bin/dpkg returned an error code (1)
Attempting to remove or reinstall the 'oscar' package also fails:
root@amdesktop:
Reading package lists... Done
Building dependency tree
Reading state information... Done
The following packages were automatically installed and are no longer required:
libbrotli1:i386 libbsd0:i386 libcairo2:i386 libexpat1:i386 libffi8ubuntu1:i386 libfontconfig1:i386 libfreetype6:i386
libgdk-
libqt5serialport5 libtiff5:i386 libwebp6:i386 libx11-6:i386 libxau6:i386 libxcb-render0:i386 libxcb-shm0:i386 libxcb1:i386
libxdmcp6:i386 libxext6:i386 libxrender1:i386
Use 'apt autoremove' to remove them.
The following packages will be REMOVED:
oscar
0 upgraded, 0 newly installed, 1 to remove and 0 not upgraded.
1 not fully installed or removed.
After this operation, 9,927 kB disk space will be freed.
Do you want to continue? [Y/n] y
(Reading database ... 290877 files and directories currently installed.)
Removing oscar (1.0.1-r1) ...
rm: cannot remove '/home/
dpkg: error processing package oscar (--remove):
installed oscar package pre-removal script subprocess returned error exit status 1
dpkg: too many errors, stopping
chown: cannot access '/home/
chmod: cannot access '/home/
dpkg: error while cleaning up:
installed oscar package post-installation script subprocess returned error exit status 1
Errors were encountered while processing:
oscar
Processing was halted because there were too many errors.
E: Sub-process /usr/bin/dpkg returned an error code (1)
root@amdesktop:
Reading package lists... Done
Building dependency tree
Reading state information... Done
The following packages were automatically installed and are no longer required:
libbrotli1:i386 libbsd0:i386 libcairo2:i386 libexpat1:i386 libffi8ubuntu1:i386 libfontconfig1:i386 libfreetype6:i386
libgdk-
libqt5serialport5 libtiff5:i386 libwebp6:i386 libx11-6:i386 libxau6:i386 libxcb-render0:i386 libxcb-shm0:i386 libxcb1:i386
libxdmcp6:i386 libxext6:i386 libxrender1:i386
Use 'apt autoremove' to remove them.
The following packages will be REMOVED:
oscar
0 upgraded, 0 newly installed, 1 to remove and 0 not upgraded.
1 not fully installed or removed.
After this operation, 9,927 kB disk space will be freed.
Do you want to continue? [Y/n] y
(Reading database ... 290877 files and directories currently installed.)
Removing oscar (1.0.1-r1) ...
rm: cannot remove '/home/
dpkg: error processing package oscar (--remove):
installed oscar package pre-removal script subprocess returned error exit status 1
dpkg: too many errors, stopping
chown: cannot access '/home/
chmod: cannot access '/home/
dpkg: error while cleaning up:
installed oscar package post-installation script subprocess returned error exit status 1
Errors were encountered while processing:
oscar
Processing was halted because there were too many errors.
E: Sub-process /usr/bin/dpkg returned an error code (1)
root@amdesktop:
Reading package lists... Done
Building dependency tree
Reading state information... Done
The following packages were automatically installed and are no longer required:
libbrotli1:i386 libbsd0:i386 libcairo2:i386 libexpat1:i386 libffi8ubuntu1:i386 libfontconfig1:i386 libfreetype6:i386
libgdk-
libtiff5:i386 libwebp6:i386 libx11-6:i386 libxau6:i386 libxcb-render0:i386 libxcb-shm0:i386 libxcb1:i386 libxdmcp6:i386
libxext6:i386 libxrender1:i386
Use 'apt autoremove' to remove them.
The following packages will be upgraded:
oscar
1 upgraded, 0 newly installed, 0 to remove and 0 not upgraded.
1 not fully installed or removed.
Need to get 3,357 kB of archives.
After this operation, 2,383 kB disk space will be freed.
Get:1 http://
Fetched 3,357 kB in 2s (1,844 kB/s)
(Reading database ... 290878 files and directories currently installed.)
Preparing to unpack .../oscar_
rm: cannot remove '/home/
dpkg: warning: old oscar package pre-removal script subprocess returned error exit status 1
dpkg: trying script from the new package instead ...
dpkg: error processing archive /var/cache/
there is no script in the new version of the package - giving up
chown: cannot access '/home/
chmod: cannot access '/home/
dpkg: error while cleaning up:
installed oscar package post-installation script subprocess returned error exit status 1
Errors were encountered while processing:
/var/cache/
E: Sub-process /usr/bin/dpkg returned an error code (1)
root@amdesktop:
root@amdesktop:
-rw-r--r-- 1 root root 194 Jan 22 12:56 /home/Desktop
root@amdesktop:
[Desktop Entry]
Version=1.1
Name=OSCAR
GenericName=CPAP Reporter
TryExec=OSCAR
Exec=OSCAR
Terminal=false
Icon=/opt/
Type=Application
Categories=
Any attempt to delete /home//
# ls -l /home/Desktop
-rw-r--r-- 1 root root 194 Jan 22 12:59 /home/Desktop
# rm /home/Desktop
# mkdir /home/Desktop
# cp ~carlb/
# apt install --reinstall oscar
succeeds. No idea why this happened, no idea whether it's a bug or just one corrupted system.
ProblemType: Package
DistroRelease: Ubuntu 20.10
Package: oscar 1.0.1-r1
ProcVersionSign
Uname: Linux 5.8.0-40-generic x86_64
ApportVersion: 2.20.11-0ubuntu50.3
Architecture: amd64
CasperMD5CheckR
Date: Fri Jan 22 12:27:36 2021
ErrorMessage: installed oscar package post-installation script subprocess returned error exit status 1
Python3Details: /usr/bin/python3.8, Python 3.8.6, python3-minimal, 3.8.6-0ubuntu1
PythonDetails: /usr/bin/python2.7, Python 2.7.18, python-is-python2, 2.7.17-4
RelatedPackageV
dpkg 1.20.5ubuntu2
apt 2.1.10ubuntu0.2
SourcePackage: oscar
Title: package oscar 1.0.1-r1 failed to install/upgrade: installed oscar package post-installation script subprocess returned error exit status 1
UpgradeStatus: No upgrade log present (probably fresh install)
tags: | removed: need-duplicate-check |