[SOLVED] APT error and Command Line help. apt-get not working
Linux - Laptop and NetbookHaving a problem installing or configuring Linux on your laptop? Need help running Linux on your netbook? This forum is for you. This forum is for any topics relating to Linux and either traditional laptops or netbooks (such as the Asus EEE PC, Everex CloudBook or MSI Wind).
Notices
Welcome to LinuxQuestions.org, a friendly and active Linux Community.
You are currently viewing LQ as a guest. By joining our community you will have the ability to post topics, receive our newsletter, use the advanced search, subscribe to threads and access many other special features. Registration is quick, simple and absolutely free. Join our community today!
Note that registered members see fewer ads, and ContentLink is completely disabled once you log in.
If you have any problems with the registration process or your account login, please contact us. If you need to reset your password, click here.
Having a problem logging in? Please visit this page to clear all LQ-related cookies.
Get a virtual cloud desktop with the Linux distro that you want in less than five minutes with Shells! With over 10 pre-installed distros to choose from, the worry-free installation life is here! Whether you are a digital nomad or just looking for flexibility, Shells can put your Linux machine on the device that you want to use.
Exclusive for LQ members, get up to 45% off per month. Click here for more info.
APT error and Command Line help. apt-get not working
0
My apt will not run any command, e.g. sudo apt-get ____. The error message I am getting is-
relocation error: /usr/lib/x86_64-linux-gnu/libapt-private.so.0.0: symbol _ZN13pkgSourceList16AddVolatileFilesER11CommandLinePSt6vectorINSt7__cxx1112basic_stringIcSt11char_tr aitsIcESaIcEEESaIS8_EE version APTKG_5.0 not defined in file libapt-pkg.so.5.0 with link time reference
Well that really depends how your system is set up and what backup strategy you are using.
Worst case - no separate /home partition and no backup (come on - it's 2019!) - boot from a live system disk/usb and copy off what you need to an external drive or such.
I got into this situation from updating from 17.04 - 18.04 via the update gui and when it got to the resating phase of the updates it would not allow me to log in (black screen) or us apt commands.
That is not a supported upgrade - you need to go from 17.04 to 17.10 then 18.04.
Besides apt (which is the primary tool you need), it's likely there are many other critical components in inconsistent states that will need research and manual intervention to fix.
Everything is fixable, given enough time and knowledge - how much time do you want to devote to this?
I don't know you or what you already know, but based purely on your post count and my gut feeling, it's likely to be days/weeks and you will need to become intimately familiar with the inner workings of Ubuntu and it's packaging system.
If you just want a working system, get a live disk, save your data and do a fresh install.
would there be a way to reinstall without losing personal data and can you tell me how?
You can do the live boot from cd/usb and copy the files you need or if you do new install and choose not to format the root partition if this is where the /home is located then it will install overtop what is present leaving the files intact that are already there and not on the install disk. Namely your home files and whatever is left over from the old install. Probably not the best way to get them back.
LinuxQuestions.org is looking for people interested in writing
Editorials, Articles, Reviews, and more. If you'd like to contribute
content, let us know.