Page 2 of 3 FirstFirst 123 LastLast
Results 11 to 20 of 22

Thread: Error encountered while processing

  1. #11
    Join Date
    Oct 2018
    Beans
    34

    Re: Error encountered while processing

    Hi Bashing-om

    This is promising but I get the same error for

    Code:
    sudo apt --force-yes remove mysql-connector-python#errorbelow
    Reading package lists... Done
    Building dependency tree       
    Reading state information... Done
    The following packages will be REMOVED:
      mysql-connector-python
    0 upgraded, 0 newly installed, 1 to remove and 30 not upgraded.
    1 not fully installed or removed.
    After this operation, 1,362 kB disk space will be freed.
    W: --force-yes is deprecated, use one of the options starting with --allow instead.
    Do you want to continue? [Y/n] Y
    (Reading database ... 191577 files and directories currently installed.)
    Removing mysql-connector-python (8.0.16-1ubuntu18.04) ...
    /var/lib/dpkg/info/mysql-connector-python.postrm: 1: /var/lib/dpkg/info/mysql-connector-python.postrm: pyversions: not found
    Traceback (most recent call last):
      File "<string>", line 1, in <module>
    ModuleNotFoundError: No module named 'distutils.sysconfig'
    dpkg: error processing package mysql-connector-python (--remove):
     installed mysql-connector-python package post-removal script subprocess returned error exit status 1
    Errors were encountered while processing:
     mysql-connector-python
    E: Sub-process /usr/bin/dpkg returned an error code (1)
    Its seems does not want to force uninstall too

  2. #12
    Join Date
    Oct 2018
    Beans
    34

    Re: Error encountered while processing

    Also this what I get for your previous question
    Code:
    sudo systemctl status mysql
    #result
    ● mysql.service - MySQL Community Server
       Loaded: loaded (/lib/systemd/system/mysql.service; enabled; vendor preset: en
       Active: active (running) since Fri 2019-06-21 09:37:19 PDT; 1h 1min ago
         Docs: man:mysqld(8)
               http://dev.mysql.com/doc/refman/en/using-systemd.html
      Process: 1145 ExecStartPre=/usr/share/mysql-8.0/mysql-systemd-start pre (code=
     Main PID: 1221 (mysqld)
       Status: "SERVER_OPERATING"
        Tasks: 39 (limit: 4915)
       CGroup: /system.slice/mysql.service
               └─1221 /usr/sbin/mysqld
    
    
    Jun 21 09:37:18 mirraclemsi systemd[1]: Starting MySQL Community Server...
    Jun 21 09:37:19 mirraclemsi systemd[1]: Started MySQL Community Server.

  3. #13
    Join Date
    Jul 2010
    Location
    ozarks, Arkansas, USA
    Beans
    13,888
    Distro
    Xubuntu 20.04 Focal Fossa

    Re: Error encountered while processing

    mas192: Well ! Not -

    Let's step up a notch and see if:
    Code:
    sudp apt autoremove -- purge mysql-connector-python
    will prove to be effective.

    Mind ya it is possible that the new install will overwrite what is current, but, I just do not know for certain.
    However, what we definitely have to address is that "1 to remove and 30 not upgraded." which means we have to resolve mysql-connector-python before we can complete the upgrades.
    I am very reluctant to "force" the removal As that can leave a real mess to clean up.

    gotta be a way forward
    THE current(cy) in Documentation:
    https://help.ubuntu.com/community/PopularPages

    Happy ubuntu'n !

  4. #14
    Join Date
    Apr 2011
    Location
    Mystletainn Kick!
    Beans
    12,263
    Distro
    Ubuntu

    Re: Error encountered while processing

    I think mysql-connector-python is only the source package and the actual package should be python-mysql.connector.
    Or python2-mysql.connector.
    Splat Double Splat Triple Splat
    Earn Your Keep
    Don't mind me, I'm only passing through.
    Once in a blue moon, I'm actually helpful
    .

  5. #15
    Join Date
    Jul 2010
    Location
    ozarks, Arkansas, USA
    Beans
    13,888
    Distro
    Xubuntu 20.04 Focal Fossa

    Re: Error encountered while processing

    Oh Yes !
    deadflowr is onto something there !

    mas192
    what results:
    Code:
    sudo apt autoremove --purge python-mysql.connector
    -forward progress ?-
    THE current(cy) in Documentation:
    https://help.ubuntu.com/community/PopularPages

    Happy ubuntu'n !

  6. #16
    Join Date
    Oct 2018
    Beans
    34

    Re: Error encountered while processing

    Ah it make me want to cry now, Bashing-om

    Code:
    sudo apt autoremove --purge mysql-connector-python
    #output
    Reading package lists... Done
    Building dependency tree       
    Reading state information... Done
    The following packages will be REMOVED:
      mysql-connector-python
    0 upgraded, 0 newly installed, 1 to remove and 0 not upgraded.
    1 not fully installed or removed.
    After this operation, 1,362 kB disk space will be freed.
    Do you want to continue? [Y/n] Y
    (Reading database ... 191601 files and directories currently installed.)
    Removing mysql-connector-python (8.0.16-1ubuntu18.04) ...
    /var/lib/dpkg/info/mysql-connector-python.postrm: 1: /var/lib/dpkg/info/mysql-connector-python.postrm: pyversions: not found
    Traceback (most recent call last):
      File "<string>", line 1, in <module>
    ModuleNotFoundError: No module named 'distutils.sysconfig'
    dpkg: error processing package mysql-connector-python (--remove):
     installed mysql-connector-python package post-removal script subprocess returned error exit status 1
    Errors were encountered while processing:
     mysql-connector-python
    E: Sub-process /usr/bin/dpkg returned an error code (1)
    Code:
    sudo apt autoremove --purge python-mysql.connector#output
    Reading package lists... Done
    Building dependency tree       
    Reading state information... Done
    Package 'python-mysql.connector' is not installed, so not removed
    The following packages will be REMOVED:
      libpython-stdlib* mysql-connector-python python* python-minimal*
    0 upgraded, 0 newly installed, 4 to remove and 0 not upgraded.
    1 not fully installed or removed.
    After this operation, 2,187 kB disk space will be freed.
    Do you want to continue? [Y/n] Y
    (Reading database ... 191684 files and directories currently installed.)
    Removing mysql-connector-python (8.0.16-1ubuntu18.04) ...
    Traceback (most recent call last):
      File "<string>", line 1, in <module>
    ModuleNotFoundError: No module named 'distutils.sysconfig'
    dpkg: error processing package mysql-connector-python (--remove):
     installed mysql-connector-python package post-removal script subprocess returned error exit status 1
    Removing python (2.7.15~rc1-1) ...
    Removing libpython-stdlib:amd64 (2.7.15~rc1-1) ...
    Removing python-minimal (2.7.15~rc1-1) ...
    Errors were encountered while processing:
     mysql-connector-python
    E: Sub-process /usr/bin/dpkg returned an error code (1)
    It seems what ever we do this stays

  7. #17
    Join Date
    Jul 2010
    Location
    ozarks, Arkansas, USA
    Beans
    13,888
    Distro
    Xubuntu 20.04 Focal Fossa

    Re: Error encountered while processing

    mas192; Ouch !!

    Who wudda thunk it ! I sure did not !

    Put them back:
    Code:
    sudo apt install --reinstall python2.7 libpython-stdlib python-minimal
    give me a bit to re-think this sloppyation.

    still. gotta be a way
    THE current(cy) in Documentation:
    https://help.ubuntu.com/community/PopularPages

    Happy ubuntu'n !

  8. #18
    Join Date
    Oct 2018
    Beans
    34

    Re: Error encountered while processing

    Bashing-om sure will do, I hope this is resolvable without a reinstall. Thanks so much for all you input. I hope we can resolve it.

    Wish you a great weekend!!!

  9. #19
    Join Date
    Oct 2018
    Beans
    34

    Re: Error encountered while processing

    Bashing-om and dead flowr,

    I have solved my woes,

    here is what I did

    Code:
    samjoshva@mirraclemsi:~$ ls -l /var/lib/dpkg/info | grep -i mysql-connector-python
    -rw-r--r-- 1 root root       0 Jun 23 00:37 mysql-connector-python.list
    -rw-r--r-- 1 root root    7183 Mar 28 11:58 mysql-connector-python.md5sums
    -rwxr-xr-x 1 root root     950 Mar 28 11:58 mysql-connector-python.postinst
    -rwxr-xr-x 1 root root    1209 Mar 28 11:58 mysql-connector-python.postrm
    -rwxr-xr-x 1 root root     283 Mar 28 11:58 mysql-connector-python.prerm
    (base) samjoshva@mirraclemsi:~$ sudo rm -r /var/lib/dpkg/info/mysql-connector-python.list
    (base) samjoshva@mirraclemsi:~$ sudo rm -r /var/lib/dpkg/info/mysql-connector-python.md5sums 
    (base) samjoshva@mirraclemsi:~$ sudo rm -r /var/lib/dpkg/info/mysql-connector-python.postinst 
    (base) samjoshva@mirraclemsi:~$ sudo rm -r /var/lib/dpkg/info/mysql-connector-python.postrm 
    (base) samjoshva@mirraclemsi:~$ sudo rm -r /var/lib/dpkg/info/mysql-connector-python.prerm 
    (base) samjoshva@mirraclemsi:~$ clear
    After clearing these files apt is working now. Thanks so much for the help
    Last edited by mas192; June 30th, 2019 at 06:29 AM.

  10. #20
    Join Date
    Oct 2018
    Beans
    34

    Re: Error encountered while processing

    But I have a new problem, my man commands dont work unless sudo man Any advice to fix it would be awesome. Thanks

Page 2 of 3 FirstFirst 123 LastLast

Tags for this Thread

Bookmarks

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •