It looks as though apt on this machine is somewhat corrupted.
I am trying to get rid of the blender package; I don't use it and it is 
preventing upgrades in its present state.  It's defying all attempts to 
get rid of it.

[EMAIL PROTECTED]:/var/cache/apt/archives$ sudo apt-get remove blender
Reading package lists... Done
Building dependency tree... Done
The following packages will be REMOVED
  blender
0 upgraded, 0 newly installed, 1 to remove and 437 not upgraded.
5 not fully installed or removed.
Need to get 0B of archives.
After unpacking 16.8MB disk space will be freed.
Do you want to continue [Y/n]? y
dpkg: error processing blender (--remove):
 Package is in a very bad inconsistent state - you should
 reinstall it before attempting a removal.
Errors were encountered while processing:
 blender
E: Sub-process /usr/bin/dpkg returned an error code (1)
[EMAIL PROTECTED]:/var/cache/apt/archives$     

So we try:                       

[EMAIL PROTECTED]:/var/cache/apt/archives$ sudo apt-get install --reinstall 
blender
Reading package lists... Done
Building dependency tree... Done
Suggested packages:
  yafray
The following packages will be upgraded:
  blender
1 upgraded, 0 newly installed, 0 to remove and 437 not upgraded.
5 not fully installed or removed.
Need to get 0B/6354kB of archives.
After unpacking 0B of additional disk space will be used.
Reading changelogs... Done
(Reading database ... 260973 files and directories currently installed.)
Preparing to replace blender 2.42a-6 
(using .../blender_2.42a-7_amd64.deb) ...
Traceback (most recent call last):
  File "/usr/bin/pycentral", line 1373, in ?
    main()
  File "/usr/bin/pycentral", line 1367, in main
    rv = action.run(global_options)
  File "/usr/bin/pycentral", line 943, in run
    runtimes = get_installed_runtimes(with_unsupported=True)
  File "/usr/bin/pycentral", line 196, in get_installed_runtimes
    supported = pyversions.supported_versions()
  File "/usr/share/pycentral-data/pyversions.py", line 98, in 
supported_versions
    value = read_default('supported-versions')
  File "/usr/share/pycentral-data/pyversions.py", line 22, in 
read_default
    value = config.get('DEFAULT', name)
UnboundLocalError: local variable 'config' referenced before assignment
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 ?
    main()
  File "/usr/bin/pycentral", line 1367, in main
    rv = action.run(global_options)
  File "/usr/bin/pycentral", line 943, in run
    runtimes = get_installed_runtimes(with_unsupported=True)
  File "/usr/bin/pycentral", line 196, in get_installed_runtimes
    supported = pyversions.supported_versions()
  File "/usr/share/pycentral-data/pyversions.py", line 98, in 
supported_versions
    value = read_default('supported-versions')
  File "/usr/share/pycentral-data/pyversions.py", line 22, in 
read_default
    value = config.get('DEFAULT', name)
UnboundLocalError: local variable 'config' referenced before assignment
dpkg: error processing /var/cache/apt/archives/blender_2.42a-7_amd64.deb 
(--unpack):
 subprocess new pre-removal script returned error exit status 1
Traceback (most recent call last):
  File "/usr/bin/pycentral", line 1373, in ?
    main()
  File "/usr/bin/pycentral", line 1367, in main
    rv = action.run(global_options)
  File "/usr/bin/pycentral", line 865, in run
    runtimes = get_installed_runtimes()
  File "/usr/bin/pycentral", line 196, in get_installed_runtimes
    supported = pyversions.supported_versions()
  File "/usr/share/pycentral-data/pyversions.py", line 98, in 
supported_versions
    value = read_default('supported-versions')
  File "/usr/share/pycentral-data/pyversions.py", line 22, in 
read_default
    value = config.get('DEFAULT', name)
UnboundLocalError: local variable 'config' referenced before assignment
dpkg: error while cleaning up:
 subprocess post-installation script returned error exit status 1
Errors were encountered while processing:
 /var/cache/apt/archives/blender_2.42a-7_amd64.deb
E: Sub-process /usr/bin/dpkg returned an error code (1)

Any clues on how I can fix this?

It's Debian Sid AMD64.

TIA,

-- 
David



-- 
SLUG - Sydney Linux User's Group Mailing List - http://slug.org.au/
Subscription info and FAQs: http://slug.org.au/faq/mailinglists.html

Reply via email to