[Linux Station] Fatal Python error on update

Discussion about various official QPKG software applications. Login required to view the contents.
SleepyPrince
New here
Posts: 8
Joined: Mon Nov 03, 2014 10:19 pm

[Linux Station] Fatal Python error on update

Post by SleepyPrince »

I was trying to update my Linux Station Ubuntu today however I am getting
"Fatal Python error: getrandom() failed" when installing packages.

I tried searching on the internet and first thought it was due to Python3.5 and low entropy
So I installed haveged and entropy_avail now reports >3000
However the same error occurred and I am stuck
I tried resetting the Ubuntu but the problem is still there
jeweller_by
First post
Posts: 1
Joined: Sun Oct 04, 2015 2:24 am

Re: [Linux Station] Fatal Python error on update

Post by jeweller_by »

Have the same problem. Two packets failed on update - python3.5 and python3.5-minimal.
gmo18t
New here
Posts: 7
Joined: Sun Dec 07, 2014 5:31 am

Re: [Linux Station] Fatal Python error on update

Post by gmo18t »

Same here ...
Therefore I reverted to Python 5.2.1-10 to avoid any unpredictable behavior with setup
scripts called during package updates.

- GMo -
xjive
Starting out
Posts: 17
Joined: Fri Mar 02, 2012 4:06 pm

Re: [Linux Station] Fatal Python error on update

Post by xjive »

im having the same issue to on kylin but it wont let me open terminal or software and updates ive reinstalled kylin 3 time and after I update this happends. i can get xterm open but i get the python errors on updates so no packages get updated. If anyone has a fix it would be greatly appreciated.
Burgelaar
First post
Posts: 1
Joined: Fri Feb 18, 2011 9:27 pm

Re: [Linux Station] Fatal Python error on update

Post by Burgelaar »

Having the same problem here.
I also tried resetting

Update:
Ubuntu 14.04 doesn't have this issue.
(You can choose the version in linux station)
rsotam
New here
Posts: 4
Joined: Mon Dec 14, 2015 9:40 am

Re: [Linux Station] Fatal Python error on update

Post by rsotam »

I'm having the same problem. I'm using Ubuntu 16.04 LTS. Do you have a solution?

Thanks
thehobbit30
Starting out
Posts: 10
Joined: Tue Sep 29, 2015 7:06 am

Re: [Linux Station] Fatal Python error on update

Post by thehobbit30 »

Not sure what happened by I am having the same problem. Don't really want to move to Ubuntu 14!
Knappe371

Re: [Linux Station] Fatal Python error on update

Post by Knappe371 »

gmo18t wrote:Same here ...
Therefore I reverted to Python 5.2.1-10 to avoid any unpredictable behavior with setup
scripts called during package updates.

- GMo -
Hi GMo,

could you explain how you did that in detail?
Thanks!
gmo18t
New here
Posts: 7
Joined: Sun Dec 07, 2014 5:31 am

Re: [Linux Station] Fatal Python error on update

Post by gmo18t »

Hi,

i searched INet for the following deb packages

Code: Select all

  libpython3.5_3.5.1-10_amd64.deb
  libpython3.5-minimal_3.5.1-10_amd64.deb
  libpython3.5-stdlib_3.5.1-10_amd64.deb
  python3.5_3.5.1-10_amd64.deb
  python3.5-minimal_3.5.1-10_amd64.deb
and after (manually) dowloading I installed it via command:

Code: Select all

sudo dpkg -i *.deb
- GMo -
SleepyPrince
New here
Posts: 8
Joined: Mon Nov 03, 2014 10:19 pm

Re: [Linux Station] Fatal Python error on update

Post by SleepyPrince »

gmo18t, did downloading and installing from other source solve the problem?
i dont want to reset the system again
i am currenly using apt-mark to hold off the update

edit: I think I get what you mean now
download the older version and install them manually to overwrite the one with problem
which is the same version as I got now with 3.5.2-16.01 held off
gmo18t
New here
Posts: 7
Joined: Sun Dec 07, 2014 5:31 am

Re: [Linux Station] Fatal Python error on update

Post by gmo18t »

Yes right, i did overswrite the problematic version with the older 3.5.1-10.
Afterwards i also marked these packages as “HOLD“.

- GMo -
Knappe371

Re: [Linux Station] Fatal Python error on update

Post by Knappe371 »

That worked just fine. Thank you GMo!
JackieBrown
Starting out
Posts: 11
Joined: Fri Mar 27, 2015 10:59 am

Re: [Linux Station] Fatal Python error on update

Post by JackieBrown »

Is there a different long term solution for this?
iwings
New here
Posts: 9
Joined: Sat Jun 20, 2015 7:49 pm

Re: [Linux Station] Fatal Python error on update

Post by iwings »

I've created an issue on python bug tracker.
https://bugs.python.org/issue27955

In the meantime, you can replace broken python 3.5.2 binary with the patched one.
Do this at your own risk!!

Code: Select all

$ sudo -i
root@ubuntu_1604:~# apt update && apt upgrade
...
Errors were encountered while processing:
 /var/cache/apt/archives/language-selector-gnome_0.165.4_all.deb
 /var/cache/apt/archives/language-selector-common_0.165.4_all.deb
 /var/cache/apt/archives/python3-uno_1%3a5.1.4-0ubuntu1_amd64.deb
E: Sub-process /usr/bin/dpkg returned an error code (1)

root@ubuntu_1604:~# mkdir deb && cd deb
root@ubuntu_1604:~/deb# wget "https://www.dropbox.com/s/rvrea63oue4brum/python3.5-minimal_3.5.2-2~16.01ubuntu1_amd64.deb"
root@ubuntu_1604:~/deb# ar vx python3.5-minimal_3.5.2-2~16.01ubuntu1_amd64.deb
root@ubuntu_1604:~/deb# tar xvfJ data.tar.xz
root@ubuntu_1604:~/deb# cp -p usr/bin/python3.5 /usr/bin
root@ubuntu_1604:~/deb# cp -p usr/bin/python3.5m /usr/bin
root@ubuntu_1604:~/deb# apt upgrade -f
If you want to build the package directly, use this patch file.
https://www.dropbox.com/s/3cexzqf2yj0ov0p/random.diff
SleepyPrince
New here
Posts: 8
Joined: Mon Nov 03, 2014 10:19 pm

Re: [Linux Station] Fatal Python error on update

Post by SleepyPrince »

iwings, thanks for the patch.
It works for me, hope they will put out an update soon.
Post Reply

Return to “Official Apps”