Issues with apt and aptitude on debian jessie (chroot environment)











up vote
0
down vote

favorite












i have a chroot debian os running on my rooted android phone, i recently tried installing InstaPy on it and ran into the following errors



root@localhost:/# cd InstaPy
root@localhost:/InstaPy# python3 setup.py install
/usr/lib/python3.4/distutils/dist.py:260: UserWarning: Unknown distribution option: 'python_requires'
warnings.warn(msg)
/usr/lib/python3.4/distutils/dist.py:260: UserWarning: Unknown distribution option: 'project_urls'
warnings.warn(msg)
running install
Checking .pth file support in /usr/local/lib/python3.4/dist-packages/
/usr/bin/python3 -E -c pass
TEST PASSED: /usr/local/lib/python3.4/dist-packages/ appears to support .pth files
running bdist_egg
running egg_info
writing dependency_links to instagram_py.egg-info/dependency_links.txt
writing top-level names to instagram_py.egg-info/top_level.txt
writing instagram_py.egg-info/PKG-INFO
writing requirements to instagram_py.egg-info/requires.txt
file i.py (for module i) not found
file n.py (for module n) not found
file s.py (for module s) not found
file t.py (for module t) not found
file a.py (for module a) not found
file p.py (for module p) not found
file y.py (for module y) not found
reading manifest file 'instagram_py.egg-info/SOURCES.txt'
reading manifest template 'MANIFEST.in'
warning: no files found matching '*' under directory 'db'
writing manifest file 'instagram_py.egg-info/SOURCES.txt'
installing library code to build/bdist.linux-armv7l/egg
running install_lib
running build_py
file i.py (for module i) not found
file n.py (for module n) not found
file s.py (for module s) not found
file t.py (for module t) not found
file a.py (for module a) not found
file p.py (for module p) not found
file y.py (for module y) not found
file i.py (for module i) not found
file n.py (for module n) not found
file s.py (for module s) not found
file t.py (for module t) not found
file a.py (for module a) not found
file p.py (for module p) not found
file y.py (for module y) not found
creating build/bdist.linux-armv7l/egg
creating build/bdist.linux-armv7l/egg/instapy
copying build/lib/instapy/__init__.py -> build/bdist.linux-armv7l/egg/instapy
copying build/lib/instapy/clarifai_util.py -> build/bdist.linux-armv7l/egg/instapy
copying build/lib/instapy/comment_util.py -> build/bdist.linux-armv7l/egg/instapy
copying build/lib/instapy/commenters_util.py -> build/bdist.linux-armv7l/egg/instapy
copying build/lib/instapy/database_engine.py -> build/bdist.linux-armv7l/egg/instapy
copying build/lib/instapy/feed_util.py -> build/bdist.linux-armv7l/egg/instapy
copying build/lib/instapy/instapy.py -> build/bdist.linux-armv7l/egg/instapy
copying build/lib/instapy/like_util.py -> build/bdist.linux-armv7l/egg/instapy
copying build/lib/instapy/login_util.py -> build/bdist.linux-armv7l/egg/instapy
copying build/lib/instapy/monkey_patcher.py -> build/bdist.linux-armv7l/egg/instapy
copying build/lib/instapy/print_log_writer.py -> build/bdist.linux-armv7l/egg/instapy
copying build/lib/instapy/quota_supervisor.py -> build/bdist.linux-armv7l/egg/instapy
copying build/lib/instapy/relationship_tools.py -> build/bdist.linux-armv7l/egg/instapy
copying build/lib/instapy/settings.py -> build/bdist.linux-armv7l/egg/instapy
copying build/lib/instapy/time_util.py -> build/bdist.linux-armv7l/egg/instapy
copying build/lib/instapy/unfollow_util.py -> build/bdist.linux-armv7l/egg/instapy
copying build/lib/instapy/util.py -> build/bdist.linux-armv7l/egg/instapy
byte-compiling build/bdist.linux-armv7l/egg/instapy/__init__.py to __init__.cpython-34.pyc
byte-compiling build/bdist.linux-armv7l/egg/instapy/clarifai_util.py to clarifai_util.cpython-34.pyc
byte-compiling build/bdist.linux-armv7l/egg/instapy/comment_util.py to comment_util.cpython-34.pyc
byte-compiling build/bdist.linux-armv7l/egg/instapy/commenters_util.py to commenters_util.cpython-34.pyc
byte-compiling build/bdist.linux-armv7l/egg/instapy/database_engine.py to database_engine.cpython-34.pyc
byte-compiling build/bdist.linux-armv7l/egg/instapy/feed_util.py to feed_util.cpython-34.pyc
byte-compiling build/bdist.linux-armv7l/egg/instapy/instapy.py to instapy.cpython-34.pyc
byte-compiling build/bdist.linux-armv7l/egg/instapy/like_util.py to like_util.cpython-34.pyc
byte-compiling build/bdist.linux-armv7l/egg/instapy/login_util.py to login_util.cpython-34.pyc
byte-compiling build/bdist.linux-armv7l/egg/instapy/monkey_patcher.py to monkey_patcher.cpython-34.pyc
byte-compiling build/bdist.linux-armv7l/egg/instapy/print_log_writer.py to print_log_writer.cpython-34.pyc
byte-compiling build/bdist.linux-armv7l/egg/instapy/quota_supervisor.py to quota_supervisor.cpython-34.pyc
byte-compiling build/bdist.linux-armv7l/egg/instapy/relationship_tools.py to relationship_tools.cpython-34.pyc
byte-compiling build/bdist.linux-armv7l/egg/instapy/settings.py to settings.cpython-34.pyc
byte-compiling build/bdist.linux-armv7l/egg/instapy/time_util.py to time_util.cpython-34.pyc
byte-compiling build/bdist.linux-armv7l/egg/instapy/unfollow_util.py to unfollow_util.cpython-34.pyc
byte-compiling build/bdist.linux-armv7l/egg/instapy/util.py to util.cpython-34.pyc
creating build/bdist.linux-armv7l/egg/EGG-INFO
copying instagram_py.egg-info/PKG-INFO -> build/bdist.linux-armv7l/egg/EGG-INFO
copying instagram_py.egg-info/SOURCES.txt -> build/bdist.linux-armv7l/egg/EGG-INFO
copying instagram_py.egg-info/dependency_links.txt -> build/bdist.linux-armv7l/egg/EGG-INFO
copying instagram_py.egg-info/requires.txt -> build/bdist.linux-armv7l/egg/EGG-INFO
copying instagram_py.egg-info/top_level.txt -> build/bdist.linux-armv7l/egg/EGG-INFO
zip_safe flag not set; analyzing archive contents...
instapy.__pycache__.settings.cpython-34: module references __file__
creating 'dist/instagram_py-0.0.1-py3.4.egg' and adding 'build/bdist.linux-armv7l/egg' to it
removing 'build/bdist.linux-armv7l/egg' (and everything under it)
Processing instagram_py-0.0.1-py3.4.egg
removing '/usr/local/lib/python3.4/dist-packages/instagram_py-0.0.1-py3.4.egg' (and everything under it)
creating /usr/local/lib/python3.4/dist-packages/instagram_py-0.0.1-py3.4.egg
Extracting instagram_py-0.0.1-py3.4.egg to /usr/local/lib/python3.4/dist-packages
instagram-py 0.0.1 is already the active version in easy-install.pth

Installed /usr/local/lib/python3.4/dist-packages/instagram_py-0.0.1-py3.4.egg
Processing dependencies for instagram-py==0.0.1
Searching for grpcio==1.16.0
Reading https://pypi.python.org/simple/grpcio/
Best match: grpcio 1.16.0
Downloading https://files.pythonhosted.org/packages/be/84/9afa550ae7bfc65a7150f66ecdbf267617a2d584d9f845b4ef7d026a24ad/grpcio-1.16.0.tar.gz#sha256=0cc5f2d3ee21c642d8982f197c83053fd3a8cbcd6a60240d8c87c6c256b10d57
Processing grpcio-1.16.0.tar.gz
Writing /tmp/easy_install-u_563kss/grpcio-1.16.0/setup.cfg
Running grpcio-1.16.0/setup.py -q bdist_egg --dist-dir /tmp/easy_install-u_563kss/grpcio-1.16.0/egg-dist-tmp-dcx0o3o6
Found cython-generated files...
warning: no files found matching '*.c' under directory 'src/python/grpcio/grpc'
warning: no files found matching '*.h' under directory 'src/python/grpcio/grpc'
warning: no files found matching '*.python' under directory 'src/python/grpcio/grpc'
warning: no previously-included files matching '*.so' found under directory 'src/python/grpcio/grpc/_cython'
warning: no previously-included files matching '*.pyd' found under directory 'src/python/grpcio/grpc/_cython'
warning: no files found matching 'src/python/grpcio/precompiled.py'
Found cython-generated files...
arm-linux-gnueabihf-gcc: error: src/python/grpcio/grpc/_cython/cygrpc.c: No such file or directory
arm-linux-gnueabihf-gcc: fatal error: no input files
compilation terminated.
arm-linux-gnueabihf-gcc: error trying to exec 'as': execvp: No such file or directory

Could not find <Python.h>. This could mean the following:
* You're on Ubuntu and haven't run `apt-get install python-dev`.
* You're on RHEL/Fedora and haven't run `yum install python-devel` or
`dnf install python-devel` (make sure you also have redhat-rpm-config
installed)
* You're on Mac OS X and the usual Python framework was somehow corrupted
(check your environment variables or try re-installing?) * You're on Windows and your Python installation was somehow corrupted
(check your environment variables or try re-installing?)Traceback (most recent call last):
File "/usr/lib/python3.4/distutils/unixccompiler.py", line 116, in _compile
extra_postargs)
File "/tmp/easy_install-u_563kss/grpcio-1.16.0/src/python/grpcio/_spawn_patch.py", line 54, in _commandfile_spawn
File "/usr/lib/python3.4/distutils/ccompiler.py", line 909, in spawn
spawn(cmd, dry_run=self.dry_run)
File "/usr/lib/python3.4/distutils/spawn.py", line 36, in spawn
_spawn_posix(cmd, search_path, dry_run=dry_run)
File "/usr/lib/python3.4/distutils/spawn.py", line 162, in _spawn_posix
% (cmd, exit_status))
distutils.errors.DistutilsExecError: command 'arm-linux-gnueabihf-gcc' failed with exit status 4

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
File "/tmp/easy_install-u_563kss/grpcio-1.16.0/src/python/grpcio/commands.py", line 301, in build_extensions
File "/usr/lib/python3.4/distutils/command/build_ext.py", line 448, in build_extensions
self.build_extension(ext)
File "/usr/lib/python3/dist-packages/setuptools/command/build_ext.py", line 187, in build_extension
_build_ext.build_extension(self, ext)
File "/usr/lib/python3.4/distutils/command/build_ext.py", line 503, in build_extension
depends=ext.depends)
File "/usr/lib/python3.4/distutils/ccompiler.py", line 574, in compile
self._compile(obj, src, ext, cc_args, extra_postargs, pp_opts)
File "/usr/lib/python3.4/distutils/unixccompiler.py", line 118, in _compile
raise CompileError(msg)
distutils.errors.CompileError: command 'arm-linux-gnueabihf-gcc' failed with exit status 4

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
File "setup.py", line 65, in <module>
platforms=["win32", "linux", "linux2", "darwin"]
File "/usr/lib/python3.4/distutils/core.py", line 148, in setup
dist.run_commands()
File "/usr/lib/python3.4/distutils/dist.py", line 955, in run_commands
self.run_command(cmd)
File "/usr/lib/python3.4/distutils/dist.py", line 974, in run_command
cmd_obj.run()
File "/usr/lib/python3/dist-packages/setuptools/command/install.py", line 67, in run
self.do_egg_install()
File "/usr/lib/python3/dist-packages/setuptools/command/install.py", line 117, in do_egg_install
cmd.run()
File "/usr/lib/python3/dist-packages/setuptools/command/easy_install.py", line 393, in run
self.easy_install(spec, not self.no_deps)
File "/usr/lib/python3/dist-packages/setuptools/command/easy_install.py", line 617, in easy_install
return self.install_item(None, spec, tmpdir, deps, True) File "/usr/lib/python3/dist-packages/setuptools/command/easy_install.py", line 668, in install_item
self.process_distribution(spec, dist, deps)
File "/usr/lib/python3/dist-packages/setuptools/command/easy_install.py", line 716, in process_distribution
[requirement], self.local_index, self.easy_install
File "/usr/lib/python3/dist-packages/pkg_resources.py", line 631, in resolve
dist = best[req.key] = env.best_match(req, ws, installer)
File "/usr/lib/python3/dist-packages/pkg_resources.py", line 874, in best_match
return self.obtain(req, installer)
File "/usr/lib/python3/dist-packages/pkg_resources.py", line 886, in obtain
return installer(requirement)
File "/usr/lib/python3/dist-packages/setuptools/command/easy_install.py", line 636, in easy_install
return self.install_item(spec, dist.location, tmpdir, deps)
File "/usr/lib/python3/dist-packages/setuptools/command/easy_install.py", line 666, in install_item
dists = self.install_eggs(spec, download, tmpdir)
File "/usr/lib/python3/dist-packages/setuptools/command/easy_install.py", line 856, in install_eggs
return self.build_and_install(setup_script, setup_base)
File "/usr/lib/python3/dist-packages/setuptools/command/easy_install.py", line 1078, in build_and_install
self.run_setup(setup_script, setup_base, args)
File "/usr/lib/python3/dist-packages/setuptools/command/easy_install.py", line 1063, in run_setup
run_setup(setup_script, args)
File "/usr/lib/python3/dist-packages/setuptools/sandbox.py", line 68, in run_setup
DirectorySandbox(setup_dir).run(runner)
File "/usr/lib/python3/dist-packages/setuptools/sandbox.py", line 114, in run
return func()
File "/usr/lib/python3/dist-packages/setuptools/sandbox.py", line 67, in runner
_execfile(setup_script, ns)
File "/usr/lib/python3/dist-packages/setuptools/sandbox.py", line 43, in _execfile
exec(code, globals, locals)
File "/tmp/easy_install-u_563kss/grpcio-1.16.0/setup.py", line 348, in <module>
File "/usr/lib/python3.4/distutils/core.py", line 148, in setup
dist.run_commands()
File "/usr/lib/python3.4/distutils/dist.py", line 955, in run_commands
self.run_command(cmd)
File "/usr/lib/python3.4/distutils/dist.py", line 974, in run_command
cmd_obj.run()
File "/usr/lib/python3/dist-packages/setuptools/command/bdist_egg.py", line 161, in run
cmd = self.call_command('install_lib', warn_dir=0)
File "/usr/lib/python3/dist-packages/setuptools/command/bdist_egg.py", line 147, in call_command
self.run_command(cmdname)
File "/usr/lib/python3.4/distutils/cmd.py", line 313, in run_command
self.distribution.run_command(command)
File "/usr/lib/python3.4/distutils/dist.py", line 974, in run_command
cmd_obj.run()
File "/usr/lib/python3/dist-packages/setuptools/command/install_lib.py", line 22, in run
self.build()
File "/usr/lib/python3.4/distutils/command/install_lib.py", line 109, in build
self.run_command('build_ext')
File "/usr/lib/python3.4/distutils/cmd.py", line 313, in run_command
self.distribution.run_command(command)
File "/usr/lib/python3.4/distutils/dist.py", line 974, in run_command
cmd_obj.run()
File "/usr/lib/python3/dist-packages/setuptools/command/build_ext.py", line 54, in run
_build_ext.run(self)
File "/usr/lib/python3.4/distutils/command/build_ext.py", line 339, in run
self.build_extensions()
File "/tmp/easy_install-u_563kss/grpcio-1.16.0/src/python/grpcio/commands.py", line 304, in build_extensions
File "/tmp/easy_install-u_563kss/grpcio-1.16.0/src/python/grpcio/support.py", line 111, in diagnose_build_ext_error
File "/tmp/easy_install-u_563kss/grpcio-1.16.0/src/python/grpcio/support.py", line 70, in diagnose_compile_error
File "/tmp/easy_install-u_563kss/grpcio-1.16.0/src/python/grpcio/support.py", line 64, in _expect_compile
commands.CommandError: Diagnostics found a compilation environment issue:

Could not find <Python.h>. This could mean the following:
* You're on Ubuntu and haven't run `apt-get install python-dev`.
* You're on RHEL/Fedora and haven't run `yum install python-devel` or
`dnf install python-devel` (make sure you also have redhat-rpm-config
installed)
* You're on Mac OS X and the usual Python framework was somehow corrupted
(check your environment variables or try re-installing?) * You're on Windows and your Python installation was somehow corrupted
(check your environment variables or try re-installing?)


when i try using apt-get install -f



root@localhost:/# apt-get install -f
Reading package lists... Done
Building dependency tree
Reading state information... Done
Correcting dependencies... Done
The following package was automatically installed and is no longer required:
libstdc++-4.9-dev
Use 'apt-get autoremove' to remove it.
The following extra packages will be installed:
libc-bin libc6
Suggested packages:
glibc-doc libc-l10n locales
The following packages will be REMOVED:
g++ g++-4.9 gcc gcc-4.9
The following packages will be upgraded:
libc-bin libc6
2 upgraded, 0 newly installed, 4 to remove and 60 not upgraded.
3 not fully installed or removed.
Need to get 0 B/3022 kB of archives.
After this operation, 30.1 MB disk space will be freed.
Do you want to continue? [Y/n] y
Preconfiguring packages ...
(Reading database ... 27616 files and directories currently installed.)
Preparing to unpack .../libc6_2.24-11+deb9u1_armhf.deb ...
Checking for services that may need to be restarted...
Checking init scripts...
Failed to read /proc/cmdline. Ignoring: Permission denied
Unpacking libc6:armhf (2.24-11+deb9u1) over (2.19-18+deb8u10) ...
dpkg: warning: subprocess old post-removal script was killed by signal (Segmentation fault)
dpkg: trying script from the new package instead ...
dpkg: error processing archive /var/cache/apt/archives/libc6_2.24-11+deb9u1_armhf.deb (--unpack):
subprocess new post-removal script was killed by signal (Segmentation fault)
dpkg: error while cleaning up:
subprocess installed pre-installation script was killed by signal (Segmentation fault)
Processing triggers for libc-bin (2.19-18+deb8u10) ...
E: Sub-process /usr/bin/dpkg returned an error code (1)


My next step was to install aptitude but i got a new error when trying to use it



root@localhost:/# aptitude update
E: failed to rename /var/lib/aptitude/pkgstates to /var/lib/aptitude/pkgstates.old - save_selection_list (1: Operation not permitted)
[ ERR] Writing extended state information
E: failed to rename /var/lib/aptitude/pkgstates to /var/lib/aptitude/pkgstates.old - save_selection_list (1: Operation not permitted)


dpkg is also throwing its own errors



root@localhost:/# dpkg --configure -a
dpkg: dependency problems prevent configuration of libc-dev-bin:
libc-dev-bin depends on libc6 (>> 2.24); however:
Package libc6:armhf is not installed.
libc-dev-bin depends on libc6 (<< 2.25); however:
Package libc6:armhf is not installed.

dpkg: error processing package libc-dev-bin (--configure):
dependency problems - leaving unconfigured
dpkg: dependency problems prevent configuration of libc6-dev:armhf:
libc6-dev:armhf depends on libc6 (= 2.24-11+deb9u1); however:
Package libc6:armhf is not installed.
libc6-dev:armhf depends on libc-dev-bin (= 2.24-11+deb9u1); however:
Package libc-dev-bin is not configured yet.

dpkg: error processing package libc6-dev:armhf (--configure):
dependency problems - leaving unconfigured
Errors were encountered while processing:
libc-dev-bin
libc6-dev:armhf


as this is a chroot environment I don't have sudo. I was attempting to fulfill all dependencies for installing InstaPy and added chrome using this link










share|improve this question







New contributor




Kenechukwu is a new contributor to this site. Take care in asking for clarification, commenting, and answering.
Check out our Code of Conduct.




















  • You're on jessie (Debian 8) but Preparing to unpack .../libc6_2.24-11+deb9u1_armhf.deb which is about Debian 9. So you now have a FrankenDebian. Why don't you use directly a Debian 9 (stretch) chroot if you need pieces of it?
    – A.B
    Nov 20 at 21:58










  • @A.B wow! i never knew something called a frankendebian exists. how do i fix this monster! i don't know how to directly use debian 9 as you mentioned, my linux was installed via an app on playstore called gnuroot debian
    – Kenechukwu
    Nov 20 at 23:32










  • might be just that jessie (which was the former stable) refers to itself as stable instead of jessie (or oldstable) in your installation. You should correct references to stable into jessie instead, wherever it is in all files found in the /et/apt/ arborescence. If that's not enough, you could also choose to dist-upgrade from jessie to stretch (current stable) instead, hoping it's not too late and that this can work in a chroot.
    – A.B
    Nov 21 at 6:50

















up vote
0
down vote

favorite












i have a chroot debian os running on my rooted android phone, i recently tried installing InstaPy on it and ran into the following errors



root@localhost:/# cd InstaPy
root@localhost:/InstaPy# python3 setup.py install
/usr/lib/python3.4/distutils/dist.py:260: UserWarning: Unknown distribution option: 'python_requires'
warnings.warn(msg)
/usr/lib/python3.4/distutils/dist.py:260: UserWarning: Unknown distribution option: 'project_urls'
warnings.warn(msg)
running install
Checking .pth file support in /usr/local/lib/python3.4/dist-packages/
/usr/bin/python3 -E -c pass
TEST PASSED: /usr/local/lib/python3.4/dist-packages/ appears to support .pth files
running bdist_egg
running egg_info
writing dependency_links to instagram_py.egg-info/dependency_links.txt
writing top-level names to instagram_py.egg-info/top_level.txt
writing instagram_py.egg-info/PKG-INFO
writing requirements to instagram_py.egg-info/requires.txt
file i.py (for module i) not found
file n.py (for module n) not found
file s.py (for module s) not found
file t.py (for module t) not found
file a.py (for module a) not found
file p.py (for module p) not found
file y.py (for module y) not found
reading manifest file 'instagram_py.egg-info/SOURCES.txt'
reading manifest template 'MANIFEST.in'
warning: no files found matching '*' under directory 'db'
writing manifest file 'instagram_py.egg-info/SOURCES.txt'
installing library code to build/bdist.linux-armv7l/egg
running install_lib
running build_py
file i.py (for module i) not found
file n.py (for module n) not found
file s.py (for module s) not found
file t.py (for module t) not found
file a.py (for module a) not found
file p.py (for module p) not found
file y.py (for module y) not found
file i.py (for module i) not found
file n.py (for module n) not found
file s.py (for module s) not found
file t.py (for module t) not found
file a.py (for module a) not found
file p.py (for module p) not found
file y.py (for module y) not found
creating build/bdist.linux-armv7l/egg
creating build/bdist.linux-armv7l/egg/instapy
copying build/lib/instapy/__init__.py -> build/bdist.linux-armv7l/egg/instapy
copying build/lib/instapy/clarifai_util.py -> build/bdist.linux-armv7l/egg/instapy
copying build/lib/instapy/comment_util.py -> build/bdist.linux-armv7l/egg/instapy
copying build/lib/instapy/commenters_util.py -> build/bdist.linux-armv7l/egg/instapy
copying build/lib/instapy/database_engine.py -> build/bdist.linux-armv7l/egg/instapy
copying build/lib/instapy/feed_util.py -> build/bdist.linux-armv7l/egg/instapy
copying build/lib/instapy/instapy.py -> build/bdist.linux-armv7l/egg/instapy
copying build/lib/instapy/like_util.py -> build/bdist.linux-armv7l/egg/instapy
copying build/lib/instapy/login_util.py -> build/bdist.linux-armv7l/egg/instapy
copying build/lib/instapy/monkey_patcher.py -> build/bdist.linux-armv7l/egg/instapy
copying build/lib/instapy/print_log_writer.py -> build/bdist.linux-armv7l/egg/instapy
copying build/lib/instapy/quota_supervisor.py -> build/bdist.linux-armv7l/egg/instapy
copying build/lib/instapy/relationship_tools.py -> build/bdist.linux-armv7l/egg/instapy
copying build/lib/instapy/settings.py -> build/bdist.linux-armv7l/egg/instapy
copying build/lib/instapy/time_util.py -> build/bdist.linux-armv7l/egg/instapy
copying build/lib/instapy/unfollow_util.py -> build/bdist.linux-armv7l/egg/instapy
copying build/lib/instapy/util.py -> build/bdist.linux-armv7l/egg/instapy
byte-compiling build/bdist.linux-armv7l/egg/instapy/__init__.py to __init__.cpython-34.pyc
byte-compiling build/bdist.linux-armv7l/egg/instapy/clarifai_util.py to clarifai_util.cpython-34.pyc
byte-compiling build/bdist.linux-armv7l/egg/instapy/comment_util.py to comment_util.cpython-34.pyc
byte-compiling build/bdist.linux-armv7l/egg/instapy/commenters_util.py to commenters_util.cpython-34.pyc
byte-compiling build/bdist.linux-armv7l/egg/instapy/database_engine.py to database_engine.cpython-34.pyc
byte-compiling build/bdist.linux-armv7l/egg/instapy/feed_util.py to feed_util.cpython-34.pyc
byte-compiling build/bdist.linux-armv7l/egg/instapy/instapy.py to instapy.cpython-34.pyc
byte-compiling build/bdist.linux-armv7l/egg/instapy/like_util.py to like_util.cpython-34.pyc
byte-compiling build/bdist.linux-armv7l/egg/instapy/login_util.py to login_util.cpython-34.pyc
byte-compiling build/bdist.linux-armv7l/egg/instapy/monkey_patcher.py to monkey_patcher.cpython-34.pyc
byte-compiling build/bdist.linux-armv7l/egg/instapy/print_log_writer.py to print_log_writer.cpython-34.pyc
byte-compiling build/bdist.linux-armv7l/egg/instapy/quota_supervisor.py to quota_supervisor.cpython-34.pyc
byte-compiling build/bdist.linux-armv7l/egg/instapy/relationship_tools.py to relationship_tools.cpython-34.pyc
byte-compiling build/bdist.linux-armv7l/egg/instapy/settings.py to settings.cpython-34.pyc
byte-compiling build/bdist.linux-armv7l/egg/instapy/time_util.py to time_util.cpython-34.pyc
byte-compiling build/bdist.linux-armv7l/egg/instapy/unfollow_util.py to unfollow_util.cpython-34.pyc
byte-compiling build/bdist.linux-armv7l/egg/instapy/util.py to util.cpython-34.pyc
creating build/bdist.linux-armv7l/egg/EGG-INFO
copying instagram_py.egg-info/PKG-INFO -> build/bdist.linux-armv7l/egg/EGG-INFO
copying instagram_py.egg-info/SOURCES.txt -> build/bdist.linux-armv7l/egg/EGG-INFO
copying instagram_py.egg-info/dependency_links.txt -> build/bdist.linux-armv7l/egg/EGG-INFO
copying instagram_py.egg-info/requires.txt -> build/bdist.linux-armv7l/egg/EGG-INFO
copying instagram_py.egg-info/top_level.txt -> build/bdist.linux-armv7l/egg/EGG-INFO
zip_safe flag not set; analyzing archive contents...
instapy.__pycache__.settings.cpython-34: module references __file__
creating 'dist/instagram_py-0.0.1-py3.4.egg' and adding 'build/bdist.linux-armv7l/egg' to it
removing 'build/bdist.linux-armv7l/egg' (and everything under it)
Processing instagram_py-0.0.1-py3.4.egg
removing '/usr/local/lib/python3.4/dist-packages/instagram_py-0.0.1-py3.4.egg' (and everything under it)
creating /usr/local/lib/python3.4/dist-packages/instagram_py-0.0.1-py3.4.egg
Extracting instagram_py-0.0.1-py3.4.egg to /usr/local/lib/python3.4/dist-packages
instagram-py 0.0.1 is already the active version in easy-install.pth

Installed /usr/local/lib/python3.4/dist-packages/instagram_py-0.0.1-py3.4.egg
Processing dependencies for instagram-py==0.0.1
Searching for grpcio==1.16.0
Reading https://pypi.python.org/simple/grpcio/
Best match: grpcio 1.16.0
Downloading https://files.pythonhosted.org/packages/be/84/9afa550ae7bfc65a7150f66ecdbf267617a2d584d9f845b4ef7d026a24ad/grpcio-1.16.0.tar.gz#sha256=0cc5f2d3ee21c642d8982f197c83053fd3a8cbcd6a60240d8c87c6c256b10d57
Processing grpcio-1.16.0.tar.gz
Writing /tmp/easy_install-u_563kss/grpcio-1.16.0/setup.cfg
Running grpcio-1.16.0/setup.py -q bdist_egg --dist-dir /tmp/easy_install-u_563kss/grpcio-1.16.0/egg-dist-tmp-dcx0o3o6
Found cython-generated files...
warning: no files found matching '*.c' under directory 'src/python/grpcio/grpc'
warning: no files found matching '*.h' under directory 'src/python/grpcio/grpc'
warning: no files found matching '*.python' under directory 'src/python/grpcio/grpc'
warning: no previously-included files matching '*.so' found under directory 'src/python/grpcio/grpc/_cython'
warning: no previously-included files matching '*.pyd' found under directory 'src/python/grpcio/grpc/_cython'
warning: no files found matching 'src/python/grpcio/precompiled.py'
Found cython-generated files...
arm-linux-gnueabihf-gcc: error: src/python/grpcio/grpc/_cython/cygrpc.c: No such file or directory
arm-linux-gnueabihf-gcc: fatal error: no input files
compilation terminated.
arm-linux-gnueabihf-gcc: error trying to exec 'as': execvp: No such file or directory

Could not find <Python.h>. This could mean the following:
* You're on Ubuntu and haven't run `apt-get install python-dev`.
* You're on RHEL/Fedora and haven't run `yum install python-devel` or
`dnf install python-devel` (make sure you also have redhat-rpm-config
installed)
* You're on Mac OS X and the usual Python framework was somehow corrupted
(check your environment variables or try re-installing?) * You're on Windows and your Python installation was somehow corrupted
(check your environment variables or try re-installing?)Traceback (most recent call last):
File "/usr/lib/python3.4/distutils/unixccompiler.py", line 116, in _compile
extra_postargs)
File "/tmp/easy_install-u_563kss/grpcio-1.16.0/src/python/grpcio/_spawn_patch.py", line 54, in _commandfile_spawn
File "/usr/lib/python3.4/distutils/ccompiler.py", line 909, in spawn
spawn(cmd, dry_run=self.dry_run)
File "/usr/lib/python3.4/distutils/spawn.py", line 36, in spawn
_spawn_posix(cmd, search_path, dry_run=dry_run)
File "/usr/lib/python3.4/distutils/spawn.py", line 162, in _spawn_posix
% (cmd, exit_status))
distutils.errors.DistutilsExecError: command 'arm-linux-gnueabihf-gcc' failed with exit status 4

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
File "/tmp/easy_install-u_563kss/grpcio-1.16.0/src/python/grpcio/commands.py", line 301, in build_extensions
File "/usr/lib/python3.4/distutils/command/build_ext.py", line 448, in build_extensions
self.build_extension(ext)
File "/usr/lib/python3/dist-packages/setuptools/command/build_ext.py", line 187, in build_extension
_build_ext.build_extension(self, ext)
File "/usr/lib/python3.4/distutils/command/build_ext.py", line 503, in build_extension
depends=ext.depends)
File "/usr/lib/python3.4/distutils/ccompiler.py", line 574, in compile
self._compile(obj, src, ext, cc_args, extra_postargs, pp_opts)
File "/usr/lib/python3.4/distutils/unixccompiler.py", line 118, in _compile
raise CompileError(msg)
distutils.errors.CompileError: command 'arm-linux-gnueabihf-gcc' failed with exit status 4

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
File "setup.py", line 65, in <module>
platforms=["win32", "linux", "linux2", "darwin"]
File "/usr/lib/python3.4/distutils/core.py", line 148, in setup
dist.run_commands()
File "/usr/lib/python3.4/distutils/dist.py", line 955, in run_commands
self.run_command(cmd)
File "/usr/lib/python3.4/distutils/dist.py", line 974, in run_command
cmd_obj.run()
File "/usr/lib/python3/dist-packages/setuptools/command/install.py", line 67, in run
self.do_egg_install()
File "/usr/lib/python3/dist-packages/setuptools/command/install.py", line 117, in do_egg_install
cmd.run()
File "/usr/lib/python3/dist-packages/setuptools/command/easy_install.py", line 393, in run
self.easy_install(spec, not self.no_deps)
File "/usr/lib/python3/dist-packages/setuptools/command/easy_install.py", line 617, in easy_install
return self.install_item(None, spec, tmpdir, deps, True) File "/usr/lib/python3/dist-packages/setuptools/command/easy_install.py", line 668, in install_item
self.process_distribution(spec, dist, deps)
File "/usr/lib/python3/dist-packages/setuptools/command/easy_install.py", line 716, in process_distribution
[requirement], self.local_index, self.easy_install
File "/usr/lib/python3/dist-packages/pkg_resources.py", line 631, in resolve
dist = best[req.key] = env.best_match(req, ws, installer)
File "/usr/lib/python3/dist-packages/pkg_resources.py", line 874, in best_match
return self.obtain(req, installer)
File "/usr/lib/python3/dist-packages/pkg_resources.py", line 886, in obtain
return installer(requirement)
File "/usr/lib/python3/dist-packages/setuptools/command/easy_install.py", line 636, in easy_install
return self.install_item(spec, dist.location, tmpdir, deps)
File "/usr/lib/python3/dist-packages/setuptools/command/easy_install.py", line 666, in install_item
dists = self.install_eggs(spec, download, tmpdir)
File "/usr/lib/python3/dist-packages/setuptools/command/easy_install.py", line 856, in install_eggs
return self.build_and_install(setup_script, setup_base)
File "/usr/lib/python3/dist-packages/setuptools/command/easy_install.py", line 1078, in build_and_install
self.run_setup(setup_script, setup_base, args)
File "/usr/lib/python3/dist-packages/setuptools/command/easy_install.py", line 1063, in run_setup
run_setup(setup_script, args)
File "/usr/lib/python3/dist-packages/setuptools/sandbox.py", line 68, in run_setup
DirectorySandbox(setup_dir).run(runner)
File "/usr/lib/python3/dist-packages/setuptools/sandbox.py", line 114, in run
return func()
File "/usr/lib/python3/dist-packages/setuptools/sandbox.py", line 67, in runner
_execfile(setup_script, ns)
File "/usr/lib/python3/dist-packages/setuptools/sandbox.py", line 43, in _execfile
exec(code, globals, locals)
File "/tmp/easy_install-u_563kss/grpcio-1.16.0/setup.py", line 348, in <module>
File "/usr/lib/python3.4/distutils/core.py", line 148, in setup
dist.run_commands()
File "/usr/lib/python3.4/distutils/dist.py", line 955, in run_commands
self.run_command(cmd)
File "/usr/lib/python3.4/distutils/dist.py", line 974, in run_command
cmd_obj.run()
File "/usr/lib/python3/dist-packages/setuptools/command/bdist_egg.py", line 161, in run
cmd = self.call_command('install_lib', warn_dir=0)
File "/usr/lib/python3/dist-packages/setuptools/command/bdist_egg.py", line 147, in call_command
self.run_command(cmdname)
File "/usr/lib/python3.4/distutils/cmd.py", line 313, in run_command
self.distribution.run_command(command)
File "/usr/lib/python3.4/distutils/dist.py", line 974, in run_command
cmd_obj.run()
File "/usr/lib/python3/dist-packages/setuptools/command/install_lib.py", line 22, in run
self.build()
File "/usr/lib/python3.4/distutils/command/install_lib.py", line 109, in build
self.run_command('build_ext')
File "/usr/lib/python3.4/distutils/cmd.py", line 313, in run_command
self.distribution.run_command(command)
File "/usr/lib/python3.4/distutils/dist.py", line 974, in run_command
cmd_obj.run()
File "/usr/lib/python3/dist-packages/setuptools/command/build_ext.py", line 54, in run
_build_ext.run(self)
File "/usr/lib/python3.4/distutils/command/build_ext.py", line 339, in run
self.build_extensions()
File "/tmp/easy_install-u_563kss/grpcio-1.16.0/src/python/grpcio/commands.py", line 304, in build_extensions
File "/tmp/easy_install-u_563kss/grpcio-1.16.0/src/python/grpcio/support.py", line 111, in diagnose_build_ext_error
File "/tmp/easy_install-u_563kss/grpcio-1.16.0/src/python/grpcio/support.py", line 70, in diagnose_compile_error
File "/tmp/easy_install-u_563kss/grpcio-1.16.0/src/python/grpcio/support.py", line 64, in _expect_compile
commands.CommandError: Diagnostics found a compilation environment issue:

Could not find <Python.h>. This could mean the following:
* You're on Ubuntu and haven't run `apt-get install python-dev`.
* You're on RHEL/Fedora and haven't run `yum install python-devel` or
`dnf install python-devel` (make sure you also have redhat-rpm-config
installed)
* You're on Mac OS X and the usual Python framework was somehow corrupted
(check your environment variables or try re-installing?) * You're on Windows and your Python installation was somehow corrupted
(check your environment variables or try re-installing?)


when i try using apt-get install -f



root@localhost:/# apt-get install -f
Reading package lists... Done
Building dependency tree
Reading state information... Done
Correcting dependencies... Done
The following package was automatically installed and is no longer required:
libstdc++-4.9-dev
Use 'apt-get autoremove' to remove it.
The following extra packages will be installed:
libc-bin libc6
Suggested packages:
glibc-doc libc-l10n locales
The following packages will be REMOVED:
g++ g++-4.9 gcc gcc-4.9
The following packages will be upgraded:
libc-bin libc6
2 upgraded, 0 newly installed, 4 to remove and 60 not upgraded.
3 not fully installed or removed.
Need to get 0 B/3022 kB of archives.
After this operation, 30.1 MB disk space will be freed.
Do you want to continue? [Y/n] y
Preconfiguring packages ...
(Reading database ... 27616 files and directories currently installed.)
Preparing to unpack .../libc6_2.24-11+deb9u1_armhf.deb ...
Checking for services that may need to be restarted...
Checking init scripts...
Failed to read /proc/cmdline. Ignoring: Permission denied
Unpacking libc6:armhf (2.24-11+deb9u1) over (2.19-18+deb8u10) ...
dpkg: warning: subprocess old post-removal script was killed by signal (Segmentation fault)
dpkg: trying script from the new package instead ...
dpkg: error processing archive /var/cache/apt/archives/libc6_2.24-11+deb9u1_armhf.deb (--unpack):
subprocess new post-removal script was killed by signal (Segmentation fault)
dpkg: error while cleaning up:
subprocess installed pre-installation script was killed by signal (Segmentation fault)
Processing triggers for libc-bin (2.19-18+deb8u10) ...
E: Sub-process /usr/bin/dpkg returned an error code (1)


My next step was to install aptitude but i got a new error when trying to use it



root@localhost:/# aptitude update
E: failed to rename /var/lib/aptitude/pkgstates to /var/lib/aptitude/pkgstates.old - save_selection_list (1: Operation not permitted)
[ ERR] Writing extended state information
E: failed to rename /var/lib/aptitude/pkgstates to /var/lib/aptitude/pkgstates.old - save_selection_list (1: Operation not permitted)


dpkg is also throwing its own errors



root@localhost:/# dpkg --configure -a
dpkg: dependency problems prevent configuration of libc-dev-bin:
libc-dev-bin depends on libc6 (>> 2.24); however:
Package libc6:armhf is not installed.
libc-dev-bin depends on libc6 (<< 2.25); however:
Package libc6:armhf is not installed.

dpkg: error processing package libc-dev-bin (--configure):
dependency problems - leaving unconfigured
dpkg: dependency problems prevent configuration of libc6-dev:armhf:
libc6-dev:armhf depends on libc6 (= 2.24-11+deb9u1); however:
Package libc6:armhf is not installed.
libc6-dev:armhf depends on libc-dev-bin (= 2.24-11+deb9u1); however:
Package libc-dev-bin is not configured yet.

dpkg: error processing package libc6-dev:armhf (--configure):
dependency problems - leaving unconfigured
Errors were encountered while processing:
libc-dev-bin
libc6-dev:armhf


as this is a chroot environment I don't have sudo. I was attempting to fulfill all dependencies for installing InstaPy and added chrome using this link










share|improve this question







New contributor




Kenechukwu is a new contributor to this site. Take care in asking for clarification, commenting, and answering.
Check out our Code of Conduct.




















  • You're on jessie (Debian 8) but Preparing to unpack .../libc6_2.24-11+deb9u1_armhf.deb which is about Debian 9. So you now have a FrankenDebian. Why don't you use directly a Debian 9 (stretch) chroot if you need pieces of it?
    – A.B
    Nov 20 at 21:58










  • @A.B wow! i never knew something called a frankendebian exists. how do i fix this monster! i don't know how to directly use debian 9 as you mentioned, my linux was installed via an app on playstore called gnuroot debian
    – Kenechukwu
    Nov 20 at 23:32










  • might be just that jessie (which was the former stable) refers to itself as stable instead of jessie (or oldstable) in your installation. You should correct references to stable into jessie instead, wherever it is in all files found in the /et/apt/ arborescence. If that's not enough, you could also choose to dist-upgrade from jessie to stretch (current stable) instead, hoping it's not too late and that this can work in a chroot.
    – A.B
    Nov 21 at 6:50















up vote
0
down vote

favorite









up vote
0
down vote

favorite











i have a chroot debian os running on my rooted android phone, i recently tried installing InstaPy on it and ran into the following errors



root@localhost:/# cd InstaPy
root@localhost:/InstaPy# python3 setup.py install
/usr/lib/python3.4/distutils/dist.py:260: UserWarning: Unknown distribution option: 'python_requires'
warnings.warn(msg)
/usr/lib/python3.4/distutils/dist.py:260: UserWarning: Unknown distribution option: 'project_urls'
warnings.warn(msg)
running install
Checking .pth file support in /usr/local/lib/python3.4/dist-packages/
/usr/bin/python3 -E -c pass
TEST PASSED: /usr/local/lib/python3.4/dist-packages/ appears to support .pth files
running bdist_egg
running egg_info
writing dependency_links to instagram_py.egg-info/dependency_links.txt
writing top-level names to instagram_py.egg-info/top_level.txt
writing instagram_py.egg-info/PKG-INFO
writing requirements to instagram_py.egg-info/requires.txt
file i.py (for module i) not found
file n.py (for module n) not found
file s.py (for module s) not found
file t.py (for module t) not found
file a.py (for module a) not found
file p.py (for module p) not found
file y.py (for module y) not found
reading manifest file 'instagram_py.egg-info/SOURCES.txt'
reading manifest template 'MANIFEST.in'
warning: no files found matching '*' under directory 'db'
writing manifest file 'instagram_py.egg-info/SOURCES.txt'
installing library code to build/bdist.linux-armv7l/egg
running install_lib
running build_py
file i.py (for module i) not found
file n.py (for module n) not found
file s.py (for module s) not found
file t.py (for module t) not found
file a.py (for module a) not found
file p.py (for module p) not found
file y.py (for module y) not found
file i.py (for module i) not found
file n.py (for module n) not found
file s.py (for module s) not found
file t.py (for module t) not found
file a.py (for module a) not found
file p.py (for module p) not found
file y.py (for module y) not found
creating build/bdist.linux-armv7l/egg
creating build/bdist.linux-armv7l/egg/instapy
copying build/lib/instapy/__init__.py -> build/bdist.linux-armv7l/egg/instapy
copying build/lib/instapy/clarifai_util.py -> build/bdist.linux-armv7l/egg/instapy
copying build/lib/instapy/comment_util.py -> build/bdist.linux-armv7l/egg/instapy
copying build/lib/instapy/commenters_util.py -> build/bdist.linux-armv7l/egg/instapy
copying build/lib/instapy/database_engine.py -> build/bdist.linux-armv7l/egg/instapy
copying build/lib/instapy/feed_util.py -> build/bdist.linux-armv7l/egg/instapy
copying build/lib/instapy/instapy.py -> build/bdist.linux-armv7l/egg/instapy
copying build/lib/instapy/like_util.py -> build/bdist.linux-armv7l/egg/instapy
copying build/lib/instapy/login_util.py -> build/bdist.linux-armv7l/egg/instapy
copying build/lib/instapy/monkey_patcher.py -> build/bdist.linux-armv7l/egg/instapy
copying build/lib/instapy/print_log_writer.py -> build/bdist.linux-armv7l/egg/instapy
copying build/lib/instapy/quota_supervisor.py -> build/bdist.linux-armv7l/egg/instapy
copying build/lib/instapy/relationship_tools.py -> build/bdist.linux-armv7l/egg/instapy
copying build/lib/instapy/settings.py -> build/bdist.linux-armv7l/egg/instapy
copying build/lib/instapy/time_util.py -> build/bdist.linux-armv7l/egg/instapy
copying build/lib/instapy/unfollow_util.py -> build/bdist.linux-armv7l/egg/instapy
copying build/lib/instapy/util.py -> build/bdist.linux-armv7l/egg/instapy
byte-compiling build/bdist.linux-armv7l/egg/instapy/__init__.py to __init__.cpython-34.pyc
byte-compiling build/bdist.linux-armv7l/egg/instapy/clarifai_util.py to clarifai_util.cpython-34.pyc
byte-compiling build/bdist.linux-armv7l/egg/instapy/comment_util.py to comment_util.cpython-34.pyc
byte-compiling build/bdist.linux-armv7l/egg/instapy/commenters_util.py to commenters_util.cpython-34.pyc
byte-compiling build/bdist.linux-armv7l/egg/instapy/database_engine.py to database_engine.cpython-34.pyc
byte-compiling build/bdist.linux-armv7l/egg/instapy/feed_util.py to feed_util.cpython-34.pyc
byte-compiling build/bdist.linux-armv7l/egg/instapy/instapy.py to instapy.cpython-34.pyc
byte-compiling build/bdist.linux-armv7l/egg/instapy/like_util.py to like_util.cpython-34.pyc
byte-compiling build/bdist.linux-armv7l/egg/instapy/login_util.py to login_util.cpython-34.pyc
byte-compiling build/bdist.linux-armv7l/egg/instapy/monkey_patcher.py to monkey_patcher.cpython-34.pyc
byte-compiling build/bdist.linux-armv7l/egg/instapy/print_log_writer.py to print_log_writer.cpython-34.pyc
byte-compiling build/bdist.linux-armv7l/egg/instapy/quota_supervisor.py to quota_supervisor.cpython-34.pyc
byte-compiling build/bdist.linux-armv7l/egg/instapy/relationship_tools.py to relationship_tools.cpython-34.pyc
byte-compiling build/bdist.linux-armv7l/egg/instapy/settings.py to settings.cpython-34.pyc
byte-compiling build/bdist.linux-armv7l/egg/instapy/time_util.py to time_util.cpython-34.pyc
byte-compiling build/bdist.linux-armv7l/egg/instapy/unfollow_util.py to unfollow_util.cpython-34.pyc
byte-compiling build/bdist.linux-armv7l/egg/instapy/util.py to util.cpython-34.pyc
creating build/bdist.linux-armv7l/egg/EGG-INFO
copying instagram_py.egg-info/PKG-INFO -> build/bdist.linux-armv7l/egg/EGG-INFO
copying instagram_py.egg-info/SOURCES.txt -> build/bdist.linux-armv7l/egg/EGG-INFO
copying instagram_py.egg-info/dependency_links.txt -> build/bdist.linux-armv7l/egg/EGG-INFO
copying instagram_py.egg-info/requires.txt -> build/bdist.linux-armv7l/egg/EGG-INFO
copying instagram_py.egg-info/top_level.txt -> build/bdist.linux-armv7l/egg/EGG-INFO
zip_safe flag not set; analyzing archive contents...
instapy.__pycache__.settings.cpython-34: module references __file__
creating 'dist/instagram_py-0.0.1-py3.4.egg' and adding 'build/bdist.linux-armv7l/egg' to it
removing 'build/bdist.linux-armv7l/egg' (and everything under it)
Processing instagram_py-0.0.1-py3.4.egg
removing '/usr/local/lib/python3.4/dist-packages/instagram_py-0.0.1-py3.4.egg' (and everything under it)
creating /usr/local/lib/python3.4/dist-packages/instagram_py-0.0.1-py3.4.egg
Extracting instagram_py-0.0.1-py3.4.egg to /usr/local/lib/python3.4/dist-packages
instagram-py 0.0.1 is already the active version in easy-install.pth

Installed /usr/local/lib/python3.4/dist-packages/instagram_py-0.0.1-py3.4.egg
Processing dependencies for instagram-py==0.0.1
Searching for grpcio==1.16.0
Reading https://pypi.python.org/simple/grpcio/
Best match: grpcio 1.16.0
Downloading https://files.pythonhosted.org/packages/be/84/9afa550ae7bfc65a7150f66ecdbf267617a2d584d9f845b4ef7d026a24ad/grpcio-1.16.0.tar.gz#sha256=0cc5f2d3ee21c642d8982f197c83053fd3a8cbcd6a60240d8c87c6c256b10d57
Processing grpcio-1.16.0.tar.gz
Writing /tmp/easy_install-u_563kss/grpcio-1.16.0/setup.cfg
Running grpcio-1.16.0/setup.py -q bdist_egg --dist-dir /tmp/easy_install-u_563kss/grpcio-1.16.0/egg-dist-tmp-dcx0o3o6
Found cython-generated files...
warning: no files found matching '*.c' under directory 'src/python/grpcio/grpc'
warning: no files found matching '*.h' under directory 'src/python/grpcio/grpc'
warning: no files found matching '*.python' under directory 'src/python/grpcio/grpc'
warning: no previously-included files matching '*.so' found under directory 'src/python/grpcio/grpc/_cython'
warning: no previously-included files matching '*.pyd' found under directory 'src/python/grpcio/grpc/_cython'
warning: no files found matching 'src/python/grpcio/precompiled.py'
Found cython-generated files...
arm-linux-gnueabihf-gcc: error: src/python/grpcio/grpc/_cython/cygrpc.c: No such file or directory
arm-linux-gnueabihf-gcc: fatal error: no input files
compilation terminated.
arm-linux-gnueabihf-gcc: error trying to exec 'as': execvp: No such file or directory

Could not find <Python.h>. This could mean the following:
* You're on Ubuntu and haven't run `apt-get install python-dev`.
* You're on RHEL/Fedora and haven't run `yum install python-devel` or
`dnf install python-devel` (make sure you also have redhat-rpm-config
installed)
* You're on Mac OS X and the usual Python framework was somehow corrupted
(check your environment variables or try re-installing?) * You're on Windows and your Python installation was somehow corrupted
(check your environment variables or try re-installing?)Traceback (most recent call last):
File "/usr/lib/python3.4/distutils/unixccompiler.py", line 116, in _compile
extra_postargs)
File "/tmp/easy_install-u_563kss/grpcio-1.16.0/src/python/grpcio/_spawn_patch.py", line 54, in _commandfile_spawn
File "/usr/lib/python3.4/distutils/ccompiler.py", line 909, in spawn
spawn(cmd, dry_run=self.dry_run)
File "/usr/lib/python3.4/distutils/spawn.py", line 36, in spawn
_spawn_posix(cmd, search_path, dry_run=dry_run)
File "/usr/lib/python3.4/distutils/spawn.py", line 162, in _spawn_posix
% (cmd, exit_status))
distutils.errors.DistutilsExecError: command 'arm-linux-gnueabihf-gcc' failed with exit status 4

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
File "/tmp/easy_install-u_563kss/grpcio-1.16.0/src/python/grpcio/commands.py", line 301, in build_extensions
File "/usr/lib/python3.4/distutils/command/build_ext.py", line 448, in build_extensions
self.build_extension(ext)
File "/usr/lib/python3/dist-packages/setuptools/command/build_ext.py", line 187, in build_extension
_build_ext.build_extension(self, ext)
File "/usr/lib/python3.4/distutils/command/build_ext.py", line 503, in build_extension
depends=ext.depends)
File "/usr/lib/python3.4/distutils/ccompiler.py", line 574, in compile
self._compile(obj, src, ext, cc_args, extra_postargs, pp_opts)
File "/usr/lib/python3.4/distutils/unixccompiler.py", line 118, in _compile
raise CompileError(msg)
distutils.errors.CompileError: command 'arm-linux-gnueabihf-gcc' failed with exit status 4

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
File "setup.py", line 65, in <module>
platforms=["win32", "linux", "linux2", "darwin"]
File "/usr/lib/python3.4/distutils/core.py", line 148, in setup
dist.run_commands()
File "/usr/lib/python3.4/distutils/dist.py", line 955, in run_commands
self.run_command(cmd)
File "/usr/lib/python3.4/distutils/dist.py", line 974, in run_command
cmd_obj.run()
File "/usr/lib/python3/dist-packages/setuptools/command/install.py", line 67, in run
self.do_egg_install()
File "/usr/lib/python3/dist-packages/setuptools/command/install.py", line 117, in do_egg_install
cmd.run()
File "/usr/lib/python3/dist-packages/setuptools/command/easy_install.py", line 393, in run
self.easy_install(spec, not self.no_deps)
File "/usr/lib/python3/dist-packages/setuptools/command/easy_install.py", line 617, in easy_install
return self.install_item(None, spec, tmpdir, deps, True) File "/usr/lib/python3/dist-packages/setuptools/command/easy_install.py", line 668, in install_item
self.process_distribution(spec, dist, deps)
File "/usr/lib/python3/dist-packages/setuptools/command/easy_install.py", line 716, in process_distribution
[requirement], self.local_index, self.easy_install
File "/usr/lib/python3/dist-packages/pkg_resources.py", line 631, in resolve
dist = best[req.key] = env.best_match(req, ws, installer)
File "/usr/lib/python3/dist-packages/pkg_resources.py", line 874, in best_match
return self.obtain(req, installer)
File "/usr/lib/python3/dist-packages/pkg_resources.py", line 886, in obtain
return installer(requirement)
File "/usr/lib/python3/dist-packages/setuptools/command/easy_install.py", line 636, in easy_install
return self.install_item(spec, dist.location, tmpdir, deps)
File "/usr/lib/python3/dist-packages/setuptools/command/easy_install.py", line 666, in install_item
dists = self.install_eggs(spec, download, tmpdir)
File "/usr/lib/python3/dist-packages/setuptools/command/easy_install.py", line 856, in install_eggs
return self.build_and_install(setup_script, setup_base)
File "/usr/lib/python3/dist-packages/setuptools/command/easy_install.py", line 1078, in build_and_install
self.run_setup(setup_script, setup_base, args)
File "/usr/lib/python3/dist-packages/setuptools/command/easy_install.py", line 1063, in run_setup
run_setup(setup_script, args)
File "/usr/lib/python3/dist-packages/setuptools/sandbox.py", line 68, in run_setup
DirectorySandbox(setup_dir).run(runner)
File "/usr/lib/python3/dist-packages/setuptools/sandbox.py", line 114, in run
return func()
File "/usr/lib/python3/dist-packages/setuptools/sandbox.py", line 67, in runner
_execfile(setup_script, ns)
File "/usr/lib/python3/dist-packages/setuptools/sandbox.py", line 43, in _execfile
exec(code, globals, locals)
File "/tmp/easy_install-u_563kss/grpcio-1.16.0/setup.py", line 348, in <module>
File "/usr/lib/python3.4/distutils/core.py", line 148, in setup
dist.run_commands()
File "/usr/lib/python3.4/distutils/dist.py", line 955, in run_commands
self.run_command(cmd)
File "/usr/lib/python3.4/distutils/dist.py", line 974, in run_command
cmd_obj.run()
File "/usr/lib/python3/dist-packages/setuptools/command/bdist_egg.py", line 161, in run
cmd = self.call_command('install_lib', warn_dir=0)
File "/usr/lib/python3/dist-packages/setuptools/command/bdist_egg.py", line 147, in call_command
self.run_command(cmdname)
File "/usr/lib/python3.4/distutils/cmd.py", line 313, in run_command
self.distribution.run_command(command)
File "/usr/lib/python3.4/distutils/dist.py", line 974, in run_command
cmd_obj.run()
File "/usr/lib/python3/dist-packages/setuptools/command/install_lib.py", line 22, in run
self.build()
File "/usr/lib/python3.4/distutils/command/install_lib.py", line 109, in build
self.run_command('build_ext')
File "/usr/lib/python3.4/distutils/cmd.py", line 313, in run_command
self.distribution.run_command(command)
File "/usr/lib/python3.4/distutils/dist.py", line 974, in run_command
cmd_obj.run()
File "/usr/lib/python3/dist-packages/setuptools/command/build_ext.py", line 54, in run
_build_ext.run(self)
File "/usr/lib/python3.4/distutils/command/build_ext.py", line 339, in run
self.build_extensions()
File "/tmp/easy_install-u_563kss/grpcio-1.16.0/src/python/grpcio/commands.py", line 304, in build_extensions
File "/tmp/easy_install-u_563kss/grpcio-1.16.0/src/python/grpcio/support.py", line 111, in diagnose_build_ext_error
File "/tmp/easy_install-u_563kss/grpcio-1.16.0/src/python/grpcio/support.py", line 70, in diagnose_compile_error
File "/tmp/easy_install-u_563kss/grpcio-1.16.0/src/python/grpcio/support.py", line 64, in _expect_compile
commands.CommandError: Diagnostics found a compilation environment issue:

Could not find <Python.h>. This could mean the following:
* You're on Ubuntu and haven't run `apt-get install python-dev`.
* You're on RHEL/Fedora and haven't run `yum install python-devel` or
`dnf install python-devel` (make sure you also have redhat-rpm-config
installed)
* You're on Mac OS X and the usual Python framework was somehow corrupted
(check your environment variables or try re-installing?) * You're on Windows and your Python installation was somehow corrupted
(check your environment variables or try re-installing?)


when i try using apt-get install -f



root@localhost:/# apt-get install -f
Reading package lists... Done
Building dependency tree
Reading state information... Done
Correcting dependencies... Done
The following package was automatically installed and is no longer required:
libstdc++-4.9-dev
Use 'apt-get autoremove' to remove it.
The following extra packages will be installed:
libc-bin libc6
Suggested packages:
glibc-doc libc-l10n locales
The following packages will be REMOVED:
g++ g++-4.9 gcc gcc-4.9
The following packages will be upgraded:
libc-bin libc6
2 upgraded, 0 newly installed, 4 to remove and 60 not upgraded.
3 not fully installed or removed.
Need to get 0 B/3022 kB of archives.
After this operation, 30.1 MB disk space will be freed.
Do you want to continue? [Y/n] y
Preconfiguring packages ...
(Reading database ... 27616 files and directories currently installed.)
Preparing to unpack .../libc6_2.24-11+deb9u1_armhf.deb ...
Checking for services that may need to be restarted...
Checking init scripts...
Failed to read /proc/cmdline. Ignoring: Permission denied
Unpacking libc6:armhf (2.24-11+deb9u1) over (2.19-18+deb8u10) ...
dpkg: warning: subprocess old post-removal script was killed by signal (Segmentation fault)
dpkg: trying script from the new package instead ...
dpkg: error processing archive /var/cache/apt/archives/libc6_2.24-11+deb9u1_armhf.deb (--unpack):
subprocess new post-removal script was killed by signal (Segmentation fault)
dpkg: error while cleaning up:
subprocess installed pre-installation script was killed by signal (Segmentation fault)
Processing triggers for libc-bin (2.19-18+deb8u10) ...
E: Sub-process /usr/bin/dpkg returned an error code (1)


My next step was to install aptitude but i got a new error when trying to use it



root@localhost:/# aptitude update
E: failed to rename /var/lib/aptitude/pkgstates to /var/lib/aptitude/pkgstates.old - save_selection_list (1: Operation not permitted)
[ ERR] Writing extended state information
E: failed to rename /var/lib/aptitude/pkgstates to /var/lib/aptitude/pkgstates.old - save_selection_list (1: Operation not permitted)


dpkg is also throwing its own errors



root@localhost:/# dpkg --configure -a
dpkg: dependency problems prevent configuration of libc-dev-bin:
libc-dev-bin depends on libc6 (>> 2.24); however:
Package libc6:armhf is not installed.
libc-dev-bin depends on libc6 (<< 2.25); however:
Package libc6:armhf is not installed.

dpkg: error processing package libc-dev-bin (--configure):
dependency problems - leaving unconfigured
dpkg: dependency problems prevent configuration of libc6-dev:armhf:
libc6-dev:armhf depends on libc6 (= 2.24-11+deb9u1); however:
Package libc6:armhf is not installed.
libc6-dev:armhf depends on libc-dev-bin (= 2.24-11+deb9u1); however:
Package libc-dev-bin is not configured yet.

dpkg: error processing package libc6-dev:armhf (--configure):
dependency problems - leaving unconfigured
Errors were encountered while processing:
libc-dev-bin
libc6-dev:armhf


as this is a chroot environment I don't have sudo. I was attempting to fulfill all dependencies for installing InstaPy and added chrome using this link










share|improve this question







New contributor




Kenechukwu is a new contributor to this site. Take care in asking for clarification, commenting, and answering.
Check out our Code of Conduct.











i have a chroot debian os running on my rooted android phone, i recently tried installing InstaPy on it and ran into the following errors



root@localhost:/# cd InstaPy
root@localhost:/InstaPy# python3 setup.py install
/usr/lib/python3.4/distutils/dist.py:260: UserWarning: Unknown distribution option: 'python_requires'
warnings.warn(msg)
/usr/lib/python3.4/distutils/dist.py:260: UserWarning: Unknown distribution option: 'project_urls'
warnings.warn(msg)
running install
Checking .pth file support in /usr/local/lib/python3.4/dist-packages/
/usr/bin/python3 -E -c pass
TEST PASSED: /usr/local/lib/python3.4/dist-packages/ appears to support .pth files
running bdist_egg
running egg_info
writing dependency_links to instagram_py.egg-info/dependency_links.txt
writing top-level names to instagram_py.egg-info/top_level.txt
writing instagram_py.egg-info/PKG-INFO
writing requirements to instagram_py.egg-info/requires.txt
file i.py (for module i) not found
file n.py (for module n) not found
file s.py (for module s) not found
file t.py (for module t) not found
file a.py (for module a) not found
file p.py (for module p) not found
file y.py (for module y) not found
reading manifest file 'instagram_py.egg-info/SOURCES.txt'
reading manifest template 'MANIFEST.in'
warning: no files found matching '*' under directory 'db'
writing manifest file 'instagram_py.egg-info/SOURCES.txt'
installing library code to build/bdist.linux-armv7l/egg
running install_lib
running build_py
file i.py (for module i) not found
file n.py (for module n) not found
file s.py (for module s) not found
file t.py (for module t) not found
file a.py (for module a) not found
file p.py (for module p) not found
file y.py (for module y) not found
file i.py (for module i) not found
file n.py (for module n) not found
file s.py (for module s) not found
file t.py (for module t) not found
file a.py (for module a) not found
file p.py (for module p) not found
file y.py (for module y) not found
creating build/bdist.linux-armv7l/egg
creating build/bdist.linux-armv7l/egg/instapy
copying build/lib/instapy/__init__.py -> build/bdist.linux-armv7l/egg/instapy
copying build/lib/instapy/clarifai_util.py -> build/bdist.linux-armv7l/egg/instapy
copying build/lib/instapy/comment_util.py -> build/bdist.linux-armv7l/egg/instapy
copying build/lib/instapy/commenters_util.py -> build/bdist.linux-armv7l/egg/instapy
copying build/lib/instapy/database_engine.py -> build/bdist.linux-armv7l/egg/instapy
copying build/lib/instapy/feed_util.py -> build/bdist.linux-armv7l/egg/instapy
copying build/lib/instapy/instapy.py -> build/bdist.linux-armv7l/egg/instapy
copying build/lib/instapy/like_util.py -> build/bdist.linux-armv7l/egg/instapy
copying build/lib/instapy/login_util.py -> build/bdist.linux-armv7l/egg/instapy
copying build/lib/instapy/monkey_patcher.py -> build/bdist.linux-armv7l/egg/instapy
copying build/lib/instapy/print_log_writer.py -> build/bdist.linux-armv7l/egg/instapy
copying build/lib/instapy/quota_supervisor.py -> build/bdist.linux-armv7l/egg/instapy
copying build/lib/instapy/relationship_tools.py -> build/bdist.linux-armv7l/egg/instapy
copying build/lib/instapy/settings.py -> build/bdist.linux-armv7l/egg/instapy
copying build/lib/instapy/time_util.py -> build/bdist.linux-armv7l/egg/instapy
copying build/lib/instapy/unfollow_util.py -> build/bdist.linux-armv7l/egg/instapy
copying build/lib/instapy/util.py -> build/bdist.linux-armv7l/egg/instapy
byte-compiling build/bdist.linux-armv7l/egg/instapy/__init__.py to __init__.cpython-34.pyc
byte-compiling build/bdist.linux-armv7l/egg/instapy/clarifai_util.py to clarifai_util.cpython-34.pyc
byte-compiling build/bdist.linux-armv7l/egg/instapy/comment_util.py to comment_util.cpython-34.pyc
byte-compiling build/bdist.linux-armv7l/egg/instapy/commenters_util.py to commenters_util.cpython-34.pyc
byte-compiling build/bdist.linux-armv7l/egg/instapy/database_engine.py to database_engine.cpython-34.pyc
byte-compiling build/bdist.linux-armv7l/egg/instapy/feed_util.py to feed_util.cpython-34.pyc
byte-compiling build/bdist.linux-armv7l/egg/instapy/instapy.py to instapy.cpython-34.pyc
byte-compiling build/bdist.linux-armv7l/egg/instapy/like_util.py to like_util.cpython-34.pyc
byte-compiling build/bdist.linux-armv7l/egg/instapy/login_util.py to login_util.cpython-34.pyc
byte-compiling build/bdist.linux-armv7l/egg/instapy/monkey_patcher.py to monkey_patcher.cpython-34.pyc
byte-compiling build/bdist.linux-armv7l/egg/instapy/print_log_writer.py to print_log_writer.cpython-34.pyc
byte-compiling build/bdist.linux-armv7l/egg/instapy/quota_supervisor.py to quota_supervisor.cpython-34.pyc
byte-compiling build/bdist.linux-armv7l/egg/instapy/relationship_tools.py to relationship_tools.cpython-34.pyc
byte-compiling build/bdist.linux-armv7l/egg/instapy/settings.py to settings.cpython-34.pyc
byte-compiling build/bdist.linux-armv7l/egg/instapy/time_util.py to time_util.cpython-34.pyc
byte-compiling build/bdist.linux-armv7l/egg/instapy/unfollow_util.py to unfollow_util.cpython-34.pyc
byte-compiling build/bdist.linux-armv7l/egg/instapy/util.py to util.cpython-34.pyc
creating build/bdist.linux-armv7l/egg/EGG-INFO
copying instagram_py.egg-info/PKG-INFO -> build/bdist.linux-armv7l/egg/EGG-INFO
copying instagram_py.egg-info/SOURCES.txt -> build/bdist.linux-armv7l/egg/EGG-INFO
copying instagram_py.egg-info/dependency_links.txt -> build/bdist.linux-armv7l/egg/EGG-INFO
copying instagram_py.egg-info/requires.txt -> build/bdist.linux-armv7l/egg/EGG-INFO
copying instagram_py.egg-info/top_level.txt -> build/bdist.linux-armv7l/egg/EGG-INFO
zip_safe flag not set; analyzing archive contents...
instapy.__pycache__.settings.cpython-34: module references __file__
creating 'dist/instagram_py-0.0.1-py3.4.egg' and adding 'build/bdist.linux-armv7l/egg' to it
removing 'build/bdist.linux-armv7l/egg' (and everything under it)
Processing instagram_py-0.0.1-py3.4.egg
removing '/usr/local/lib/python3.4/dist-packages/instagram_py-0.0.1-py3.4.egg' (and everything under it)
creating /usr/local/lib/python3.4/dist-packages/instagram_py-0.0.1-py3.4.egg
Extracting instagram_py-0.0.1-py3.4.egg to /usr/local/lib/python3.4/dist-packages
instagram-py 0.0.1 is already the active version in easy-install.pth

Installed /usr/local/lib/python3.4/dist-packages/instagram_py-0.0.1-py3.4.egg
Processing dependencies for instagram-py==0.0.1
Searching for grpcio==1.16.0
Reading https://pypi.python.org/simple/grpcio/
Best match: grpcio 1.16.0
Downloading https://files.pythonhosted.org/packages/be/84/9afa550ae7bfc65a7150f66ecdbf267617a2d584d9f845b4ef7d026a24ad/grpcio-1.16.0.tar.gz#sha256=0cc5f2d3ee21c642d8982f197c83053fd3a8cbcd6a60240d8c87c6c256b10d57
Processing grpcio-1.16.0.tar.gz
Writing /tmp/easy_install-u_563kss/grpcio-1.16.0/setup.cfg
Running grpcio-1.16.0/setup.py -q bdist_egg --dist-dir /tmp/easy_install-u_563kss/grpcio-1.16.0/egg-dist-tmp-dcx0o3o6
Found cython-generated files...
warning: no files found matching '*.c' under directory 'src/python/grpcio/grpc'
warning: no files found matching '*.h' under directory 'src/python/grpcio/grpc'
warning: no files found matching '*.python' under directory 'src/python/grpcio/grpc'
warning: no previously-included files matching '*.so' found under directory 'src/python/grpcio/grpc/_cython'
warning: no previously-included files matching '*.pyd' found under directory 'src/python/grpcio/grpc/_cython'
warning: no files found matching 'src/python/grpcio/precompiled.py'
Found cython-generated files...
arm-linux-gnueabihf-gcc: error: src/python/grpcio/grpc/_cython/cygrpc.c: No such file or directory
arm-linux-gnueabihf-gcc: fatal error: no input files
compilation terminated.
arm-linux-gnueabihf-gcc: error trying to exec 'as': execvp: No such file or directory

Could not find <Python.h>. This could mean the following:
* You're on Ubuntu and haven't run `apt-get install python-dev`.
* You're on RHEL/Fedora and haven't run `yum install python-devel` or
`dnf install python-devel` (make sure you also have redhat-rpm-config
installed)
* You're on Mac OS X and the usual Python framework was somehow corrupted
(check your environment variables or try re-installing?) * You're on Windows and your Python installation was somehow corrupted
(check your environment variables or try re-installing?)Traceback (most recent call last):
File "/usr/lib/python3.4/distutils/unixccompiler.py", line 116, in _compile
extra_postargs)
File "/tmp/easy_install-u_563kss/grpcio-1.16.0/src/python/grpcio/_spawn_patch.py", line 54, in _commandfile_spawn
File "/usr/lib/python3.4/distutils/ccompiler.py", line 909, in spawn
spawn(cmd, dry_run=self.dry_run)
File "/usr/lib/python3.4/distutils/spawn.py", line 36, in spawn
_spawn_posix(cmd, search_path, dry_run=dry_run)
File "/usr/lib/python3.4/distutils/spawn.py", line 162, in _spawn_posix
% (cmd, exit_status))
distutils.errors.DistutilsExecError: command 'arm-linux-gnueabihf-gcc' failed with exit status 4

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
File "/tmp/easy_install-u_563kss/grpcio-1.16.0/src/python/grpcio/commands.py", line 301, in build_extensions
File "/usr/lib/python3.4/distutils/command/build_ext.py", line 448, in build_extensions
self.build_extension(ext)
File "/usr/lib/python3/dist-packages/setuptools/command/build_ext.py", line 187, in build_extension
_build_ext.build_extension(self, ext)
File "/usr/lib/python3.4/distutils/command/build_ext.py", line 503, in build_extension
depends=ext.depends)
File "/usr/lib/python3.4/distutils/ccompiler.py", line 574, in compile
self._compile(obj, src, ext, cc_args, extra_postargs, pp_opts)
File "/usr/lib/python3.4/distutils/unixccompiler.py", line 118, in _compile
raise CompileError(msg)
distutils.errors.CompileError: command 'arm-linux-gnueabihf-gcc' failed with exit status 4

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
File "setup.py", line 65, in <module>
platforms=["win32", "linux", "linux2", "darwin"]
File "/usr/lib/python3.4/distutils/core.py", line 148, in setup
dist.run_commands()
File "/usr/lib/python3.4/distutils/dist.py", line 955, in run_commands
self.run_command(cmd)
File "/usr/lib/python3.4/distutils/dist.py", line 974, in run_command
cmd_obj.run()
File "/usr/lib/python3/dist-packages/setuptools/command/install.py", line 67, in run
self.do_egg_install()
File "/usr/lib/python3/dist-packages/setuptools/command/install.py", line 117, in do_egg_install
cmd.run()
File "/usr/lib/python3/dist-packages/setuptools/command/easy_install.py", line 393, in run
self.easy_install(spec, not self.no_deps)
File "/usr/lib/python3/dist-packages/setuptools/command/easy_install.py", line 617, in easy_install
return self.install_item(None, spec, tmpdir, deps, True) File "/usr/lib/python3/dist-packages/setuptools/command/easy_install.py", line 668, in install_item
self.process_distribution(spec, dist, deps)
File "/usr/lib/python3/dist-packages/setuptools/command/easy_install.py", line 716, in process_distribution
[requirement], self.local_index, self.easy_install
File "/usr/lib/python3/dist-packages/pkg_resources.py", line 631, in resolve
dist = best[req.key] = env.best_match(req, ws, installer)
File "/usr/lib/python3/dist-packages/pkg_resources.py", line 874, in best_match
return self.obtain(req, installer)
File "/usr/lib/python3/dist-packages/pkg_resources.py", line 886, in obtain
return installer(requirement)
File "/usr/lib/python3/dist-packages/setuptools/command/easy_install.py", line 636, in easy_install
return self.install_item(spec, dist.location, tmpdir, deps)
File "/usr/lib/python3/dist-packages/setuptools/command/easy_install.py", line 666, in install_item
dists = self.install_eggs(spec, download, tmpdir)
File "/usr/lib/python3/dist-packages/setuptools/command/easy_install.py", line 856, in install_eggs
return self.build_and_install(setup_script, setup_base)
File "/usr/lib/python3/dist-packages/setuptools/command/easy_install.py", line 1078, in build_and_install
self.run_setup(setup_script, setup_base, args)
File "/usr/lib/python3/dist-packages/setuptools/command/easy_install.py", line 1063, in run_setup
run_setup(setup_script, args)
File "/usr/lib/python3/dist-packages/setuptools/sandbox.py", line 68, in run_setup
DirectorySandbox(setup_dir).run(runner)
File "/usr/lib/python3/dist-packages/setuptools/sandbox.py", line 114, in run
return func()
File "/usr/lib/python3/dist-packages/setuptools/sandbox.py", line 67, in runner
_execfile(setup_script, ns)
File "/usr/lib/python3/dist-packages/setuptools/sandbox.py", line 43, in _execfile
exec(code, globals, locals)
File "/tmp/easy_install-u_563kss/grpcio-1.16.0/setup.py", line 348, in <module>
File "/usr/lib/python3.4/distutils/core.py", line 148, in setup
dist.run_commands()
File "/usr/lib/python3.4/distutils/dist.py", line 955, in run_commands
self.run_command(cmd)
File "/usr/lib/python3.4/distutils/dist.py", line 974, in run_command
cmd_obj.run()
File "/usr/lib/python3/dist-packages/setuptools/command/bdist_egg.py", line 161, in run
cmd = self.call_command('install_lib', warn_dir=0)
File "/usr/lib/python3/dist-packages/setuptools/command/bdist_egg.py", line 147, in call_command
self.run_command(cmdname)
File "/usr/lib/python3.4/distutils/cmd.py", line 313, in run_command
self.distribution.run_command(command)
File "/usr/lib/python3.4/distutils/dist.py", line 974, in run_command
cmd_obj.run()
File "/usr/lib/python3/dist-packages/setuptools/command/install_lib.py", line 22, in run
self.build()
File "/usr/lib/python3.4/distutils/command/install_lib.py", line 109, in build
self.run_command('build_ext')
File "/usr/lib/python3.4/distutils/cmd.py", line 313, in run_command
self.distribution.run_command(command)
File "/usr/lib/python3.4/distutils/dist.py", line 974, in run_command
cmd_obj.run()
File "/usr/lib/python3/dist-packages/setuptools/command/build_ext.py", line 54, in run
_build_ext.run(self)
File "/usr/lib/python3.4/distutils/command/build_ext.py", line 339, in run
self.build_extensions()
File "/tmp/easy_install-u_563kss/grpcio-1.16.0/src/python/grpcio/commands.py", line 304, in build_extensions
File "/tmp/easy_install-u_563kss/grpcio-1.16.0/src/python/grpcio/support.py", line 111, in diagnose_build_ext_error
File "/tmp/easy_install-u_563kss/grpcio-1.16.0/src/python/grpcio/support.py", line 70, in diagnose_compile_error
File "/tmp/easy_install-u_563kss/grpcio-1.16.0/src/python/grpcio/support.py", line 64, in _expect_compile
commands.CommandError: Diagnostics found a compilation environment issue:

Could not find <Python.h>. This could mean the following:
* You're on Ubuntu and haven't run `apt-get install python-dev`.
* You're on RHEL/Fedora and haven't run `yum install python-devel` or
`dnf install python-devel` (make sure you also have redhat-rpm-config
installed)
* You're on Mac OS X and the usual Python framework was somehow corrupted
(check your environment variables or try re-installing?) * You're on Windows and your Python installation was somehow corrupted
(check your environment variables or try re-installing?)


when i try using apt-get install -f



root@localhost:/# apt-get install -f
Reading package lists... Done
Building dependency tree
Reading state information... Done
Correcting dependencies... Done
The following package was automatically installed and is no longer required:
libstdc++-4.9-dev
Use 'apt-get autoremove' to remove it.
The following extra packages will be installed:
libc-bin libc6
Suggested packages:
glibc-doc libc-l10n locales
The following packages will be REMOVED:
g++ g++-4.9 gcc gcc-4.9
The following packages will be upgraded:
libc-bin libc6
2 upgraded, 0 newly installed, 4 to remove and 60 not upgraded.
3 not fully installed or removed.
Need to get 0 B/3022 kB of archives.
After this operation, 30.1 MB disk space will be freed.
Do you want to continue? [Y/n] y
Preconfiguring packages ...
(Reading database ... 27616 files and directories currently installed.)
Preparing to unpack .../libc6_2.24-11+deb9u1_armhf.deb ...
Checking for services that may need to be restarted...
Checking init scripts...
Failed to read /proc/cmdline. Ignoring: Permission denied
Unpacking libc6:armhf (2.24-11+deb9u1) over (2.19-18+deb8u10) ...
dpkg: warning: subprocess old post-removal script was killed by signal (Segmentation fault)
dpkg: trying script from the new package instead ...
dpkg: error processing archive /var/cache/apt/archives/libc6_2.24-11+deb9u1_armhf.deb (--unpack):
subprocess new post-removal script was killed by signal (Segmentation fault)
dpkg: error while cleaning up:
subprocess installed pre-installation script was killed by signal (Segmentation fault)
Processing triggers for libc-bin (2.19-18+deb8u10) ...
E: Sub-process /usr/bin/dpkg returned an error code (1)


My next step was to install aptitude but i got a new error when trying to use it



root@localhost:/# aptitude update
E: failed to rename /var/lib/aptitude/pkgstates to /var/lib/aptitude/pkgstates.old - save_selection_list (1: Operation not permitted)
[ ERR] Writing extended state information
E: failed to rename /var/lib/aptitude/pkgstates to /var/lib/aptitude/pkgstates.old - save_selection_list (1: Operation not permitted)


dpkg is also throwing its own errors



root@localhost:/# dpkg --configure -a
dpkg: dependency problems prevent configuration of libc-dev-bin:
libc-dev-bin depends on libc6 (>> 2.24); however:
Package libc6:armhf is not installed.
libc-dev-bin depends on libc6 (<< 2.25); however:
Package libc6:armhf is not installed.

dpkg: error processing package libc-dev-bin (--configure):
dependency problems - leaving unconfigured
dpkg: dependency problems prevent configuration of libc6-dev:armhf:
libc6-dev:armhf depends on libc6 (= 2.24-11+deb9u1); however:
Package libc6:armhf is not installed.
libc6-dev:armhf depends on libc-dev-bin (= 2.24-11+deb9u1); however:
Package libc-dev-bin is not configured yet.

dpkg: error processing package libc6-dev:armhf (--configure):
dependency problems - leaving unconfigured
Errors were encountered while processing:
libc-dev-bin
libc6-dev:armhf


as this is a chroot environment I don't have sudo. I was attempting to fulfill all dependencies for installing InstaPy and added chrome using this link







debian apt dpkg chroot aptitude






share|improve this question







New contributor




Kenechukwu is a new contributor to this site. Take care in asking for clarification, commenting, and answering.
Check out our Code of Conduct.











share|improve this question







New contributor




Kenechukwu is a new contributor to this site. Take care in asking for clarification, commenting, and answering.
Check out our Code of Conduct.









share|improve this question




share|improve this question






New contributor




Kenechukwu is a new contributor to this site. Take care in asking for clarification, commenting, and answering.
Check out our Code of Conduct.









asked Nov 20 at 11:27









Kenechukwu

42




42




New contributor




Kenechukwu is a new contributor to this site. Take care in asking for clarification, commenting, and answering.
Check out our Code of Conduct.





New contributor





Kenechukwu is a new contributor to this site. Take care in asking for clarification, commenting, and answering.
Check out our Code of Conduct.






Kenechukwu is a new contributor to this site. Take care in asking for clarification, commenting, and answering.
Check out our Code of Conduct.












  • You're on jessie (Debian 8) but Preparing to unpack .../libc6_2.24-11+deb9u1_armhf.deb which is about Debian 9. So you now have a FrankenDebian. Why don't you use directly a Debian 9 (stretch) chroot if you need pieces of it?
    – A.B
    Nov 20 at 21:58










  • @A.B wow! i never knew something called a frankendebian exists. how do i fix this monster! i don't know how to directly use debian 9 as you mentioned, my linux was installed via an app on playstore called gnuroot debian
    – Kenechukwu
    Nov 20 at 23:32










  • might be just that jessie (which was the former stable) refers to itself as stable instead of jessie (or oldstable) in your installation. You should correct references to stable into jessie instead, wherever it is in all files found in the /et/apt/ arborescence. If that's not enough, you could also choose to dist-upgrade from jessie to stretch (current stable) instead, hoping it's not too late and that this can work in a chroot.
    – A.B
    Nov 21 at 6:50




















  • You're on jessie (Debian 8) but Preparing to unpack .../libc6_2.24-11+deb9u1_armhf.deb which is about Debian 9. So you now have a FrankenDebian. Why don't you use directly a Debian 9 (stretch) chroot if you need pieces of it?
    – A.B
    Nov 20 at 21:58










  • @A.B wow! i never knew something called a frankendebian exists. how do i fix this monster! i don't know how to directly use debian 9 as you mentioned, my linux was installed via an app on playstore called gnuroot debian
    – Kenechukwu
    Nov 20 at 23:32










  • might be just that jessie (which was the former stable) refers to itself as stable instead of jessie (or oldstable) in your installation. You should correct references to stable into jessie instead, wherever it is in all files found in the /et/apt/ arborescence. If that's not enough, you could also choose to dist-upgrade from jessie to stretch (current stable) instead, hoping it's not too late and that this can work in a chroot.
    – A.B
    Nov 21 at 6:50


















You're on jessie (Debian 8) but Preparing to unpack .../libc6_2.24-11+deb9u1_armhf.deb which is about Debian 9. So you now have a FrankenDebian. Why don't you use directly a Debian 9 (stretch) chroot if you need pieces of it?
– A.B
Nov 20 at 21:58




You're on jessie (Debian 8) but Preparing to unpack .../libc6_2.24-11+deb9u1_armhf.deb which is about Debian 9. So you now have a FrankenDebian. Why don't you use directly a Debian 9 (stretch) chroot if you need pieces of it?
– A.B
Nov 20 at 21:58












@A.B wow! i never knew something called a frankendebian exists. how do i fix this monster! i don't know how to directly use debian 9 as you mentioned, my linux was installed via an app on playstore called gnuroot debian
– Kenechukwu
Nov 20 at 23:32




@A.B wow! i never knew something called a frankendebian exists. how do i fix this monster! i don't know how to directly use debian 9 as you mentioned, my linux was installed via an app on playstore called gnuroot debian
– Kenechukwu
Nov 20 at 23:32












might be just that jessie (which was the former stable) refers to itself as stable instead of jessie (or oldstable) in your installation. You should correct references to stable into jessie instead, wherever it is in all files found in the /et/apt/ arborescence. If that's not enough, you could also choose to dist-upgrade from jessie to stretch (current stable) instead, hoping it's not too late and that this can work in a chroot.
– A.B
Nov 21 at 6:50






might be just that jessie (which was the former stable) refers to itself as stable instead of jessie (or oldstable) in your installation. You should correct references to stable into jessie instead, wherever it is in all files found in the /et/apt/ arborescence. If that's not enough, you could also choose to dist-upgrade from jessie to stretch (current stable) instead, hoping it's not too late and that this can work in a chroot.
– A.B
Nov 21 at 6:50

















active

oldest

votes











Your Answer








StackExchange.ready(function() {
var channelOptions = {
tags: "".split(" "),
id: "106"
};
initTagRenderer("".split(" "), "".split(" "), channelOptions);

StackExchange.using("externalEditor", function() {
// Have to fire editor after snippets, if snippets enabled
if (StackExchange.settings.snippets.snippetsEnabled) {
StackExchange.using("snippets", function() {
createEditor();
});
}
else {
createEditor();
}
});

function createEditor() {
StackExchange.prepareEditor({
heartbeatType: 'answer',
convertImagesToLinks: false,
noModals: true,
showLowRepImageUploadWarning: true,
reputationToPostImages: null,
bindNavPrevention: true,
postfix: "",
imageUploader: {
brandingHtml: "Powered by u003ca class="icon-imgur-white" href="https://imgur.com/"u003eu003c/au003e",
contentPolicyHtml: "User contributions licensed under u003ca href="https://creativecommons.org/licenses/by-sa/3.0/"u003ecc by-sa 3.0 with attribution requiredu003c/au003e u003ca href="https://stackoverflow.com/legal/content-policy"u003e(content policy)u003c/au003e",
allowUrls: true
},
onDemand: true,
discardSelector: ".discard-answer"
,immediatelyShowMarkdownHelp:true
});


}
});






Kenechukwu is a new contributor. Be nice, and check out our Code of Conduct.










 

draft saved


draft discarded


















StackExchange.ready(
function () {
StackExchange.openid.initPostLogin('.new-post-login', 'https%3a%2f%2funix.stackexchange.com%2fquestions%2f482946%2fissues-with-apt-and-aptitude-on-debian-jessie-chroot-environment%23new-answer', 'question_page');
}
);

Post as a guest















Required, but never shown






























active

oldest

votes













active

oldest

votes









active

oldest

votes






active

oldest

votes








Kenechukwu is a new contributor. Be nice, and check out our Code of Conduct.










 

draft saved


draft discarded


















Kenechukwu is a new contributor. Be nice, and check out our Code of Conduct.













Kenechukwu is a new contributor. Be nice, and check out our Code of Conduct.












Kenechukwu is a new contributor. Be nice, and check out our Code of Conduct.















 


draft saved


draft discarded














StackExchange.ready(
function () {
StackExchange.openid.initPostLogin('.new-post-login', 'https%3a%2f%2funix.stackexchange.com%2fquestions%2f482946%2fissues-with-apt-and-aptitude-on-debian-jessie-chroot-environment%23new-answer', 'question_page');
}
);

Post as a guest















Required, but never shown





















































Required, but never shown














Required, but never shown












Required, but never shown







Required, but never shown

































Required, but never shown














Required, but never shown












Required, but never shown







Required, but never shown







Popular posts from this blog

Morgemoulin

Scott Moir

Souastre