LinuxQuestions.org
Welcome to the most active Linux Forum on the web.
Home Forums Tutorials Articles Register
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Laptop and Netbook
User Name
Password
Linux - Laptop and Netbook Having 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


Reply
  Search this Thread
Old 02-10-2019, 12:52 AM   #1
Rookes123
LQ Newbie
 
Registered: Feb 2019
Posts: 4

Rep: Reputation: Disabled
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

Info- Im running Ubuntu 18.04 bionic. running[dpkg -l apt libapt-pkg5.0] shows the following-- "Apt running on- 1.4.6~17.04.1" "libapt=pkg5.0:amd64 running on- 1.2.29"

running [md5sum /usr/lib/x86_64-linux-gnu/libapt-pkg.so.5.0 /usr/lib/x86_64-linux-gnu/libapt-private.so.0.0] Shows- "868c9bb9cd23bacc2f76182902eb489d /usr/lib/x86_64-linux-gnu/libapt-pkg.so.5.0" "12e8c8000ae4f61d6ec50ca9218b428d /usr/lib/x86_64-linux-gnu/libapt-private.so.0.0 "

I only have access to recovery mode and Cntrl+Alt+F1 can someone please help me?
 
Old 02-10-2019, 01:06 AM   #2
descendant_command
Senior Member
 
Registered: Mar 2012
Posts: 1,876

Rep: Reputation: 643Reputation: 643Reputation: 643Reputation: 643Reputation: 643Reputation: 643
Been mixing repo's eh?
TBH if apt is hosed, unless you want to spend a long time learning new things, you should probably just reinstall.
 
Old 02-10-2019, 01:11 AM   #3
Rookes123
LQ Newbie
 
Registered: Feb 2019
Posts: 4

Original Poster
Rep: Reputation: Disabled
Quote:
Originally Posted by descendant_command View Post
Been mixing repo's eh?
TBH if apt is hosed, unless you want to spend a long time learning new things, you should probably just reinstall.
would there be a way to reinstall without losing personal data and can you tell me how?
 
Old 02-10-2019, 01:15 AM   #4
descendant_command
Senior Member
 
Registered: Mar 2012
Posts: 1,876

Rep: Reputation: 643Reputation: 643Reputation: 643Reputation: 643Reputation: 643Reputation: 643
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.
 
Old 02-10-2019, 01:20 AM   #5
Rookes123
LQ Newbie
 
Registered: Feb 2019
Posts: 4

Original Poster
Rep: Reputation: Disabled
is there no way to fix the apt error?
 
Old 02-10-2019, 01:38 AM   #6
descendant_command
Senior Member
 
Registered: Mar 2012
Posts: 1,876

Rep: Reputation: 643Reputation: 643Reputation: 643Reputation: 643Reputation: 643Reputation: 643
Yes, there very probably is.
Again, it depends ... on how you got in this situation and what other damage has been done.
 
Old 02-10-2019, 02:20 AM   #7
Rookes123
LQ Newbie
 
Registered: Feb 2019
Posts: 4

Original Poster
Rep: Reputation: Disabled
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.
 
Old 02-10-2019, 03:21 AM   #8
descendant_command
Senior Member
 
Registered: Mar 2012
Posts: 1,876

Rep: Reputation: 643Reputation: 643Reputation: 643Reputation: 643Reputation: 643Reputation: 643
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.
 
Old 02-10-2019, 03:57 AM   #9
pan64
LQ Addict
 
Registered: Mar 2012
Location: Hungary
Distribution: debian/ubuntu/suse ...
Posts: 21,992

Rep: Reputation: 7337Reputation: 7337Reputation: 7337Reputation: 7337Reputation: 7337Reputation: 7337Reputation: 7337Reputation: 7337Reputation: 7337Reputation: 7337Reputation: 7337
but if you want to repair it first please post the content of /etc/apt/sources.list and /etc/apt/sources.list.d
 
Old 02-11-2019, 10:12 AM   #10
HappyTux
Senior Member
 
Registered: Mar 2003
Location: Nova Scotia, Canada
Distribution: Debian AMD64
Posts: 4,170

Rep: Reputation: 244Reputation: 244Reputation: 244
Quote:
Originally Posted by Rookes123 View Post
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.
 
  


Reply



Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is Off
HTML code is Off



Similar Threads
Thread Thread Starter Forum Replies Last Post
Not able to run this command "sudo apt-get install libdevil-dev" even after trying "apt-get -f install" getting below error message srihariu1 Linux - Embedded & Single-board computer 2 04-26-2018 06:33 AM
[SOLVED] Cursor does not move to the bottom line and overwrite to same line on command line mesuutt Linux - Newbie 3 02-25-2012 08:04 AM
grab the line below a blank line and the line above the next blank line awk or perl? Pantomime Linux - General 7 06-26-2008 08:13 AM
apt-get install not working / apt-get update is ok remy215 Debian 2 10-01-2005 07:02 PM

LinuxQuestions.org > Forums > Linux Forums > Linux - Laptop and Netbook

All times are GMT -5. The time now is 05:07 AM.

Main Menu
Advertisement
My LQ
Write for LQ
LinuxQuestions.org is looking for people interested in writing Editorials, Articles, Reviews, and more. If you'd like to contribute content, let us know.
Main Menu
Syndicate
RSS1  Latest Threads
RSS1  LQ News
Twitter: @linuxquestions
Open Source Consulting | Domain Registration