Cannot install Dstat on Debian Base PineA64 image - Printable Version +- PINE64 (https://forum.pine64.org) +-- Forum: PINE A64(+) (https://forum.pine64.org/forumdisplay.php?fid=4) +--- Forum: Linux on Pine A64(+) (https://forum.pine64.org/forumdisplay.php?fid=6) +---- Forum: Debian (https://forum.pine64.org/forumdisplay.php?fid=24) +---- Thread: Cannot install Dstat on Debian Base PineA64 image (/showthread.php?tid=1673) |
Cannot install Dstat on Debian Base PineA64 image - ywoody - 07-07-2016 Using the new Debian Base image: pine64-image-debianbase-310102bsp.img Got following error when install Dstat. Any help?? This is the first distro i encounter that cannot install dstat. root@pine64:/home/debian# apt-get install dstat Reading package lists... Done Building dependency tree Reading state information... Done The following NEW packages will be installed: dstat 0 upgraded, 1 newly installed, 0 to remove and 0 not upgraded. Need to get 50.5 kB of archives. After this operation, 351 kB of additional disk space will be used. Get:1 http://ftp.us.debian.org/debian/ jessie/main dstat all 0.7.2-4 [50.5 kB] Fetched 50.5 kB in 1s (31.1 kB/s) Selecting previously unselected package dstat. (Reading database ... 88108 files and directories currently installed.) Preparing to unpack .../archives/dstat_0.7.2-4_all.deb ... Unpacking dstat (0.7.2-4) ... Processing triggers for man-db (2.7.0.2-5) ... Setting up dstat (0.7.2-4) ... Traceback (most recent call last): File "/usr/bin/pycompile", line 35, in <module> from debpython.version import SUPPORTED, debsorted, vrepr, \ File "/usr/share/python/debpython/version.py", line 1 SyntaxError: Non-ASCII character '\xdb' in file /usr/share/python/debpython/version.py on line 1, but no encoding declared; see http://python.org/dev/peps/pep-0263/ for details dpkg: error processing package dstat (--configure): subprocess installed post-installation script returned error exit status 1 Errors were encountered while processing: dstat E: Sub-process /usr/bin/dpkg returned an error code (1) RE: Cannot install Dstat on Debian Base PineA64 image - lenny.raposo-pine64.pro - 07-07-2016 try apt-get -t jessie-backports install dstat RE: Cannot install Dstat on Debian Base PineA64 image - dkryder - 07-07-2016 i used synaptic to install successfully. RE: Cannot install Dstat on Debian Base PineA64 image - ywoody - 07-11-2016 It looking like the dstat is working, but the post install script fail. Now every time you run the apt-get it will try to run and fail again. Cannot force install or force remove either. Tried point to different version of python (python3) but still not working (it actually make it worst). At one point think of reinstall the python2.7 but seems to much work, as too many dependency. Have changed using DietPi, and it work out of the box. Install the dstat without single issue. I will using DietPi Pine64 image for now, until someone able to figure it out what wrong. RE: Cannot install Dstat on Debian Base PineA64 image - dkryder - 07-11-2016 get a application like pychecker or similar, maybe vim, and let it check the script files that are spitting errors for syntax and other stuff. some stuff will require a small bit of effort on your part. RE: Cannot install Dstat on Debian Base PineA64 image - ywoody - 07-11-2016 It is more than likely the issue is around /usr/share/python/debpython/version.py however, in base image pine64-image-debianbase-310102bsp.img, the files in /usr/share/python/debpython/*.py files are all compiled and not in source code format. So I cannot tell if it missing the coding line at line 1. RE: Cannot install Dstat on Debian Base PineA64 image - dkryder - 07-11-2016 i was thinking that prior to trying to install again you might want to run the primary script files of the dstat package as it was downloaded through a checker of some sort . you could also try un-commenting the encoding line since the error spit due to an issue with syntax/unknown encoding. the error you got is not all that big of a deal but not being able to remove due to it, is a big deal. as an aside, i have found that while these things are frustrating as heck, i learn more by trying to work through them |