Attempting a 'df', probably unrelated, VPS system was behaving incredibly slowly.

Bug #1478647 reported by Sean OBrien
6
This bug affects 1 person
Affects Status Importance Assigned to Milestone
command-not-found
New
Undecided
Unassigned

Bug Description

command-not-found version: 0.3
Python version: 3.4.0 final 0
Distributor ID: Ubuntu
Description: Ubuntu 14.04.2 LTS
Release: 14.04
Codename: trusty
Exception information:

'utf-8' codec can't encode character '\udc81' in position 0: surrogates not allowed
Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/CommandNotFound/util.py", line 24, in crash_guard
    callback()
  File "/usr/lib/command-not-found", line 90, in main
    if not cnf.advise(args[0], options.ignore_installed) and not options.no_failure_msg:
  File "/usr/lib/python3/dist-packages/CommandNotFound/CommandNotFound.py", line 265, in advise
    packages = self.getPackages(command)
  File "/usr/lib/python3/dist-packages/CommandNotFound/CommandNotFound.py", line 157, in getPackages
    result.update([(pkg, db.component) for pkg in db.lookup(command)])
  File "/usr/lib/python3/dist-packages/CommandNotFound/CommandNotFound.py", line 85, in lookup
    result = self.db.lookup(command)
  File "/usr/lib/python3/dist-packages/CommandNotFound/CommandNotFound.py", line 41, in lookup
    key = key.encode('utf-8')
UnicodeEncodeError: 'utf-8' codec can't encode character '\udc81' in position 0: surrogates not allowed

Revision history for this message
Zygmunt Krynicki (zyga) wrote : Re: [Bug 1478647] [NEW] Attempting a 'df', probably unrelated, VPS system was behaving incredibly slowly.

Seems unrelated. Please install the locale you are connecting with to
resolve the issue. If you use a non-linux system (e.g. OS X) then make
sure that your shell startup scripts fix the broken osx values for
CTYPE. This looks more like putty though, in that case please check if
your encoding in putty is actually UTF-8.

Thanks
ZK

On Mon, Jul 27, 2015 at 7:22 PM, Sean OBrien <email address hidden> wrote:
> Public bug reported:
>
> command-not-found version: 0.3
> Python version: 3.4.0 final 0
> Distributor ID: Ubuntu
> Description: Ubuntu 14.04.2 LTS
> Release: 14.04
> Codename: trusty
> Exception information:
>
> 'utf-8' codec can't encode character '\udc81' in position 0: surrogates not allowed
> Traceback (most recent call last):
> File "/usr/lib/python3/dist-packages/CommandNotFound/util.py", line 24, in crash_guard
> callback()
> File "/usr/lib/command-not-found", line 90, in main
> if not cnf.advise(args[0], options.ignore_installed) and not options.no_failure_msg:
> File "/usr/lib/python3/dist-packages/CommandNotFound/CommandNotFound.py", line 265, in advise
> packages = self.getPackages(command)
> File "/usr/lib/python3/dist-packages/CommandNotFound/CommandNotFound.py", line 157, in getPackages
> result.update([(pkg, db.component) for pkg in db.lookup(command)])
> File "/usr/lib/python3/dist-packages/CommandNotFound/CommandNotFound.py", line 85, in lookup
> result = self.db.lookup(command)
> File "/usr/lib/python3/dist-packages/CommandNotFound/CommandNotFound.py", line 41, in lookup
> key = key.encode('utf-8')
> UnicodeEncodeError: 'utf-8' codec can't encode character '\udc81' in position 0: surrogates not allowed
>
> ** Affects: command-not-found
> Importance: Undecided
> Status: New
>
> --
> You received this bug notification because you are subscribed to
> command-not-found.
> https://bugs.launchpad.net/bugs/1478647
>
> Title:
> Attempting a 'df', probably unrelated, VPS system was behaving
> incredibly slowly.
>
> To manage notifications about this bug go to:
> https://bugs.launchpad.net/command-not-found/+bug/1478647/+subscriptions

To post a comment you must log in.
This report contains Public information  
Everyone can see this information.

Other bug subscribers

Remote bug watches

Bug watches keep track of this bug in other bug trackers.