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 - Newbie
User Name
Password
Linux - Newbie This Linux forum is for members that are new to Linux.
Just starting out and have a question? If it is not in the man pages or the how-to's this is the place!

Notices


Reply
  Search this Thread
Old 02-03-2020, 10:32 PM   #1
androidnoob
LQ Newbie
 
Registered: Jan 2020
Posts: 3

Rep: Reputation: Disabled
I fudged up my Ubuntu and I'm unable to fix it


Hi!

First, I'm sorry for such a vague and undescriptive title – I'm not sure how to concisely describe this problem in just the handful of words that a title demands. I considered using "I dug a hole and can't get out", but that would be even less descriptive than the current one. This is probably because of a whole lot of errors and mistakes on my part over a long period of time, that has now accumulated. I'll give as much info as I can, and please let me know if I must provide anything more.

I am on Ubuntu 18.04.

Anyway:
In my quest to be able to access my phone's files through Nautilus, I installed some MTP stuff, without success. One of the answers I found suggested I reinstall Nautilus. Well, I tried, but after a succesful uninstall, I'm unable to install it again.
Code:
$ sudo apt install nautilus
[sudo] password for androidnoob:
Reading package lists... Done
Building dependency tree
Reading state information... Done
Some packages could not be installed. This may mean that you have 
requested an impossible situation or if you are using the unstable 
distribution that some required packages have not yet been created
or been moved out of Incoming.
The following information may help to resolve the situation:

The following packages have unmet dependencies:
 nautilus : Depends: libnautilus-extension1a (= 1:3.26.3-0ubuntu4) but 1:3.26.4-0~ubuntu18.04.4 is to be installed
            Depends: nautilus-data (= 1:3.26.3-0ubuntu4) but 1:3.26.4-0~ubuntu18.04.4 is to be installed
E: Unable to correct problems, you have held broken packages.
By googling this error message, I tried
Code:
dpkg --get-selections | grep hold
, as per this answer, but it doesn't return anything. So according to that guy, it must be "something else". From the same page, I also tried sudo apt-get autoremove, also with no luck. I have also, of course, tried sudo apt update and sudo apt upgrade numerous time without any success.

Then I tried to install a different file manager, namely Dolphin:
Code:
$ sudo apt install dolphin
Reading package lists... Done
Building dependency tree
Reading state information... Done
E: Unable to locate package dolphin
Googling this gave me some repositories to add, but whenever I try to add these repositories, or even if I write an unknown command into bash (such as $ djkfkjdfkdsf), I get a lot of Python(?!) error messages, different traces depending on the command I try to run, but ultimately always ending up in:
Code:
ModuleNotFoundError: No module named 'apt_pkg'
Googling this error have taken me on quite an adventure. I've spent a lot of time in /usr/lib/python3/dist_packages, trying to create symlinks as suggested by dozens of answers online (many of which refer to this post). I think part of my problem here, is that I don't even have that .so file we're creating a symlink to, so all my links are dead. I've tried installing, removing, reinstalling, ... all the suggestions I've found googling this, even searched manually for the correct .so file, but with no luck.

I've had a lot of problems with apt repos earlier, and with installing Python 3.8 (which I've now uninstalled again), so there might be some old dirt lying in the background here from my presumably poor patches. I don't know. I'm really most of all tempted to just backup my home folder to an external drive (which is going to be another adventure without a file manager...), and install a fresh OS.

Does anyone here have any suggestions as to what to try next?
I feel like I have googled all the error messages, and gotten absolutely nowhere. Right now this Python error with apt_pkg.so is a big roadblock, I feel.

Words of consolation are also welcome.

If you got all the way here to the end, thank you so much for reading, and thank you in advance for your suggestions!
 
Old 02-04-2020, 06:28 AM   #2
cordx
Member
 
Registered: Oct 2018
Location: texas
Distribution: bodhi 5.1.0
Posts: 797

Rep: Reputation: 184Reputation: 184
this page has the same nautilus unmet dependencies that you have. they claimed to be able to fix that situation by following the advice found here. if you choose to follow them as well, please take note of the beginning where you are shown how to back up some important configuration files just in case.

building on that, it would be helpful to figure out a backup method that would have helped you after uninstalling nautilus. timeshift is my preferred system restore method, but there are plenty to choose from.

Last edited by cordx; 02-04-2020 at 06:35 AM.
 
Old 02-04-2020, 06:41 AM   #3
greencedar
Senior Member
 
Registered: Sep 2018
Distribution: Linux Mint 19.1 Tessa & 19.3 Tricia
Posts: 1,314
Blog Entries: 1

Rep: Reputation: 128Reputation: 128
Quote:
Originally Posted by androidnoob View Post
Hi!

I've had a lot of problems with apt repos earlier, and with installing Python 3.8 (which I've now uninstalled again), so there might be some old dirt lying in the background here from my presumably poor patches. I don't know. I'm really most of all tempted to just backup my home folder to an external drive (which is going to be another adventure without a file manager...), and install a fresh OS.

Does anyone here have any suggestions as to what to try next?
I feel like I have googled all the error messages, and gotten absolutely nowhere. Right now this Python error with apt_pkg.so is a big roadblock, I feel.

Words of consolation are also welcome.

If you got all the way here to the end, thank you so much for reading, and thank you in advance for your suggestions!
Based on what you have tried, and you have tried a lot, I would backup my folder in an external Hard Drive as your suggested and install a fresh OS.

For your consolation, I too use Ubuntu 18.04, Bionic Beaver, and it has served me very well. My problems have been minimal. Without knowing your full system information, it almost seems to me the apt repos' may be the problem and has corrupted your OS.

Keep us informed and best of luck.

greencedar
 
2 members found this post helpful.
Old 02-04-2020, 07:55 AM   #4
yancek
LQ Guru
 
Registered: Apr 2008
Distribution: Slackware, Ubuntu, PCLinux,
Posts: 10,523

Rep: Reputation: 2494Reputation: 2494Reputation: 2494Reputation: 2494Reputation: 2494Reputation: 2494Reputation: 2494Reputation: 2494Reputation: 2494Reputation: 2494Reputation: 2494
I'd have to agree with the recommendation by greencedar. The system appears to be messed up beyond repair particularly for someone fairly new. Not sure what site would recommend removing the default file manager when you can't access files on a phone. I think you came to the game too late and if you had come here and asked about the problem of accessing files (on whatever type phone you have) it would have been a simpler problem to resolve.

I don't use Ubuntu regularly but do have an install of 18.04 and had no problem accessing file on an iphone so I'm not sure what happened in your case. You haven't indicated what type phone you are using. Since android is sort of Linux I would expect that to be easier to access if that's what you are using. And for future reference when you post, it's always a good idea to post a link to any tutorials you used so members here can take a look. Many members here with very comprehensive knowledge of Linux/computers in general. Good luck.
 
Old 02-04-2020, 08:20 AM   #5
JeremyBoden
Senior Member
 
Registered: Nov 2011
Location: London, UK
Distribution: Debian
Posts: 1,947

Rep: Reputation: 511Reputation: 511Reputation: 511Reputation: 511Reputation: 511Reputation: 511
Even if you get it working, there are probably going to be things lurking around that will cause a future upgrade to fail in some unknown manner.

When you are in a hole - stop digging!
 
  


Reply

Tags
apt, nautilus, python, ubuntu



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
Resized Existing Windows Partition Using QTParted; System now Fudged! Rott3nHippi3 Linux - Software 5 09-07-2007 02:07 PM
FIX---Fedora install hangs---To fix this---- jmckinzie Fedora - Installation 0 12-20-2005 12:08 AM
all attempts to fix the problem failed... can someone help me fix partition space? foreverdita Linux - Enterprise 2 05-11-2005 09:02 AM
reiserfsck --fix-fixable -> --fix-fixable ignored - why? BrianK Linux - Software 1 01-07-2005 08:45 PM
memorystick filesystem seems kinda fudged Fascistchicken Linux - Hardware 6 11-15-2003 09:18 AM

LinuxQuestions.org > Forums > Linux Forums > Linux - Newbie

All times are GMT -5. The time now is 07:32 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