sudo apt-get install scons
Reading package lists... Done
Building dependency tree
Reading state information... Done
scons is already the newest version.
The following packages were automatically installed and are no longer required:
libnl1-pre6 libnm-util0 dhcdbd
Use 'apt-get autoremove' to remove them.
0 upgraded, 0 newly installed, 0 to remove and 6 not upgraded.
1 not fully installed or removed.
Need to get 0B/389kB of archives.
After unpacking 0B of additional disk space will be used.
(Reading database ... 97339 files and directories currently installed.)
Preparing to replace scons 0.96.93-2 (using .../scons_0.96.93-2_all.deb) ...
Traceback (most recent call last):
File "/usr/bin/pycentral", line 1373, in <module>
main()
File "/usr/bin/pycentral", line 1367, in main
rv = action.run(global_options)
File "/usr/bin/pycentral", line 952, in run
pkg.remove(runtimes, remove_script_files=True)
File "/usr/bin/pycentral", line 697, in remove
default_runtime.remove_byte_code(self.private_files)
AttributeError: 'NoneType' object has no attribute 'remove_byte_code'
dpkg: warning - old pre-removal script returned error exit status 1
dpkg - trying script from the new package instead ...
Traceback (most recent call last):
File "/usr/bin/pycentral", line 1373, in <module>
main()
File "/usr/bin/pycentral", line 1367, in main
rv = action.run(global_options)
File "/usr/bin/pycentral", line 952, in run
pkg.remove(runtimes, remove_script_files=True)
File "/usr/bin/pycentral", line 697, in remove
default_runtime.remove_byte_code(self.private_files)
AttributeError: 'NoneType' object has no attribute 'remove_byte_code'
dpkg: error processing /var/cache/apt/archives/scons_0.96.93-2_all.deb (--unpack):
subprocess new pre-removal script returned error exit status 1
Traceback (most recent call last):
File "/usr/bin/pycentral", line 1373, in <module>
main()
File "/usr/bin/pycentral", line 1367, in main
rv = action.run(global_options)
File "/usr/bin/pycentral", line 889, in run
self.options.exclude, byte_compile_default=True)
File "/usr/bin/pycentral", line 672, in install
self.default_runtime.byte_compile(self.private_files,
AttributeError: 'NoneType' object has no attribute 'byte_compile'
dpkg: error while cleaning up:
subprocess post-installation script returned error exit status 1
Errors were encountered while processing:
/var/cache/apt/archives/scons_0.96.93-2_all.deb
E: Sub-process /usr/bin/dpkg returned an error code (1)
It`s very confusing because now i can`t install/remove/reinstall ANY packages, because dpkg always tries to resolve scons dependencies on the first place, ending with error all the time..
Binary package hint: scons
During install, remove, reinstall procces :
sudo apt-get install scons 0.96.93- 2_all.deb) ... pycentral" , line 1373, in <module> pycentral" , line 1367, in main run(global_ options) pycentral" , line 952, in run remove( runtimes, remove_ script_ files=True) pycentral" , line 697, in remove runtime. remove_ byte_code( self.private_ files) pycentral" , line 1373, in <module> pycentral" , line 1367, in main run(global_ options) pycentral" , line 952, in run remove( runtimes, remove_ script_ files=True) pycentral" , line 697, in remove runtime. remove_ byte_code( self.private_ files) apt/archives/ scons_0. 96.93-2_ all.deb (--unpack): pycentral" , line 1373, in <module> pycentral" , line 1367, in main run(global_ options) pycentral" , line 889, in run options. exclude, byte_compile_ default= True) pycentral" , line 672, in install default_ runtime. byte_compile( self.private_ files, apt/archives/ scons_0. 96.93-2_ all.deb
Reading package lists... Done
Building dependency tree
Reading state information... Done
scons is already the newest version.
The following packages were automatically installed and are no longer required:
libnl1-pre6 libnm-util0 dhcdbd
Use 'apt-get autoremove' to remove them.
0 upgraded, 0 newly installed, 0 to remove and 6 not upgraded.
1 not fully installed or removed.
Need to get 0B/389kB of archives.
After unpacking 0B of additional disk space will be used.
(Reading database ... 97339 files and directories currently installed.)
Preparing to replace scons 0.96.93-2 (using .../scons_
Traceback (most recent call last):
File "/usr/bin/
main()
File "/usr/bin/
rv = action.
File "/usr/bin/
pkg.
File "/usr/bin/
default_
AttributeError: 'NoneType' object has no attribute 'remove_byte_code'
dpkg: warning - old pre-removal script returned error exit status 1
dpkg - trying script from the new package instead ...
Traceback (most recent call last):
File "/usr/bin/
main()
File "/usr/bin/
rv = action.
File "/usr/bin/
pkg.
File "/usr/bin/
default_
AttributeError: 'NoneType' object has no attribute 'remove_byte_code'
dpkg: error processing /var/cache/
subprocess new pre-removal script returned error exit status 1
Traceback (most recent call last):
File "/usr/bin/
main()
File "/usr/bin/
rv = action.
File "/usr/bin/
self.
File "/usr/bin/
self.
AttributeError: 'NoneType' object has no attribute 'byte_compile'
dpkg: error while cleaning up:
subprocess post-installation script returned error exit status 1
Errors were encountered while processing:
/var/cache/
E: Sub-process /usr/bin/dpkg returned an error code (1)
It`s very confusing because now i can`t install/ remove/ reinstall ANY packages, because dpkg always tries to resolve scons dependencies on the first place, ending with error all the time..