conflict between python3-scrollphathd 1.1.0 and python-scrollphathd 1.1.0

Bug #1743199 reported by dl1dby
26
This bug affects 5 people
Affects Status Importance Assigned to Milestone
Raspbian
New
Undecided
Unassigned

Bug Description

when trying to sudo update and upgrade I get the following error message:

dpkg: Fehler beim Bearbeiten des Archivs /var/cache/apt/archives/python3-scrollphathd_1.1.0_all.deb (--unpack):
 Versuch, »/usr/bin/scrollphathd_api« zu überschreiben, welches auch in Paket python-scrollphathd 1.1.0 ist
Fehler traten auf beim Bearbeiten von:
 /var/cache/apt/archives/python3-scrollphathd_1.1.0_all.deb
E: Sub-process /usr/bin/dpkg returned an error code (1)

The german statement translated into english means that /usr/bin/scrollphatd_api cannot be overwritten while installing python3-scrollphathd_1.1.0_all.deb because it already exists in package python-scrollphathd 1.1.0.

Raspberry Pi 3 with newest Raspbian (sd card set up just a week ago from original raspbian image)

Revision history for this message
Fabian (on3-70uch) wrote :

Hi, same here...

Revision history for this message
Fabian (on3-70uch) wrote :

I removed the package and the error is gone. But I cannot install the package again:

sudo apt-get remove python3-scrollphathd
> everything fine

sudo apt-get install python3-scrollphathd
/var/cache/apt/archives/python3-scrollphathd_1.1.0_all.deb
E: Sub-process /usr/bin/dpkg returned an error code (1)

System: Raspbian Stretch

Revision history for this message
Alessandro Ebranati (imbra70) wrote :

Hi; same problem occurred to me: I'm running "Raspbian GNU/Linux 9 (stretch)"
on a "Raspberry Pi 2 Model B Rev 1.1".

Untranslated error message is:
Unpacking python3-scrollphathd (1.1.0) over (1.0.1) ...
dpkg: error processing archive /var/cache/apt/archives/python3-scrollphathd_1.1.0_all.deb (--unpack):
 trying to overwrite '/usr/bin/scrollphathd_api', which is also in package python-scrollphathd 1.1.0
Errors were encountered while processing:
 /var/cache/apt/archives/python3-scrollphathd_1.1.0_all.deb
E: Sub-process /usr/bin/dpkg returned an error code (1)

Revision history for this message
peter green (plugwash) wrote :

What is the output of

apt-cache policy python3-scrollphathd

?

Revision history for this message
Nidhi (nidhi.singh) wrote :

python3-scrollphathd:
  Installed: (none)
  Candidate: 1.1.0
  Version table:
     1.1.0 500
        500 http://archive.raspberrypi.org/debian stretch/main armhf Packages

Revision history for this message
Nidhi (nidhi.singh) wrote :

facing the same problem as above. Above one is the output of apt-cache policy python3-scrollphathd.
i am trying to download opencv on raspbian pi2 model b.

Revision history for this message
Gert (gertmeijeringh) wrote :

Same problem here. The output on my Pi3 was

python3-scrollphathd:
  Installed: 1.0.1
  Candidate: 1.1.0
  Version table:
     1.1.0 500
        500 http://archive.raspberrypi.org/debian stretch/main armhf Packages
 *** 1.0.1 100
        100 /var/lib/dpkg/status

Revision history for this message
peter green (plugwash) wrote :

These are raspberry pi foundation packages and it looks like the issue has already been reported to them at https://github.com/RPi-Distro/repo/issues/100

Revision history for this message
Fabian (on3-70uch) wrote :

Solution found here:
https://www.raspberrypi.org/forums/viewtopic.php?t=202523

Just type the following:
cd /var/cache/apt/archives
sudo dpkg -i --force-overwrite python3-scrollphathd_1.1.0_all.deb

Revision history for this message
mike b 142 (mike142wood) wrote :

While the two versions of the file (for python2 and python3) /usr/bin/scrollphathd_api are different, I have chosen to ignore the fact that the python2 version may not work. It's moot here because I don't have the hardware display hat that this supports.

To post a comment you must log in.
This report contains Public information  
Everyone can see this information.

Other bug subscribers

Remote bug watches

Bug watches keep track of this bug in other bug trackers.