Travamento ao rodar qualquer comando apt

Fiz a instalação do python no linux sem atualizar da forma correta pois nao sabia que estava atualizado, depois desinstalei, ajustei os path, porém agora toda vez que rodo qualquer comando que envolva o apt, o terminal fica carregando piscando o cursor, e depois de um tempo trava o computador. Acredito que seja algo relacionado ao apt do python, ja tentei de tudo mas continua com esse problema. Antes de travar dou ctrl c varias vezes, ai as vezes retorna que parou no arquivo threading.py ou esse

> ~$ sudo apt update
^CTraceback (most recent call last):
  File "/usr/bin/apt", line 1, in <module>
    #!/usr/bin/python3
KeyboardInterrupt
^C^CException ignored in: <function Popen.__del__ at 0x7f5f576cd750>
Traceback (most recent call last):
  File "/usr/lib/python3.10/subprocess.py", line 1072, in __del__
Exception ignored in: <function Popen.__del__ at 0x7f72f65cd750>
Traceback (most recent call last):
Exception ignored in: <function Popen.__del__ at 0x7ff555861750>
Traceback (most recent call last):
  File "/usr/lib/python3.10/subprocess.py", line 1072, in __del__
  File "/usr/lib/python3.10/subprocess.py", line 1065, in __del__
Exception ignored in: <function Popen.__del__ at 0x7ff0b2f51750>
Traceback (most recent call last):
  File "/usr/lib/python3.10/subprocess.py", line 1072, in __del__
Exception ignored in: <function Popen.__del__ at 0x7f31212b1750>
Traceback (most recent call last):
Exception ignored in: <function Popen.__del__ at 0x7ff3f1c2d750>
Traceback (most recent call last):
Exception ignored in: <function Popen.__del__ at 0x7fbfcf4a9750>
Exception ignored in: <function Popen.__del__ at 0x7f12535b5750>
Traceback (most recent call last):
  File "/usr/lib/python3.10/subprocess.py", line 1072, in __del__
Traceback (most recent call last):
  File "/usr/lib/python3.10/subprocess.py", line 1072, in __del__
  File "/usr/lib/python3.10/subprocess.py", line 1065, in __del__
Exception ignored in: <function Popen.__del__ at 0x7fc4c0d79750>
Traceback (most recent call last):
  File "/usr/lib/python3.10/subprocess.py", line 1072, in __del__
Exception ignored in: <function Popen.__del__ at 0x7f2ad3a61750>
Traceback (most recent call last):
  File "/usr/lib/python3.10/subprocess.py", line 1072, in __del__
  File "/usr/lib/python3.10/subprocess.py", line 1065, in __del__
Exception ignored in: <function Popen.__del__ at 0x7f6bd8285750>
Traceback (most recent call last):
Exception ignored in: <function Popen.__del__ at 0x7f9c7f771750>
Traceback (most recent call last):
Exception ignored in: <function Popen.__del__ at 0x7f5a52605750>
Traceback (most recent call last):
  File "/usr/lib/python3.10/subprocess.py", line 1065, in __del__
  File "/usr/lib/python3.10/subprocess.py", line 1065, in __del__
  File "/usr/lib/python3.10/subprocess.py", line 1065, in __del__
Exception ignored in: <function Popen.__del__ at 0x7f57682c1750>
Traceback (most recent call last):
  File "/usr/lib/python3.10/subprocess.py", line 1065, in __del__
Exception ignored in: <function Popen.__del__ at 0x7f4e53745750>
Traceback (most recent call last):
  File "/usr/lib/python3.10/subprocess.py", line 1072, in __del__
Exception ignored in: <function Popen.__del__ at 0x7fe14b8d9750>
Traceback (most recent call last):
  File "/usr/lib/python3.10/subprocess.py", line 1065, in __del__
Exception ignored in: <function Popen.__del__ at 0x7f55b36b1750>
Traceback (most recent call last):
  File "/usr/lib/python3.10/subprocess.py", line 1072, in __del__
Exception ignored in: <function Popen.__del__ at 0x7f92b6fcd750>
Traceback (most recent call last):
  File "/usr/lib/python3.10/subprocess.py", line 1072, in __del__
Exception ignored in: <function Popen.__del__ at 0x7f73564d1750>
Traceback (most recent call last):
  File "/usr/lib/python3.10/subprocess.py", line 1065, in __del__
Exception ignored in: <function Popen.__del__ at 0x7f3136d3d750>
Traceback (most recent call last):
  File "/usr/lib/python3.10/subprocess.py", line 1072, in __del__
Exception ignored in: <function Popen.__del__ at 0x7fb987895750>
Traceback (most recent call last):
  File "/usr/lib/python3.10/subprocess.py", line 1072, in __del__
Exception ignored in: <function Popen.__del__ at 0x7f62f9f91750>
Traceback (most recent call last):
Exception ignored in: <function Popen.__del__ at 0x7fbbca2e1750>
Traceback (most recent call last):
  File "/usr/lib/python3.10/subprocess.py", line 1072, in __del__
Exception ignored in: <function Popen.__del__ at 0x7f8e3705d750>
Traceback (most recent call last):
  File "/usr/lib/python3.10/subprocess.py", line 1072, in __del__
  File "/usr/lib/python3.10/subprocess.py", line 1065, in __del__
Exception ignored in: <function Popen.__del__ at 0x7fa1a4689750>
Exception ignored in: <function Popen.__del__ at 0x7f62a6cd1750>
Traceback (most recent call last):
  File "/usr/lib/python3.10/subprocess.py", line 1072, in __del__
Traceback (most recent call last):
  File "/usr/lib/python3.10/subprocess.py", line 1072, in __del__
Exception ignored in: <function Popen.__del__ at 0x7f86d9911750>
Traceback (most recent call last):
  File "/usr/lib/python3.10/subprocess.py", line 1072, in __del__
Exception ignored in: <function Popen.__del__ at 0x7f8316989750>
Traceback (most recent call last):
  File "/usr/lib/python3.10/subprocess.py", line 1072, in __del__
Exception ignored in: <function Popen.__del__ at 0x7f967cb45750>
Traceback (most recent call last):
  File "/usr/lib/python3.10/subprocess.py", line 1072, in __del__
Exception ignored in: <function Popen.__del__ at 0x7f0788c7d750>
Traceback (most recent call last):
  File "/usr/lib/python3.10/subprocess.py", line 1072, in __del__
    _warn("subprocess %s is still running" % self.pid,
KeyboardInterrupt: 
    _warn("subprocess %s is still running" % self.pid,
KeyboardInterrupt: 
    def __del__(self, _maxsize=sys.maxsize, _warn=warnings.warn):
    def __del__(self, _maxsize=sys.maxsize, _warn=warnings.warn):
KeyboardInterrupt: 
    _warn("subprocess %s is still running" % self.pid,
    _warn("subprocess %s is still running" % self.pid,
    def __del__(self, _maxsize=sys.maxsize, _warn=warnings.warn):
KeyboardInterrupt: 
KeyboardInterrupt: 
KeyboardInterrupt: 
KeyboardInterrupt: 
    _warn("subprocess %s is still running" % self.pid,
    _warn("subprocess %s is still running" % self.pid,
    def __del__(self, _maxsize=sys.maxsize, _warn=warnings.warn):
KeyboardInterrupt: 
    def __del__(self, _maxsize=sys.maxsize, _warn=warnings.warn):
KeyboardInterrupt: 
KeyboardInterrupt: 
    _warn("subprocess %s is still running" % self.pid,
    def __del__(self, _maxsize=sys.maxsize, _warn=warnings.warn):
    def __del__(self, _maxsize=sys.maxsize, _warn=warnings.warn):
KeyboardInterrupt: 
KeyboardInterrupt: 
KeyboardInterrupt: 
KeyboardInterrupt: 
    _warn("subprocess %s is still running" % self.pid,
KeyboardInterrupt: 
    _warn("subprocess %s is still running" % self.pid,
    _warn("subprocess %s is still running" % self.pid,
    _warn("subprocess %s is still running" % self.pid,
KeyboardInterrupt: 
    _warn("subprocess %s is still running" % self.pid,
KeyboardInterrupt: 
KeyboardInterrupt: 
KeyboardInterrupt: 
    def __del__(self, _maxsize=sys.maxsize, _warn=warnings.warn):
    _warn("subprocess %s is still running" % self.pid,
    def __del__(self, _maxsize=sys.maxsize, _warn=warnings.warn):
    _warn("subprocess %s is still running" % self.pid,
KeyboardInterrupt: 
    _warn("subprocess %s is still running" % self.pid,
KeyboardInterrupt: 
KeyboardInterrupt: 
    _warn("subprocess %s is still running" % self.pid,
KeyboardInterrupt: 
KeyboardInterrupt: 
Traceback (most recent call last):
KeyboardInterrupt: 
  File "/usr/lib/python3.10/subprocess.py", line 1209, in wait
Traceback (most recent call last):
  File "/usr/lib/python3.10/subprocess.py", line 1209, in wait
Traceback (most recent call last):
  File "/usr/lib/python3.10/subprocess.py", line 1209, in wait
Traceback (most recent call last):
    _warn("subprocess %s is still running" % self.pid,
  File "/usr/lib/python3.10/subprocess.py", line 1209, in wait
KeyboardInterrupt: 
    def __del__(self, _maxsize=sys.maxsize, _warn=warnings.warn):
Traceback (most recent call last):
KeyboardInterrupt: 
  File "/usr/lib/python3.10/subprocess.py", line 1209, in wait
Traceback (most recent call last):
Traceback (most recent call last):
  File "/usr/lib/python3.10/subprocess.py", line 1209, in wait
  File "/usr/lib/python3.10/subprocess.py", line 1209, in wait
Traceback (most recent call last):
Traceback (most recent call last):
    _warn("subprocess %s is still running" % self.pid,
Traceback (most recent call last):
Traceback (most recent call last):
Traceback (most recent call last):
KeyboardInterrupt: 
  File "/usr/lib/python3.10/subprocess.py", line 1209, in wait
  File "/usr/lib/python3.10/subprocess.py", line 1209, in wait
  File "/usr/lib/python3.10/subprocess.py", line 1209, in wait
  File "/usr/lib/python3.10/subprocess.py", line 1209, in wait
  File "/usr/lib/python3.10/subprocess.py", line 1209, in wait
Traceback (most recent call last):
Traceback (most recent call last):
Traceback (most recent call last):
Traceback (most recent call last):
  File "/usr/lib/python3.10/subprocess.py", line 1209, in wait
  File "/usr/lib/python3.10/subprocess.py", line 1209, in wait
  File "/usr/lib/python3.10/subprocess.py", line 1209, in wait
  File "/usr/lib/python3.10/subprocess.py", line 1209, in wait
Traceback (most recent call last):
  File "/usr/lib/python3.10/subprocess.py", line 1209, in wait
    return self._wait(timeout=timeout)
  File "/usr/lib/python3.10/subprocess.py", line 1959, in _wait
    (pid, sts) = self._try_wait(0)
  File "/usr/lib/python3.10/subprocess.py", line 1917, in _try_wait
    (pid, sts) = os.waitpid(self.pid, wait_flags)
    return self._wait(timeout=timeout)
  File "/usr/lib/python3.10/subprocess.py", line 1959, in _wait
    return self._wait(timeout=timeout)
  File "/usr/lib/python3.10/subprocess.py", line 1959, in _wait
    (pid, sts) = self._try_wait(0)
  File "/usr/lib/python3.10/subprocess.py", line 1917, in _try_wait
    (pid, sts) = os.waitpid(self.pid, wait_flags)
KeyboardInterrupt

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/bin/apt", line 193, in <module>
    (pid, sts) = self._try_wait(0)
  File "/usr/lib/python3.10/subprocess.py", line 1917, in _try_wait
    (pid, sts) = os.waitpid(self.pid, wait_flags)
    return_code = subprocess.call(command)
  File "/usr/lib/python3.10/subprocess.py", line 347, in call
    return self._wait(timeout=timeout)
  File "/usr/lib/python3.10/subprocess.py", line 1959, in _wait
    return p.wait(timeout=timeout)
  File "/usr/lib/python3.10/subprocess.py", line 1222, in wait
    self._wait(timeout=sigint_timeout)
  File "/usr/lib/python3.10/subprocess.py", line 1942, in _wait
    return self._wait(timeout=timeout)
  File "/usr/lib/python3.10/subprocess.py", line 1959, in _wait
    (pid, sts) = self._try_wait(os.WNOHANG)
  File "/usr/lib/python3.10/subprocess.py", line 1917, in _try_wait
KeyboardInterrupt

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/bin/apt", line 193, in <module>
    (pid, sts) = os.waitpid(self.pid, wait_flags)
KeyboardInterrupt

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/bin/apt", line 193, in <module>
    (pid, sts) = self._try_wait(0)
  File "/usr/lib/python3.10/subprocess.py", line 1917, in _try_wait
KeyboardInterrupt

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/bin/apt", line 193, in <module>
    return_code = subprocess.call(command)
KeyboardInterrupt
    return self._wait(timeout=timeout)
  File "/usr/lib/python3.10/subprocess.py", line 1959, in _wait
    (pid, sts) = os.waitpid(self.pid, wait_flags)
    (pid, sts) = self._try_wait(0)
  File "/usr/lib/python3.10/subprocess.py", line 1917, in _try_wait
    return self._wait(timeout=timeout)
  File "/usr/lib/python3.10/subprocess.py", line 1959, in _wait
    return_code = subprocess.call(command)
  File "/usr/lib/python3.10/subprocess.py", line 347, in call
    return p.wait(timeout=timeout)
  File "/usr/lib/python3.10/subprocess.py", line 1222, in wait
    self._wait(timeout=sigint_timeout)
  File "/usr/lib/python3.10/subprocess.py", line 1938, in _wait
    (pid, sts) = os.waitpid(self.pid, wait_flags)
    if self._waitpid_lock.acquire(False):
KeyboardInterrupt

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/bin/apt", line 193, in <module>
    return_code = subprocess.call(command)
KeyboardInterrupt
    return self._wait(timeout=timeout)
  File "/usr/lib/python3.10/subprocess.py", line 1959, in _wait
    return_code = subprocess.call(command)
  File "/usr/lib/python3.10/subprocess.py", line 347, in call
    (pid, sts) = self._try_wait(0)
  File "/usr/lib/python3.10/subprocess.py", line 1917, in _try_wait
    return p.wait(timeout=timeout)
  File "/usr/lib/python3.10/subprocess.py", line 1222, in wait
    self._wait(timeout=sigint_timeout)
  File "/usr/lib/python3.10/subprocess.py", line 1938, in _wait
    if self._waitpid_lock.acquire(False):
KeyboardInterrupt

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/bin/apt", line 193, in <module>
    return_code = subprocess.call(command)
KeyboardInterrupt
    return self._wait(timeout=timeout)
  File "/usr/lib/python3.10/subprocess.py", line 1959, in _wait
    (pid, sts) = os.waitpid(self.pid, wait_flags)
KeyboardInterrupt

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/bin/apt", line 193, in <module>
    (pid, sts) = self._try_wait(0)
  File "/usr/lib/python3.10/subprocess.py", line 1917, in _try_wait
    return self._wait(timeout=timeout)
  File "/usr/lib/python3.10/subprocess.py", line 1959, in _wait
KeyboardInterrupt

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/bin/apt", line 193, in <module>
    (pid, sts) = os.waitpid(self.pid, wait_flags)
    return self._wait(timeout=timeout)
  File "/usr/lib/python3.10/subprocess.py", line 1959, in _wait
    (pid, sts) = self._try_wait(0)
  File "/usr/lib/python3.10/subprocess.py", line 1917, in _try_wait
    (pid, sts) = os.waitpid(self.pid, wait_flags)
    (pid, sts) = self._try_wait(0)
  File "/usr/lib/python3.10/subprocess.py", line 1917, in _try_wait
    return self._wait(timeout=timeout)
  File "/usr/lib/python3.10/subprocess.py", line 1959, in _wait
    return_code = subprocess.call(command)
  File "/usr/lib/python3.10/subprocess.py", line 347, in call
    return_code = subprocess.call(command)
    (pid, sts) = os.waitpid(self.pid, wait_flags)
  File "/usr/lib/python3.10/subprocess.py", line 347, in call
    (pid, sts) = self._try_wait(0)
  File "/usr/lib/python3.10/subprocess.py", line 1917, in _try_wait
    return self._wait(timeout=timeout)
  File "/usr/lib/python3.10/subprocess.py", line 1959, in _wait
    (pid, sts) = os.waitpid(self.pid, wait_flags)
KeyboardInterrupt

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/bin/apt", line 193, in <module>
    return p.wait(timeout=timeout)
  File "/usr/lib/python3.10/subprocess.py", line 1222, in wait
    self._wait(timeout=sigint_timeout)
  File "/usr/lib/python3.10/subprocess.py", line 1942, in _wait
    (pid, sts) = self._try_wait(0)
  File "/usr/lib/python3.10/subprocess.py", line 1917, in _try_wait
    return p.wait(timeout=timeout)
  File "/usr/lib/python3.10/subprocess.py", line 1222, in wait
    self._wait(timeout=sigint_timeout)
  File "/usr/lib/python3.10/subprocess.py", line 1927, in _wait
    def _wait(self, timeout):
KeyboardInterrupt

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/bin/apt", line 193, in <module>
    return self._wait(timeout=timeout)
  File "/usr/lib/python3.10/subprocess.py", line 1959, in _wait
    return_code = subprocess.call(command)
KeyboardInterrupt
    (pid, sts) = self._try_wait(os.WNOHANG)
  File "/usr/lib/python3.10/subprocess.py", line 1917, in _try_wait
    (pid, sts) = self._try_wait(0)
  File "/usr/lib/python3.10/subprocess.py", line 1917, in _try_wait
    (pid, sts) = os.waitpid(self.pid, wait_flags)
KeyboardInterrupt

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/bin/apt", line 193, in <module>
    return_code = subprocess.call(command)
KeyboardInterrupt
    (pid, sts) = self._try_wait(0)
  File "/usr/lib/python3.10/subprocess.py", line 1917, in _try_wait
    (pid, sts) = os.waitpid(self.pid, wait_flags)
    (pid, sts) = os.waitpid(self.pid, wait_flags)
KeyboardInterrupt

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/bin/apt", line 193, in <module>
KeyboardInterrupt

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/bin/apt", line 193, in <module>
    return_code = subprocess.call(command)
  File "/usr/lib/python3.10/subprocess.py", line 347, in call
KeyboardInterrupt

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/bin/apt", line 193, in <module>
KeyboardInterrupt

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/bin/apt", line 193, in <module>
    return self._wait(timeout=timeout)
  File "/usr/lib/python3.10/subprocess.py", line 1959, in _wait
    (pid, sts) = self._try_wait(0)
  File "/usr/lib/python3.10/subprocess.py", line 1917, in _try_wait
    (pid, sts) = os.waitpid(self.pid, wait_flags)
    (pid, sts) = os.waitpid(self.pid, wait_flags)
    return self._wait(timeout=timeout)
  File "/usr/lib/python3.10/subprocess.py", line 1959, in _wait
    return p.wait(timeout=timeout)
  File "/usr/lib/python3.10/subprocess.py", line 1222, in wait
    self._wait(timeout=sigint_timeout)
  File "/usr/lib/python3.10/subprocess.py", line 1938, in _wait
    if self._waitpid_lock.acquire(False):
KeyboardInterrupt

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/bin/apt", line 193, in <module>
    return_code = subprocess.call(command)
KeyboardInterrupt
    return_code = subprocess.call(command)
  File "/usr/lib/python3.10/subprocess.py", line 347, in call
KeyboardInterrupt

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/bin/apt", line 193, in <module>
    return p.wait(timeout=timeout)
  File "/usr/lib/python3.10/subprocess.py", line 1222, in wait
    self._wait(timeout=sigint_timeout)
  File "/usr/lib/python3.10/subprocess.py", line 1927, in _wait
    return_code = subprocess.call(command)
  File "/usr/lib/python3.10/subprocess.py", line 347, in call
    def _wait(self, timeout):
KeyboardInterrupt

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/bin/apt", line 193, in <module>
    return_code = subprocess.call(command)
KeyboardInterrupt
    return p.wait(timeout=timeout)
  File "/usr/lib/python3.10/subprocess.py", line 1222, in wait
    self._wait(timeout=sigint_timeout)
  File "/usr/lib/python3.10/subprocess.py", line 1927, in _wait
    (pid, sts) = self._try_wait(0)
  File "/usr/lib/python3.10/subprocess.py", line 1917, in _try_wait
    return_code = subprocess.call(command)
  File "/usr/lib/python3.10/subprocess.py", line 347, in call
    return p.wait(timeout=timeout)
  File "/usr/lib/python3.10/subprocess.py", line 1222, in wait
    def _wait(self, timeout):
KeyboardInterrupt

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/bin/apt", line 193, in <module>
    return_code = subprocess.call(command)
KeyboardInterrupt
KeyboardInterrupt

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/bin/apt", line 193, in <module>
    return_code = subprocess.call(command)
  File "/usr/lib/python3.10/subprocess.py", line 347, in call
    (pid, sts) = os.waitpid(self.pid, wait_flags)
KeyboardInterrupt

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/bin/apt", line 193, in <module>
    return p.wait(timeout=timeout)
  File "/usr/lib/python3.10/subprocess.py", line 1222, in wait
    self._wait(timeout=sigint_timeout)
  File "/usr/lib/python3.10/subprocess.py", line 1942, in _wait
    (pid, sts) = self._try_wait(0)
  File "/usr/lib/python3.10/subprocess.py", line 1917, in _try_wait
    (pid, sts) = self._try_wait(os.WNOHANG)
  File "/usr/lib/python3.10/subprocess.py", line 1917, in _try_wait
    (pid, sts) = os.waitpid(self.pid, wait_flags)
KeyboardInterrupt

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/bin/apt", line 193, in <module>
    (pid, sts) = os.waitpid(self.pid, wait_flags)
    return_code = subprocess.call(command)
KeyboardInterrupt
KeyboardInterrupt

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/bin/apt", line 193, in <module>
    self._wait(timeout=sigint_timeout)
  File "/usr/lib/python3.10/subprocess.py", line 1938, in _wait
    if self._waitpid_lock.acquire(False):
    return_code = subprocess.call(command)
  File "/usr/lib/python3.10/subprocess.py", line 347, in call
    return p.wait(timeout=timeout)
  File "/usr/lib/python3.10/subprocess.py", line 1222, in wait
KeyboardInterrupt

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/bin/apt", line 193, in <module>
    return_code = subprocess.call(command)
KeyboardInterrupt
    return_code = subprocess.call(command)
  File "/usr/lib/python3.10/subprocess.py", line 347, in call
    return p.wait(timeout=timeout)
  File "/usr/lib/python3.10/subprocess.py", line 1222, in wait
    return_code = subprocess.call(command)
  File "/usr/lib/python3.10/subprocess.py", line 347, in call
    return p.wait(timeout=timeout)
  File "/usr/lib/python3.10/subprocess.py", line 1222, in wait
    self._wait(timeout=sigint_timeout)
  File "/usr/lib/python3.10/subprocess.py", line 1933, in _wait
    self._wait(timeout=sigint_timeout)
  File "/usr/lib/python3.10/subprocess.py", line 1927, in _wait
    endtime = _time() + timeout
KeyboardInterrupt

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/bin/apt", line 193, in <module>
    return_code = subprocess.call(command)
KeyboardInterrupt
    def _wait(self, timeout):
KeyboardInterrupt

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/bin/apt", line 193, in <module>
    return_code = subprocess.call(command)
KeyboardInterrupt
    self._wait(timeout=sigint_timeout)
  File "/usr/lib/python3.10/subprocess.py", line 1938, in _wait
KeyboardInterrupt

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/bin/apt", line 193, in <module>
    if self._waitpid_lock.acquire(False):
KeyboardInterrupt

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/bin/apt", line 193, in <module>
    return_code = subprocess.call(command)
KeyboardInterrupt
KeyboardInterrupt

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/bin/apt", line 193, in <module>
    return_code = subprocess.call(command)
  File "/usr/lib/python3.10/subprocess.py", line 347, in call
    return p.wait(timeout=timeout)
  File "/usr/lib/python3.10/subprocess.py", line 1222, in wait
    self._wait(timeout=sigint_timeout)
  File "/usr/lib/python3.10/subprocess.py", line 1938, in _wait
    if self._waitpid_lock.acquire(False):
KeyboardInterrupt

During handling of the above exception, another exception occurred:

    return_code = subprocess.call(command)
  File "/usr/lib/python3.10/subprocess.py", line 347, in call
Traceback (most recent call last):
  File "/usr/bin/apt", line 193, in <module>
    return p.wait(timeout=timeout)
  File "/usr/lib/python3.10/subprocess.py", line 1222, in wait
    return_code = subprocess.call(command)
KeyboardInterrupt
    self._wait(timeout=sigint_timeout)
  File "/usr/lib/python3.10/subprocess.py", line 1927, in _wait
    def _wait(self, timeout):
KeyboardInterrupt

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/bin/apt", line 193, in <module>
    return_code = subprocess.call(command)
KeyboardInterrupt
    return_code = subprocess.call(command)
  File "/usr/lib/python3.10/subprocess.py", line 347, in call
    return p.wait(timeout=timeout)
  File "/usr/lib/python3.10/subprocess.py", line 1222, in wait
    self._wait(timeout=sigint_timeout)
  File "/usr/lib/python3.10/subprocess.py", line 1942, in _wait
    (pid, sts) = self._try_wait(os.WNOHANG)
  File "/usr/lib/python3.10/subprocess.py", line 1917, in _try_wait
    (pid, sts) = os.waitpid(self.pid, wait_flags)
KeyboardInterrupt

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/bin/apt", line 193, in <module>
    return_code = subprocess.call(command)
KeyboardInterrupt
    return self._wait(timeout=timeout)
  File "/usr/lib/python3.10/subprocess.py", line 1959, in _wait
    (pid, sts) = self._try_wait(0)
  File "/usr/lib/python3.10/subprocess.py", line 1917, in _try_wait
    (pid, sts) = os.waitpid(self.pid, wait_flags)
KeyboardInterrupt

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/bin/apt", line 193, in <module>
    return_code = subprocess.call(command)
  File "/usr/lib/python3.10/subprocess.py", line 347, in call
    return p.wait(timeout=timeout)
  File "/usr/lib/python3.10/subprocess.py", line 1222, in wait
    self._wait(timeout=sigint_timeout)
  File "/usr/lib/python3.10/subprocess.py", line 1938, in _wait
    if self._waitpid_lock.acquire(False):
KeyboardInterrupt

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/bin/apt", line 193, in <module>
    return_code = subprocess.call(command)
KeyboardInterrupt

inxi -F --filter
System:
  Kernel: 5.15.0-138-generic x86_64 bits: 64 Desktop: Cinnamon 6.0.4
    Distro: Linux Mint 21.3 Virginia
Machine:
  Type: Laptop System: LENOVO product: 80UH v: Lenovo ideapad 310-15ISK
    serial: <superuser required>
  Mobo: LENOVO model: Toronto 5A2 v: SDK0J40688 WIN
    serial: <superuser required> UEFI: LENOVO v: 0XCN45WW date: 08/09/2018
Battery:
  ID-1: BAT0 charge: 24.8 Wh (100.0%) condition: 24.8/39.0 Wh (63.6%)
CPU:
  Info: dual core model: Intel Core i7-6500U bits: 64 type: MT MCP cache:
    L2: 512 KiB
  Speed (MHz): avg: 1334 min/max: 400/3100 cores: 1: 500 2: 848 3: 1720
    4: 2270
Graphics:
  Device-1: Intel Skylake GT2 [HD Graphics 520] driver: i915 v: kernel
  Device-2: NVIDIA GK208BM [GeForce 920M] driver: N/A
  Device-3: Syntek EasyCamera type: USB driver: uvcvideo
  Display: x11 server: X.Org v: 1.21.1.4 driver: X: loaded: modesetting
    unloaded: fbdev,vesa gpu: i915 resolution: 1: 1920x1080~60Hz
    2: 1366x768~60Hz
  OpenGL: renderer: llvmpipe (LLVM 15.0.7 256 bits)
    v: 4.5 Mesa 23.2.1-1ubuntu3.1~22.04.3
Audio:
  Device-1: Intel Sunrise Point-LP HD Audio driver: snd_hda_intel
  Device-2: NVIDIA GK208 HDMI/DP Audio driver: snd_hda_intel
  Sound Server-1: ALSA v: k5.15.0-138-generic running: yes
  Sound Server-2: PulseAudio v: 15.99.1 running: yes
  Sound Server-3: PipeWire v: 0.3.48 running: yes
Network:
  Device-1: Realtek RTL8111/8168/8411 PCI Express Gigabit Ethernet
    driver: r8169
  IF: enp1s0 state: down mac: <filter>
  Device-2: Qualcomm Atheros QCA9377 802.11ac Wireless Network Adapter
    driver: ath10k_pci
  IF: wlp2s0 state: up mac: <filter>
Bluetooth:
  Device-1: Qualcomm Atheros type: USB driver: btusb
  Report: hciconfig ID: hci0 state: up address: <filter> bt-v: 2.1
Drives:
  Local Storage: total: 238.47 GiB used: 72.01 GiB (30.2%)
  ID-1: /dev/sda vendor: Samsung model: P3-256 size: 238.47 GiB
Partition:
  ID-1: / size: 233.18 GiB used: 72.01 GiB (30.9%) fs: ext4 dev: /dev/sda2
  ID-2: /boot/efi size: 511 MiB used: 6.1 MiB (1.2%) fs: vfat
    dev: /dev/sda1
Swap:
  ID-1: swap-1 type: file size: 2 GiB used: 201.2 MiB (9.8%) file: /swapfile
Sensors:
  System Temperatures: cpu: 41.0 C pch: 46.5 C mobo: N/A
  Fan Speeds (RPM): N/A
Info:
  Processes: 262 Uptime: 27m Memory: 7.66 GiB used: 3.01 GiB (39.2%)
  Shell: Bash inxi: 3.3.13
```
1 curtida

Bem vindo ao fórum. Para que o pessoal possa te ajudar, precisamos que vc de uma lida nisso aqui:

1 curtida

Olá @Alex81723, tudo bem contigo?

Muitos scripts essenciais para o bom funcionamento das distribuições Linux usam o Python como base. Alterar a versão instalada por padrão é uma receita infalível para ter todo tipo de problema.

Se você precisa/quer usar uma versão específica do Python para trabalho ou estudos, é recomendável usar ambientes isolados como o ASDF ou uma imagem do distrobox. Assim você não mistura seu ambiente de desenvolvimento com os pacotes do sistema operacional.

Minha sugestão é: tente reverter o que você fez restaurando os pacotes originais. Mas, considerando que o APT está meio “quebrado”, pode ser mais simples reinstalar o sistema.

:vulcan_salute:

3 curtidas

Este tópico foi fechado automaticamente 3 dias depois da última resposta. Novas respostas não são mais permitidas.