× NETGEAR will be terminating ReadyCLOUD service by July 1st, 2023. For more details click here.
Orbi WiFi 7 RBE973
Reply

[Readynas Pro] Plex update refuses to Install

Nightraider89
Aspirant

[Readynas Pro] Plex update refuses to Install

(Readynas OS6 6.9.4. Hotfix 1, still on this version because of an adapted kernel to get vpn working)

Hi There!

 

Since this morning, i was updating my readynas and all,  i wanted to import the newest release of Plex Media Server on my NAS (1.16.5.1554), downloaded the *.deb file and installed it in Frontview, wich came up with an error "could not install plexmediaserver"

 

The Old version does not start up anymore either 😞

 

the attatched Screenshot shows putty with an print of the "journalctl -p err -b"command, i dont know why he cant find the apps folder ( or parse?) since it is still where it belongs.

 

 

I also tried apt-get -f install, that got me another bunch of errors from dpkg, see the other screenshot. (2nd post, can only upload one on this post)

 

 

Thanks for any help!

 

is there anyone who knows how to fix this?

Model: RNDP6000|ReadyNAS Pro 6 Chassis only
Message 1 of 6

Accepted Solutions
Nightraider89
Aspirant

Re: [Readynas Pro] Plex update refuses to Install

Well, Got it working! after some help, we discovered that python-urllib3 was the problem, 

 

This one made it recover : 

apt-get -m --reinstall install python python-minimal dh-python
dpkg --configure -a

After that, those erros where gone, and Plex installe dlike a charm, so i guess this would  answer for every problem like this, not only Plex.

 

Thanks for your time to read my problem!

View solution in original post

Message 6 of 6

All Replies
Nightraider89
Aspirant

Re: [Readynas Pro] Plex update refuses to Install

screenshot ''apt-get -f install"

Message 2 of 6
Nightraider89
Aspirant

Re: [Readynas Pro] Plex update refuses to Install

Is there anyone with an idea? went on holiday and stuff so got a break from it, tried the newest plex package now and still the same error 😞

Message 3 of 6
Sandshark
Sensei

Re: [Readynas Pro] Plex update refuses to Install

See if there is any more information in the apt-history.log in the downloaded logs .zip.

Message 4 of 6
Nightraider89
Aspirant

Re: [Readynas Pro] Plex update refuses to Install

Start-Date: 2019-09-29  16:12:18
Commandline: apt-get -qq install --fix-broken
Error: Sub-process /usr/bin/dpkg returned an error code (1)
End-Date: 2019-09-29  16:12:19

Start-Date: 2019-09-29  16:12:21
Commandline: apt-get -qq install -fy rn-dictionary freeapp-collection readynasos ca-certificates
Error: Sub-process /usr/bin/dpkg returned an error code (1)
End-Date: 2019-09-29  16:12:22

Start-Date: 2019-09-29  20:04:42
Commandline: apt-get -qq install --fix-broken
Error: Sub-process /usr/bin/dpkg returned an error code (1)
End-Date: 2019-09-29  20:04:42

Start-Date: 2019-09-29  20:04:43
Commandline: apt-get -y remove
Error: Sub-process /usr/bin/dpkg returned an error code (1)
End-Date: 2019-09-29  20:04:43

Start-Date: 2019-09-29  20:04:46
Commandline: apt-get -yq install --reinstall --allow-downgrades -o APT::Status-Fd=5 /tmp/plexmediaserver_1.17.0.1709-982421575_amd64.deb
Install: plexmediaserver:amd64 (1.17.0.1709-982421575)
Error: Sub-process /usr/bin/dpkg returned an error code (1)
End-Date: 2019-09-29  20:05:22

Start-Date: 2019-09-29  20:05:23
Commandline: apt-get -yq purge plexmediaserver
Purge: plexmediaserver:amd64 (1.17.0.1709-982421575)
Error: Sub-process /usr/bin/dpkg returned an error code (1)
End-Date: 2019-09-29  20:05:26

Thats the Output of today. there at least is a error code, to bad its very general..

 

 

This is the output if i copy the same line in terminal

 

~# apt-get -yq install --reinstall --allow-downgrades -o APT::Status-Fd=5 /tmp/plexmediaserver_1.17.0.1709-982421575_amd64.deb
Reading package lists...
Building dependency tree...
Reading state information...
The following NEW packages will be installed:
  plexmediaserver
0 upgraded, 1 newly installed, 0 to remove and 19 not upgraded.
3 not fully installed or removed.
Need to get 0 B/75.8 MB of archives.
After this operation, 218 MB of additional disk space will be used.
Get:1 /tmp/plexmediaserver_1.17.0.1709-982421575_amd64.deb plexmediaserver amd64 1.17.0.1709-982421575 [75.7 MB]
E: Write error - write (9: Bad file descriptor)
E: Write error - write (9: Bad file descriptor)
E: Write error - write (9: Bad file descriptor)
E: Write error - write (9: Bad file descriptor)
E: Write error - write (9: Bad file descriptor)
E: Write error - write (9: Bad file descriptor)

 

i found this link :

https://phoenixnap.com/kb/fix-sub-process-usr-bin-dpkg-returned-error-code-1  

 

wich resulted in trying these options:

 

root@NAS6:~# dpkg --configure -a
root@NAS6:~# apt-get install -f
Reading package lists... Done
Building dependency tree
Reading state information... Done
0 upgraded, 0 newly installed, 0 to remove and 19 not upgraded.
3 not fully installed or removed.
Need to get 0 B/55.4 kB of archives.
After this operation, 0 B of additional disk space will be used.
dpkg: error processing package python-urllib3 (--configure):
 package is in a very bad inconsistent state; you should
 reinstall it before attempting configuration
dpkg: dependency problems prevent configuration of python-requests:
 python-requests depends on python-urllib3 (>= 1.9.1); however:
  Package python-urllib3 is not configured yet.

dpkg: error processing package python-requests (--configure):
 dependency problems - leaving unconfigured
dpkg: dependency problems prevent configuration of python-pip:
 python-pip depends on python-requests; however:
  Package python-requests is not configured yet.

dpkg: error processing package python-pip (--configure):
 dependency problems - leaving unconfigured
Errors were encountered while processing:
 python-urllib3
 python-requests
 python-pip
E: Sub-process /usr/bin/dpkg returned an error code (1)
root@NAS6:~#

So that makes me think this is python working against me, but no clue how to fix it, if i want to remove it.

 

If i remove and reinstall python-pip, it also ends with errors

 

root@NAS6:~# apt-get install  python-requests
Reading package lists... Done
Building dependency tree
Reading state information... Done
python-requests is already the newest version (2.4.3-6).
0 upgraded, 0 newly installed, 0 to remove and 19 not upgraded.
3 not fully installed or removed.
Need to get 0 B/55.4 kB of archives.
After this operation, 0 B of additional disk space will be used.
Do you want to continue? [Y/n] y
dpkg: error processing package python-urllib3 (--configure):
 package is in a very bad inconsistent state; you should
 reinstall it before attempting configuration
dpkg: dependency problems prevent configuration of python-requests:
 python-requests depends on python-urllib3 (>= 1.9.1); however:
  Package python-urllib3 is not configured yet.

dpkg: error processing package python-requests (--configure):
 dependency problems - leaving unconfigured
dpkg: dependency problems prevent configuration of python-pip:
 python-pip depends on python-requests; however:
  Package python-requests is not configured yet.

dpkg: error processing package python-pip (--configure):
 dependency problems - leaving unconfigured
Errors were encountered while processing:
 python-urllib3
 python-requests
 python-pip
E: Sub-process /usr/bin/dpkg returned an error code (1)
root@NAS6:~# apt-get install  python-requests
Reading package lists... Done
Building dependency tree
Reading state information... Done
python-requests is already the newest version (2.4.3-6).
0 upgraded, 0 newly installed, 0 to remove and 19 not upgraded.
3 not fully installed or removed.
Need to get 0 B/55.4 kB of archives.
After this operation, 0 B of additional disk space will be used.
Do you want to continue? [Y/n] y
dpkg: error processing package python-urllib3 (--configure):
 package is in a very bad inconsistent state; you should
 reinstall it before attempting configuration
dpkg: dependency problems prevent configuration of python-requests:
 python-requests depends on python-urllib3 (>= 1.9.1); however:
  Package python-urllib3 is not configured yet.

dpkg: error processing package python-requests (--configure):
 dependency problems - leaving unconfigured
dpkg: dependency problems prevent configuration of python-pip:
 python-pip depends on python-requests; however:
  Package python-requests is not configured yet.

dpkg: error processing package python-pip (--configure):
 dependency problems - leaving unconfigured
Errors were encountered while processing:
 python-urllib3
 python-requests
 python-pip
E: Sub-process /usr/bin/dpkg returned an error code (1)
root@NAS6:~#

 

Message 5 of 6
Nightraider89
Aspirant

Re: [Readynas Pro] Plex update refuses to Install

Well, Got it working! after some help, we discovered that python-urllib3 was the problem, 

 

This one made it recover : 

apt-get -m --reinstall install python python-minimal dh-python
dpkg --configure -a

After that, those erros where gone, and Plex installe dlike a charm, so i guess this would  answer for every problem like this, not only Plex.

 

Thanks for your time to read my problem!

Message 6 of 6
Top Contributors
Discussion stats
  • 5 replies
  • 1690 views
  • 0 kudos
  • 2 in conversation
Announcements