Comment 103 for bug 192992

Revision history for this message
Nobu (benjo316) wrote :

Still not working for me. Has a solution been found yet, or are people still just throwing around patches?

When trying to update packages:
>super@nobu-desktop:~$ sudo aptitude
>[snip locale errors caused by bug # 192012]
>perl: warning: Falling back to the standard locale ("C").
>locale: Cannot set LC_CTYPE to default locale: No such file or directory
>locale: Cannot set LC_MESSAGES to default locale: No such file or directory
>locale: Cannot set LC_ALL to default locale: No such file or directory
>Setting up python-apt (0.7.4ubuntu5) ...
>Traceback (most recent call last):
> File "/usr/bin/pycentral", line 1593, in <module>
> main()
> File "/usr/bin/pycentral", line 1587, in main
> rv = action.run(global_options)
> File "/usr/bin/pycentral", line 982, in run
> self.pkg.byte_compile(bc_option, self.options.exclude)
> File "/usr/bin/pycentral", line 624, in byte_compile
> rt.byte_compile(files, bc_option, exclude_regex)
>AttributeError: 'NoneType' object has no attribute 'byte_compile'
>dpkg: error processing python-apt (--configure):
> subprocess post-installation script returned error exit status 1
>dpkg: dependency problems prevent configuration of update-manager-core:
> update-manager-core depends on python-apt (>= 0.7.4ubuntu5); however:
> Package python-apt is not configured yet.
>dpkg: error processing update-manager-core (--configure):
> dependency problems - leaving unconfigured
>dpkg: dependency problems prevent configuration of update-manager:
> update-manager depends on update-manager-core (= 1:0.87.8); however:
> Package update-manager-core is not configured yet.
>dpkg: error processing update-manager (--configure):
> dependency problems - leaving unconfigured
>Errors were encountered while processing:
> python-apt
> update-manager-core
> update-manager
>E: Sub-process /usr/bin/dpkg returned an error code (1)
>A package failed to install. Trying to recover:
>Setting up python-apt (0.7.4ubuntu5) ...
>Traceback (most recent call last):
> File "/usr/bin/pycentral", line 1593, in <module>
> main()
> File "/usr/bin/pycentral", line 1587, in main
> rv = action.run(global_options)
> File "/usr/bin/pycentral", line 982, in run
> self.pkg.byte_compile(bc_option, self.options.exclude)
> File "/usr/bin/pycentral", line 624, in byte_compile
> rt.byte_compile(files, bc_option, exclude_regex)
>AttributeError: 'NoneType' object has no attribute 'byte_compile'
>dpkg: error processing python-apt (--configure):
> subprocess post-installation script returned error exit status 1
>dpkg: dependency problems prevent configuration of update-manager-core:
> update-manager-core depends on python-apt (>= 0.7.4ubuntu5); however:
> Package python-apt is not configured yet.
>dpkg: error processing update-manager-core (--configure):
> dependency problems - leaving unconfigured
>dpkg: dependency problems prevent configuration of update-manager:
> update-manager depends on update-manager-core (= 1:0.87.8); however:
> Package update-manager-core is not configured yet.
>dpkg: error processing update-manager (--configure):
> dependency problems - leaving unconfigured
>Errors were encountered while processing:
> python-apt
> update-manager-core
> update-manager
>Press return to continue.

Note: Aptitude shows status 'u' for update-manager and update-manager-core, but status 'C' for python-apt.