andysilch
Posts: 12
Joined: Wed Oct 03, 2012 12:23 pm
Location: Reading, UK

Upgrade fails - sense-emu-tools : Depends: python3-gi-cairo

Tue Jan 29, 2019 12:52 pm

Hi,

Just powered up my Pi Zero W for the first time in about 3 months so did an update + upgrade. The update seemed to go OK - same as a Pi 3 done as a test.

uname -a
Linux rpi19 4.14.71+ #1145 Fri Sep 21 15:06:38 BST 2018 armv6l GNU/Linux

The upgrade failed with...
+++
Reading package lists... Done
Building dependency tree
Reading state information... Done
You might want to run 'apt --fix-broken install' to correct these.
The following packages have unmet dependencies:
sense-emu-tools : Depends: python3-gi-cairo but it is not installed
E: Unmet dependencies. Try 'apt --fix-broken install' with no packages (or specify a solution).
---

So I tried...
sudo apt --fix-broken install
+++
Reading package lists... Done
Building dependency tree
Reading state information... Done
Correcting dependencies... Done
The following packages were automatically installed and are no longer required:
lxkeymap python-cairo python-gobject python-gobject-2 python-gtk2 python-xklavier
Use 'sudo apt autoremove' to remove them.
The following additional packages will be installed:
python3-cairo python3-gi-cairo
The following NEW packages will be installed:
python3-cairo python3-gi-cairo
0 upgraded, 2 newly installed, 0 to remove and 104 not upgraded.
15 not fully installed or removed.
Need to get 0 B/352 kB of archives.
After this operation, 532 kB of additional disk space will be used.
Do you want to continue? [Y/n] y
(Reading database ... 127098 files and directories currently installed.)
Preparing to unpack .../python3-cairo_1.10.0+dfsg-5_armhf.deb ...
Unpacking python3-cairo (1.10.0+dfsg-5) ...
dpkg-deb (subprocess): decompressing archive member: lzma error: compressed data is corrupt
dpkg-deb: error: subprocess <decompress> returned error exit status 2
dpkg: error processing archive /var/cache/apt/archives/python3-cairo_1.10.0+dfsg-5_armhf.deb (--unpack):
cannot copy extracted data for './usr/lib/python3/dist-packages/cairo/_cairo.cpython-34m-arm-linux-gnueabihf.so' to '/usr/lib/python3/dist-packages/cairo/_cairo.cpython-34m-arm-linux-gnueabihf.so.dpkg-new': unexpected end of file or stream
Preparing to unpack .../python3-gi-cairo_3.22.0-2_armhf.deb ...
Unpacking python3-gi-cairo (3.22.0-2) ...
dpkg-deb (subprocess): decompressing archive member: lzma error: compressed data is corrupt
dpkg-deb: error: subprocess <decompress> returned error exit status 2
dpkg: error processing archive /var/cache/apt/archives/python3-gi-cairo_3.22.0-2_armhf.deb (--unpack):
cannot copy extracted data for './usr/lib/python3/dist-packages/gi/_gi_cairo.cpython-35m-arm-linux-gnueabihf.so' to '/usr/lib/python3/dist-packages/gi/_gi_cairo.cpython-35m-arm-linux-gnueabihf.so.dpkg-new': unexpected end of file or stream
Errors were encountered while processing:
/var/cache/apt/archives/python3-cairo_1.10.0+dfsg-5_armhf.deb
/var/cache/apt/archives/python3-gi-cairo_3.22.0-2_armhf.deb
E: Sub-process /usr/bin/dpkg returned an error code (1)
---

Any pointers??

Ta, Andy.

User avatar
ashwith
Posts: 18
Joined: Sun Jun 03, 2012 7:52 am
Location: Bangalore, India
Contact: Website

Re: Upgrade fails - sense-emu-tools : Depends: python3-gi-cairo

Tue Jun 11, 2019 6:16 am

I'm facing this problem too. I uninstalled the sense-hat emulator because I couldn't get it to work. When I tried reinstalling it, I saw the same error. It appears python3-gi-cairo isn't in the repository.

ShiftPlusOne
Raspberry Pi Engineer & Forum Moderator
Raspberry Pi Engineer & Forum Moderator
Posts: 6022
Joined: Fri Jul 29, 2011 5:36 pm
Location: The unfashionable end of the western spiral arm of the Galaxy

Re: Upgrade fails - sense-emu-tools : Depends: python3-gi-cairo

Tue Jun 11, 2019 4:14 pm

Looks okay from here.

http://raspbian.raspberrypi.org/raspbia ... _armhf.deb

The sense-emu-tools installs and runs fine too.

Op seems to have had corrupted data.

User avatar
ashwith
Posts: 18
Joined: Sun Jun 03, 2012 7:52 am
Location: Bangalore, India
Contact: Website

Re: Upgrade fails - sense-emu-tools : Depends: python3-gi-cairo

Sat Jun 15, 2019 10:45 am

ShiftPlusOne wrote:
Tue Jun 11, 2019 4:14 pm
Looks okay from here.

http://raspbian.raspberrypi.org/raspbia ... _armhf.deb

The sense-emu-tools installs and runs fine too.

Op seems to have had corrupted data.
Thank you for your reply. I see that my /etc/apt/sources.list.d/raspi.list file has the following in it:

Code: Select all

deb http://archive.raspberrypi.org/debian/ stretch main ui
# Uncomment line below then 'apt-get update' to enable 'apt-get source'
#deb-src http://archive.raspberrypi.org/debian/ stretch main ui
However, https://www.raspbian.org/RaspbianRepository suggests something different. Which of these is correct? Maybe this is why I don't see python3-gi-cairo when I try to install it?

ShiftPlusOne
Raspberry Pi Engineer & Forum Moderator
Raspberry Pi Engineer & Forum Moderator
Posts: 6022
Joined: Fri Jul 29, 2011 5:36 pm
Location: The unfashionable end of the western spiral arm of the Galaxy

Re: Upgrade fails - sense-emu-tools : Depends: python3-gi-cairo

Sat Jun 15, 2019 10:58 am

Your raspi.list looks OK. What does sources.list look like?

User avatar
B.Goode
Posts: 8839
Joined: Mon Sep 01, 2014 4:03 pm
Location: UK

Re: Upgrade fails - sense-emu-tools : Depends: python3-gi-cairo

Sat Jun 15, 2019 10:59 am

ashwith wrote:
Sat Jun 15, 2019 10:45 am
ShiftPlusOne wrote:
Tue Jun 11, 2019 4:14 pm
Looks okay from here.

http://raspbian.raspberrypi.org/raspbia ... _armhf.deb

The sense-emu-tools installs and runs fine too.

Op seems to have had corrupted data.
Thank you for your reply. I see that my /etc/apt/sources.list.d/raspi.list file has the following in it:

Code: Select all

deb http://archive.raspberrypi.org/debian/ stretch main ui
# Uncomment line below then 'apt-get update' to enable 'apt-get source'
#deb-src http://archive.raspberrypi.org/debian/ stretch main ui
However, https://www.raspbian.org/RaspbianRepository suggests something different. Which of these is correct? Maybe this is why I don't see python3-gi-cairo when I try to install it?


The Raspberry Pi Foundation distribution of the Raspbian Operating System moved from being based on Debian Wheezy to Debian Jessie in September 2015. ( And from Jessie to Stretch in August 2017.)

It is clear that the cited information referring to the Wheezy release of Raspbian is very outdated and unreliable. (My understanding is that site is not the responsibility of the Raspberry Pi Foundation.)

ShiftPlusOne
Raspberry Pi Engineer & Forum Moderator
Raspberry Pi Engineer & Forum Moderator
Posts: 6022
Joined: Fri Jul 29, 2011 5:36 pm
Location: The unfashionable end of the western spiral arm of the Galaxy

Re: Upgrade fails - sense-emu-tools : Depends: python3-gi-cairo

Sat Jun 15, 2019 11:01 am

Also, op's error message is about a file being corrupted, not about it missing.

Return to “Troubleshooting”