Cannot install Dstat on Debian Base PineA64 image
#1
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)
  Reply
#2
try
apt-get -t jessie-backports install dstat
If you like my work be sure to check out my site or wish to donate to the cause

Cheers Big Grin
  Reply
#3
i used synaptic to install successfully.
  Reply
#4
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.
  Reply
#5
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.
  Reply
#6
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.
  Reply
#7
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
  Reply


Possibly Related Threads…
Thread Author Replies Views Last Post
  Debian installer on Pine A64+ but no hdmi mrwick 1 4,884 07-28-2020, 01:49 PM
Last Post: kuleszdl
  Debian Pine64 h264/5 Video under vlc ozcy 6 12,747 04-15-2020, 05:27 AM
Last Post: dmitrymyadzelets
  OMV/debian/systemd: how to start the network kittyland 0 2,940 12-10-2019, 05:29 PM
Last Post: kittyland
  Debian 10 (Buster) in deep freeze - includes support for Pine64+ amp 5 10,090 07-22-2019, 09:29 PM
Last Post: amp
  Pine64 Debian Stretch/mainline [4.14.7] CallMeFoxie 50 121,101 07-22-2019, 09:24 PM
Last Post: amp
  Installing Debian with the Debian Installer (Buster RC1) amp 1 4,754 06-28-2019, 12:35 PM
Last Post: Kaarme42
  Digital drawing tablet Huion - proper drivers install janeku 20 29,283 05-19-2019, 09:24 PM
Last Post: xinhua
  Script to build pure Debian images for Pine64+ amp 1 4,189 05-01-2019, 09:09 PM
Last Post: tllim
  Debian (Stretch) for Pine64-LTS wgray 2 6,262 04-04-2019, 09:54 PM
Last Post: wgray
  Is there just one fuctioning Debian Desktop image? KNERD 7 13,063 03-29-2019, 02:00 AM
Last Post: desai_amogh

Forum Jump:


Users browsing this thread: 1 Guest(s)