dpkg-query: package 'python-meep' is not installed - python-3.x

It seems my instance of python3 (on a Kubuntu virtual box) asked to install meep as part of some other package installation process. That installation failed, and now every time I try to install a packages I get a meep-related installation error. For instance, this just happened today.
pel#pel-VirtualBox:~/work$ sudo apt install pipenv
Reading package lists... Done
Building dependency tree
Reading state information... Done
The following package was automatically installed and is no longer required:
libllvm9
Use 'sudo apt autoremove' to remove it.
The following additional packages will be installed:
python3-appdirs python3-distlib python3-filelock python3-virtualenv
python3-virtualenv-clone
The following NEW packages will be installed:
pipenv python3-appdirs python3-distlib python3-filelock python3-virtualenv
python3-virtualenv-clone
0 upgraded, 6 newly installed, 0 to remove and 0 not upgraded.
1 not fully installed or removed.
Need to get 3,465 kB of archives.
After this operation, 13.9 MB of additional disk space will be used.
Do you want to continue? [Y/n]
Get:1 http://us.archive.ubuntu.com/ubuntu focal/main amd64 python3-appdirs all 1.4.3-2.1 [10.8 kB]
Get:2 http://us.archive.ubuntu.com/ubuntu focal/universe amd64 python3-distlib all 0.3.0-1 [116 kB]
Get:3 http://us.archive.ubuntu.com/ubuntu focal/universe amd64 python3-filelock all 3.0.12-2 [7,948 B]
Get:4 http://us.archive.ubuntu.com/ubuntu focal/universe amd64 python3-virtualenv all 20.0.17-1 [63.4 kB]
Get:5 http://us.archive.ubuntu.com/ubuntu focal/universe amd64 python3-virtualenv-clone all 0.3.0-2 [8,696 B]
Get:6 http://us.archive.ubuntu.com/ubuntu focal/universe amd64 pipenv all 11.9.0-1 [3,258 kB]
Fetched 3,465 kB in 2s (1,760 kB/s)
Selecting previously unselected package python3-appdirs.
(Reading database ... 287182 files and directories currently installed.)
Preparing to unpack .../0-python3-appdirs_1.4.3-2.1_all.deb ...
Unpacking python3-appdirs (1.4.3-2.1) ...
Selecting previously unselected package python3-distlib.
Preparing to unpack .../1-python3-distlib_0.3.0-1_all.deb ...
Unpacking python3-distlib (0.3.0-1) ...
Selecting previously unselected package python3-filelock.
Preparing to unpack .../2-python3-filelock_3.0.12-2_all.deb ...
Unpacking python3-filelock (3.0.12-2) ...
Selecting previously unselected package python3-virtualenv.
Preparing to unpack .../3-python3-virtualenv_20.0.17-1_all.deb ...
Unpacking python3-virtualenv (20.0.17-1) ...
Selecting previously unselected package python3-virtualenv-clone.
Preparing to unpack .../4-python3-virtualenv-clone_0.3.0-2_all.deb ...
Unpacking python3-virtualenv-clone (0.3.0-2) ...
Selecting previously unselected package pipenv.
Preparing to unpack .../5-pipenv_11.9.0-1_all.deb ...
Unpacking pipenv (11.9.0-1) ...
Setting up python3-filelock (3.0.12-2) ...
Setting up python3-virtualenv-clone (0.3.0-2) ...
Setting up python3-distlib (0.3.0-1) ...
Setting up python3-meep (1.12.0-2build2) ...
dpkg-query: package 'python-meep' is not installed
Use dpkg --contents (= dpkg-deb --contents) to list archive files contents.
Traceback (most recent call last):
File "/usr/bin/pycompile", line 289, in <module>
main()
File "/usr/bin/pycompile", line 262, in main
options.force, options.optimize, e_patterns)
File "/usr/bin/pycompile", line 154, in compile
for fn, versions_to_compile in filter_files(files, e_patterns, versions):
File "/usr/bin/pycompile", line 109, in filter_files
for fn in files:
File "/usr/share/python/debpython/files.py", line 77, in filter_out_ext
for fn in files:
File "/usr/share/python/debpython/namespace.py", line 77, in add_namespace_files
for fn in files:
File "/usr/share/python/debpython/files.py", line 69, in filter_public
for fn in files:
File "/usr/share/python/debpython/files.py", line 53, in from_package
raise Exception("cannot get content of %s" % package_name)
Exception: cannot get content of python-meep
dpkg: error processing package python3-meep (--configure):
installed python3-meep package post-installation script subprocess returned error exit status 1
Setting up python3-appdirs (1.4.3-2.1) ...
Setting up python3-virtualenv (20.0.17-1) ...
Setting up pipenv (11.9.0-1) ...
Processing triggers for man-db (2.9.1-1) ...
Processing triggers for libc-bin (2.31-0ubuntu9) ...
Errors were encountered while processing:
python3-meep
E: Sub-process /usr/bin/dpkg returned an error code (1)
No amount of auto-removing purging or removing has had any effect. Update and upgrading have not worked. I'm at wits end. Does anyone have any suggestions short of ripping out python and reinstalling everything?

I had the same issue on my system. I have done something that is most likely not recommended. I did not have a choice except taking the risk. If you follow the procedure below, you are also taking a risk. However, the only assurance is that it worked for me.
The guilty package is python3-meep. It perhaps got upgraded without the package name being changed internally. This is where I confirmed the issue. A search revealed that the issue has been reported and fixed in Debian. It will perhaps take some time to make its way through to Ubuntu
$grep python-meep /var/lib/dpkg/info/python3-meep.*
/var/lib/dpkg/info/python3-meep.postinst: pycompile -p python-meep
/var/lib/dpkg/info/python3-meep.prerm: pyclean -p python-meep
/var/lib/dpkg/info/python3-meep.prerm: dpkg -L python-meep | grep \.py$ | while read file
So in the file
/var/lib/dpkg/info/python3-meep.postinst I replaced the occurrence of python-meep with python3-meep.
/var/lib/dpkg/info/python3-meep.prerm I replaced two occurrences of python-meep with python3-meep.
Then I could remove python3-meep
$ sudo apt-get remove python3-meep
Reading package lists... Done
Building dependency tree
Reading state information... Done
The following packages will be REMOVED:
python3-meep
0 upgraded, 0 newly installed, 1 to remove and 17 not upgraded.
1 not fully installed or removed.
After this operation, 3,225 kB disk space will be freed.
Do you want to continue? [Y/n]
(Reading database ... 371161 files and directories currently installed.)
Removing python3-meep (1.12.0-2build2) ...
Processing triggers for libc-bin (2.31-0ubuntu9.2) ...
$
I would appreciate if someone points to a cleaner approach.

Related

Error Installing NodeJS From Command Line

To install NodeJS on a fresh copy of Linux on a virtual machine I'd type apt install nodejs
And I'd get the following output:
Reading package lists... Done
Building dependency tree... Done
Reading state information... Done
The following additional packages will be installed:
javascript-common libc-ares2 libjs-highlight.js libnode72 libuv1 nodejs-doc
Suggested packages:
npm
The following NEW packages will be installed:
javascript-common libc-ares2 libjs-highlight.js libnode72 libuv1 nodejs nodejs-doc
0 upgraded, 7 newly installed, 0 to remove and 0 not upgraded.
Need to get 11.7 MB of archives.
After this operation, 50.9 MB of additional disk space will be used.
Do you want to continue? [Y/n]
Get:1 http://deb.debian.org/debian bullseye/main amd64 javascript-common all 11+nmu1 [6260 B]
Get:2 http://deb.debian.org/debian bullseye/main amd64 libc-ares2 amd64 1.17.1-1+deb11u1 [102 kB]
Get:3 http://deb.debian.org/debian bullseye/main amd64 libjs-highlight.js all 9.18.5+dfsg1-1 [397 kB]
Get:4 http://deb.debian.org/debian bullseye/main amd64 libuv1 amd64 1.40.0-2 [132 kB]
Get:5 http://deb.debian.org/debian-security bullseye-security/main amd64 libnode72 amd64 12.22.12~dfsg-1~deb11u1 [8319 kB]
Get:6 http://deb.debian.org/debian-security bullseye-security/main amd64 nodejs amd64 12.22.12~dfsg-1~deb11u1 [147 kB]
Get:7 http://deb.debian.org/debian-security bullseye-security/main amd64 nodejs-doc all 12.22.12~dfsg-1~deb11u1 [2547 kB]
Fetched 11.7 MB in 0s (42.8 MB/s)
debconf: delaying package configuration, since apt-utils is not installed
Selecting previously unselected package javascript-common.
(Reading database ... 17840 files and directories currently installed.)
Preparing to unpack .../0-javascript-common_11+nmu1_all.deb ...
Unpacking javascript-common (11+nmu1) ...
Selecting previously unselected package libc-ares2:amd64.
Preparing to unpack .../1-libc-ares2_1.17.1-1+deb11u1_amd64.deb ...
Unpacking libc-ares2:amd64 (1.17.1-1+deb11u1) ...
Selecting previously unselected package libjs-highlight.js.
Preparing to unpack .../2-libjs-highlight.js_9.18.5+dfsg1-1_all.deb ...
Unpacking libjs-highlight.js (9.18.5+dfsg1-1) ...
Selecting previously unselected package libuv1:amd64.
Preparing to unpack .../3-libuv1_1.40.0-2_amd64.deb ...
Unpacking libuv1:amd64 (1.40.0-2) ...
Selecting previously unselected package libnode72:amd64.
Preparing to unpack .../4-libnode72_12.22.12~dfsg-1~deb11u1_amd64.deb ...
Unpacking libnode72:amd64 (12.22.12~dfsg-1~deb11u1) ...
Selecting previously unselected package nodejs.
Preparing to unpack .../5-nodejs_12.22.12~dfsg-1~deb11u1_amd64.deb ...
Unpacking nodejs (12.22.12~dfsg-1~deb11u1) ...
Selecting previously unselected package nodejs-doc.
Preparing to unpack .../6-nodejs-doc_12.22.12~dfsg-1~deb11u1_all.deb ...
Unpacking nodejs-doc (12.22.12~dfsg-1~deb11u1) ...
Setting up javascript-common (11+nmu1) ...
dpkg: error processing package javascript-common (--configure):
installed javascript-common package post-installation script subprocess returned error exit status 1
Setting up libc-ares2:amd64 (1.17.1-1+deb11u1) ...
Setting up libuv1:amd64 (1.40.0-2) ...
Setting up libjs-highlight.js (9.18.5+dfsg1-1) ...
Setting up libnode72:amd64 (12.22.12~dfsg-1~deb11u1) ...
Setting up nodejs-doc (12.22.12~dfsg-1~deb11u1) ...
Setting up nodejs (12.22.12~dfsg-1~deb11u1) ...
update-alternatives: using /usr/bin/nodejs to provide /usr/bin/js (js) in auto mode
update-alternatives: warning: skip creation of /usr/share/man/man1/js.1.gz because associated file /usr/share/man/man1/nodejs.1.gz (of link group js) doesn't exist
Processing triggers for libc-bin (2.31-13+deb11u3) ...
Errors were encountered while processing:
javascript-common
E: Sub-process /usr/bin/dpkg returned an error code (1)
Now, whenever I try to install anything I get an error. If I reset the machine and try to install other stuff it would work fine, but I always get the error when installing NodeJS.
What is the error and how can I fix it and move on?

in Ubuntu why don't I see a specific version in usr/bin of python when I download it?

Hi I'm trying to get a specific version of python working in a virtualenv
I tried these solutions:
https://askubuntu.com/questions/682869/how-do-i-install-a-different-python-version-using-apt-get
I didn't do the compiling answers because it looked like doing that was going to get rid of my "old" newer version of python.
So I'm mostly concerned with the first answer. I did this:
sudo add-apt-repository ppa:deadsnakes/ppa
sudo apt-get update
sudo apt-get install python3.3
it seemed to work out ok although I didn't get a "python3.3 is installed message" or however it's supposed to look:
sudo apt-get install python3.3
Reading package lists... Done
Building dependency tree
Reading state information... Done
Note, selecting 'python3-3parclient' for regex 'python3.3'
The following additional packages will be installed:
python3-dnspython python3-eventlet python3-greenlet
Suggested packages:
python-eventlet-doc python-greenlet-doc python-greenlet-dev
python3-greenlet-dbg
The following NEW packages will be installed:
python3-3parclient python3-dnspython python3-eventlet python3-greenlet
0 upgraded, 4 newly installed, 0 to remove and 7 not upgraded.
Need to get 316 kB of archives.
After this operation, 1,867 kB of additional disk space will be used.
Do you want to continue? [Y/n] Y
Get:1 http://us.archive.ubuntu.com/ubuntu focal/main amd64 python3-greenlet amd64 0.4.15-4.1 [15.7 kB]
Get:2 http://us.archive.ubuntu.com/ubuntu focal/main amd64 python3-dnspython all 1.16.0-1build1 [89.1 kB]
Get:3 http://us.archive.ubuntu.com/ubuntu focal-updates/main amd64 python3-eventlet all 0.25.1-2ubuntu1 [154 kB]
Get:4 http://us.archive.ubuntu.com/ubuntu focal/universe amd64 python3-3parclient all 4.2.11-0ubuntu1 [57.4 kB]
Fetched 316 kB in 0s (1,007 kB/s)
Selecting previously unselected package python3-greenlet.
(Reading database ... 212769 files and directories currently installed.)
Preparing to unpack .../python3-greenlet_0.4.15-4.1_amd64.deb ...
Unpacking python3-greenlet (0.4.15-4.1) ...
Selecting previously unselected package python3-dnspython.
Preparing to unpack .../python3-dnspython_1.16.0-1build1_all.deb ...
Unpacking python3-dnspython (1.16.0-1build1) ...
Selecting previously unselected package python3-eventlet.
Preparing to unpack .../python3-eventlet_0.25.1-2ubuntu1_all.deb ...
Unpacking python3-eventlet (0.25.1-2ubuntu1) ...
Selecting previously unselected package python3-3parclient.
Preparing to unpack .../python3-3parclient_4.2.11-0ubuntu1_all.deb ...
Unpacking python3-3parclient (4.2.11-0ubuntu1) ...
Setting up python3-greenlet (0.4.15-4.1) ...
Setting up python3-dnspython (1.16.0-1build1) ...
Setting up python3-eventlet (0.25.1-2ubuntu1) ...
/usr/lib/python3/dist-packages/eventlet/db_pool.py:78: SyntaxWarning: "is" with a literal. Did you mean "=="?
if self.max_age is 0 or self.max_idle is 0:
/usr/lib/python3/dist-packages/eventlet/db_pool.py:78: SyntaxWarning: "is" with a literal. Did you mean "=="?
if self.max_age is 0 or self.max_idle is 0:
Setting up python3-3parclient (4.2.11-0ubuntu1) ...
/usr/lib/python3/dist-packages/hpe3parclient/http.py:278: SyntaxWarning: "is" with a literal. Did you mean "=="?
if self.tries is 0:
After this was done, I expected python 3.3 to be available in usr/bin so I could set up a virtualenv with it, but it's not. Is there a step I'm missing?
Thanks!
Found out that 3.3 doesn't work with my ubuntu 20.04. I thought because my python2.7 worked I could just move up to 3.3 no problem. I guess the 2.7 only is there because it was leftover from an older ubuntu.
Anyways, python3.5 worked for me!
I assume you're using ubuntu 20.04
Unfortunately, without funding I can't provide packages for python<3.5 on 20.04 because those versions never received the libssl1.1 patches upstream. I could patch them myself but that's a lot of work I can't rationalize doing for free. So on 20.04 you'll need to use python3.5+
The reason "something" installed was apt-get """helpfully""" normalized your package name to something completely unrelated:
Note, selecting 'python3-3parclient' for regex 'python3.3'
disclaimer: I maintain deadsnakes

Slack installation/boot error: ssh: Could not resolve hostname slack-master Name or Service not known [duplicate]

ssh: Could not resolve hostname slack-master: Name or service not known
rsync: did not see server greeting
rsync error: error starting client-server protocol (code 5) at main.c(1653) [Receiver=3.1.0]
FATAL[slack-getroles]: 'rsync --links --times -e ssh slack-master::slack/etc/roles.conf /var/cache/slack/_role_list' exited 5 at /usr/lib/slack/slack-getroles line 158.
FATAL[slack]: '/usr/lib/slack/slack-getroles' exited 5 at /usr/sbin/slack line 205.
I suspect, this problem has occured from the time I have installed the anaconda package of python. The following steps helped me to resolve the issue.
Step 1: Restart the machine
Step 2: $ sudo apt-get remove slack
Step 3: Download the latest version of slack from Slack website (Find the latest package here - https://slack.com/):
$ wget https://downloads.slack-edge.com/linux_releases/slack-desktop-2.9.0-amd64.deb
Step 4: $ Install the downloaded package using the dpkg utility:
sudo dpkg -i slack-desktop-2.9.0-amd64.deb
In step 4, we will witness the following error:
$ sudo dpkg -i slack-desktop-2.9.0-amd64.deb
(Reading database ... 215272 files and directories currently installed.)
Preparing to unpack slack-desktop-2.9.0-amd64.deb ...
Unpacking slack-desktop (2.9.0) over (2.9.0) ...
dpkg: dependency problems prevent configuration of slack-desktop:
slack-desktop depends on python; however:
Package python is not installed.
dpkg: error processing package slack-desktop (--install):
dependency problems - leaving unconfigured
Processing triggers for gnome-menus (3.13.3-6ubuntu3.1) ...
Processing triggers for desktop-file-utils (0.22-1ubuntu5.1) ...
Processing triggers for bamfdaemon (0.5.3~bzr0+16.04.20160824-0ubuntu1) ...
Rebuilding /usr/share/applications/bamf-2.index...
Processing triggers for mime-support (3.59ubuntu1) ...
Errors were encountered while processing:
slack-desktop
$
To fix this problem: in step 5
Step 5: Install the missing dependencies using: sudo apt-get install -f
$ sudo apt-get install -f
Reading package lists... Done
Building dependency tree
Reading state information... Done
Correcting dependencies... Done
The following additional packages will be installed:
python python2.7
Suggested packages:
python-doc python-tk python2.7-doc
The following NEW packages will be installed:
python python2.7
0 upgraded, 2 newly installed, 0 to remove and 125 not upgraded.
1 not fully installed or removed.
Need to get 361 kB of archives.
After this operation, 1,009 kB of additional disk space will be used.
Do you want to continue? [Y/n] Y
Get:1 http://in.archive.ubuntu.com/ubuntu xenial-updates/main amd64 python2.7 amd64 2.7.12-1ubuntu0~16.04.1 [224 kB]
Get:2 http://in.archive.ubuntu.com/ubuntu xenial/main amd64 python amd64 2.7.11-1 [137 kB]
Fetched 361 kB in 0s (384 kB/s)
Selecting previously unselected package python2.7.
(Reading database ... 215272 files and directories currently installed.)
Preparing to unpack .../python2.7_2.7.12-1ubuntu0~16.04.1_amd64.deb ...
Unpacking python2.7 (2.7.12-1ubuntu0~16.04.1) ...
Selecting previously unselected package python.
Preparing to unpack .../python_2.7.11-1_amd64.deb ...
Unpacking python (2.7.11-1) ...
Processing triggers for gnome-menus (3.13.3-6ubuntu3.1) ...
Processing triggers for desktop-file-utils (0.22-1ubuntu5.1) ...
Processing triggers for bamfdaemon (0.5.3~bzr0+16.04.20160824-0ubuntu1) ...
Rebuilding /usr/share/applications/bamf-2.index...
Processing triggers for mime-support (3.59ubuntu1) ...
Processing triggers for man-db (2.7.5-1) ...
Processing triggers for doc-base (0.10.7) ...
Processing 1 added doc-base file...
Setting up python2.7 (2.7.12-1ubuntu0~16.04.1) ...
Setting up python (2.7.11-1) ...
Setting up slack-desktop (2.9.0) ...
$
I assume you're interested in the slack of https://slack.com. Don't install it through sudo apt install slack: this is another package (if you're interested in this other mysterious slack package, run apt show slack).
To install the slack of https://slack.com, follow the instructions on their website. At the moment, a convenient way is sudo snap install slack --classic, perhaps preceded by sudo apt install snap.
(don't forget to sudo apt remove slack...)
For me All my programs fail if installed through the Ubuntu app store. If I go to the website and manually install their software from their links then everything works fine.
Doing this fixed this exact issue for me for slack. Just went to the slack site and downloaded the .deb file
I had the same issue. Even downloading the slack .deb file from Slack failed.
I tried sudo apt reinstall slack etc but did not work.
SOLUTION: https://snapcraft.io/slack
sudo snap install slack --classic
This solved it for me even while it was still in a "broken" state.
said#said:~$ sudo rm /usr/sbin/slack
said#said:~$ sudo ln -s /usr/lib/slack/slack /usr/sbin/slack
said#said:~$ slack

Not able to install vim

Iam trying to install vim and i get the following error
$ sudo apt-get install vim
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:
libpng12-0 : Breaks: libpng12-0:i386 (!= 1.2.50-2+deb8u3) but 1.2.54-1ubuntu1 is to be installed
libpng12-0:i386 : Breaks: libpng12-0 (!= 1.2.54-1ubuntu1) but 1.2.50-2+deb8u3 is to be installed
vim : Depends: vim-common (= 2:7.4.1689-3ubuntu1.2) but 2:7.4.1689-3ubuntu1 is to be installed
Depends: vim-runtime (= 2:7.4.1689-3ubuntu1.2) but it is not going to be installed
E: Unmet dependencies. Try 'apt-get -f install' with no packages (or specify a solution).
Then I tried to run apt-get -f install with no packages.Then i got this error
The following additional packages will be installed:
libpng12-0
The following packages will be upgraded:
libpng12-0
1 upgraded, 0 newly installed, 0 to remove and 594 not upgraded.
3 not fully installed or removed.
Need to get 116 kB of archives.
After this operation, 11.3 kB of additional disk space will be used.
Do you want to continue? [Y/n] y
Get:1 http://archive.ubuntu.com/ubuntu xenial/main amd64 libpng12-0 amd64 1.2.54-1ubuntu1 [116 kB]
Fetched 116 kB in 1s (69.8 kB/s)
(Reading database ... 240235 files and directories currently installed.)
Preparing to unpack .../libpng12-0_1.2.54-1ubuntu1_amd64.deb ...
Unpacking libpng12-0:amd64 (1.2.54-1ubuntu1) over (1.2.50-2+deb8u3) ...
dpkg: error processing archive /var/cache/apt/archives/libpng12-0_1.2.54-1ubuntu1_amd64.deb (--unpack):
trying to overwrite shared '/usr/share/doc/libpng12-0/ANNOUNCE', which is different from other instances of package libpng12-0:amd64
Processing triggers for libc-bin (2.23-0ubuntu3) ...
Errors were encountered while processing:
/var/cache/apt/archives/libpng12-0_1.2.54-1ubuntu1_amd64.deb
E: Sub-process /usr/bin/dpkg returned an error code (1)
If anyone could suggest the reason of this error that would be very helpful

sudo apt-get install libao-common

Reading package lists... Done
Building dependency tree
Reading state information... Done
The following NEW packages will be installed:
libao-common
0 upgraded, 1 newly installed, 0 to remove and 52 not upgraded.
4 not fully installed or removed.
Need to get 0 B/11.3 kB of archives.
After this operation, 49.2 kB of additional disk space will be used.
dpkg: regarding .../libao-common_1.1.0-2_armhf.deb containing libao-common:
libao-common conflicts with libao2
libao2 (version 0.8.4-1) is present and unpacked but not configured.
dpkg: error processing /var/cache/apt/archives/libao-common_1.1.0-2_armhf.deb (--unpack):
conflicting packages - not installing libao-common
Errors were encountered while processing:
/var/cache/apt/archives/libao-common_1.1.0-2_armhf.deb
E: Sub-process /usr/bin/dpkg returned an error code (1)
Why is conflicting packages not installing libao-common?
It’s on a Raspberry PI with Raspbian.
apt-get -f install doesn't work
root#raspberrypi:~# apt-get -f install
Reading package lists... Done
Building dependency tree
Reading state information... Done
Correcting dependencies... Done
The following extra packages will be installed:
libao-common
The following NEW packages will be installed:
libao-common
0 upgraded, 1 newly installed, 0 to remove and 52 not upgraded.
4 not fully installed or removed.
Need to get 11.3 kB of archives.
After this operation, 49.2 kB of additional disk space will be used.
Do you want to continue [Y/n]? y
Get:1 http://mirrordirector.raspbian.org/raspbian/ wheezy/main libao-common armhf 1.1.0-2 [11.3 kB]
Fetched 11.3 kB in 2s (4,117 B/s)
dpkg: regarding .../libao-common_1.1.0-2_armhf.deb containing libao-common:
libao-common conflicts with libao2
libao2 (version 0.8.4-1) is present and unpacked but not configured.
dpkg: error processing /var/cache/apt/archives/libao-common_1.1.0-2_armhf.deb (--unpack):
conflicting packages - not installing libao-common
Errors were encountered while processing:
/var/cache/apt/archives/libao-common_1.1.0-2_armhf.deb
E: Sub-process /usr/bin/dpkg returned an error code (1)
notice that message:
4 not fully installed or removed.
maybe you install other package failed. then the apt tool try to install them again.
so, uninstall these error package first.
sudo apt-get --force-yes remove #your-package-name#
you need to remove the 4 not fully installed or removed package first.
then
sudo apt autoremove
now, try to install the new package again.

Resources