Accidentally deleted MATE-desktop, can't login now

All Gurus once were Newbies
Forum rules
There are no such things as "stupid" questions. However if you think your question is a bit stupid, then this is the right place for you to post it. Please stick to easy to-the-point questions that you feel people can answer fast. For long and complicated questions prefer the other forums within the support section.
Before you post please read this

Accidentally deleted MATE-desktop, can't login now

Postby frankyemei on Wed Jan 30, 2013 4:13 pm

Hi All,

I accidentally deleted the MATE-desktop and can't login now. I don't even have a terminal to "sudo apt-get install Mate-desktop". Anyone can help?

thanks ahead,
Frank
frankyemei
Level 1
Level 1
 
Posts: 5
Joined: Fri Jan 18, 2013 4:31 pm

Linux Mint is funded by ads and donations.
 

Re: Accidentally deleted MATE-desktop, can't login now

Postby tdockery97 on Wed Jan 30, 2013 4:23 pm

Reboot your system. At the Grub screen select to boot in the recovery mode. It should bring you to a login prompt in what looks like a full screen terminal. You can login there, and if you have ethernet connection you can run sudo apt-get install mate-desktop.
Image
Mint 16 Cinnamon
HP Pavilion 17 Notebook, 8GB DDR3, 2.5GHZ A10-APU, Radeon HD 8650G
Registered Linux User #520972
User avatar
tdockery97
Level 13
Level 13
 
Posts: 4743
Joined: Sun Jan 10, 2010 8:54 am
Location: Salem, Oregon

Re: Accidentally deleted MATE-desktop, can't login now

Postby frankyemei on Wed Jan 30, 2013 5:21 pm

tdockery97 wrote:Reboot your system. At the Grub screen select to boot in the recovery mode. It should bring you to a login prompt in what looks like a full screen terminal. You can login there, and if you have ethernet connection you can run sudo apt-get install mate-desktop.


Hi tdockery97,

Thank you for the reply.

I went to the safe mode and the root shell. However, when i tired "apt-get update", the terminal shows "can't fetch http://.... It seems there is not internet connect.

When I tried "apt-get install mate-desktop" it shows
"W:Not using locking for read onlly lock file /var/lib/dpkg/lock
E:Unable to write to /var/cache/apt/
E:The package lists or status file could not be parsed or opened"

How to get connected to the internet in this safe mode?

Can I install the mate-desktop package from the Mint-Mate installation DVD, without using internet? How to do that?

thanks,
Frank
frankyemei
Level 1
Level 1
 
Posts: 5
Joined: Fri Jan 18, 2013 4:31 pm

Re: Accidentally deleted MATE-desktop, can't login now

Postby xenopeek on Wed Jan 30, 2013 5:31 pm

I think the root console may mount your root partition read-only, hence giving the errors about not being able to write. You can remount the root partition for read-write access with the following command:
Code: Select all
mount -o remount,rw /
Forum Rules | IRC Channel Rules
Image
Arch Linux / 64-bit / Gnome Shell
User avatar
xenopeek
Level 21
Level 21
 
Posts: 13680
Joined: Wed Jul 06, 2011 3:58 am
Location: The Netherlands

Re: Accidentally deleted MATE-desktop, can't login now

Postby frankyemei on Wed Jan 30, 2013 6:30 pm

xenopeek wrote:I think the root console may mount your root partition read-only, hence giving the errors about not being able to write. You can remount the root partition for read-write access with the following command:
Code: Select all
mount -o remount,rw /

I tried
"mount -o remount,rw", but still not working.
it shows "..., For many more details, say man 8 mount"

Thanks,
Frank
frankyemei
Level 1
Level 1
 
Posts: 5
Joined: Fri Jan 18, 2013 4:31 pm

Re: Accidentally deleted MATE-desktop, can't login now

Postby xenopeek on Wed Jan 30, 2013 6:44 pm

Did you forget the final / (forward slash)? That is the directory you want to remount.
Forum Rules | IRC Channel Rules
Image
Arch Linux / 64-bit / Gnome Shell
User avatar
xenopeek
Level 21
Level 21
 
Posts: 13680
Joined: Wed Jul 06, 2011 3:58 am
Location: The Netherlands

Re: Accidentally deleted MATE-desktop, can't login now

Postby frankyemei on Wed Jan 30, 2013 7:42 pm

xenopeek wrote:Did you forget the final / (forward slash)? That is the directory you want to remount.

the mount commond works now with the slash sign. but apt-get install mate-desktop shows the packages is already new, and no new packages is installed. but, the normal login screen shows mate is not there. Then,I tried to apt-get install kde-standard,but it shows failed to fetch "http://archives. ubuntu.....". it seems it cannot get the internet connection, but I am sue Ethernet is well connected.
thanks
frankyemei
Level 1
Level 1
 
Posts: 5
Joined: Fri Jan 18, 2013 4:31 pm

Re: Accidentally deleted MATE-desktop, can't login now

Postby frankyemei on Wed Jan 30, 2013 8:20 pm

I guess there is no internet connection in the safe mode. So, I am thinking about two other ways to solve the problem 1.Recovery from liveCD, like https://help.ubuntu.com/community/LiveCdRecovery
2. stop mint from loading the login window, and stay at the terminal.
frankyemei
Level 1
Level 1
 
Posts: 5
Joined: Fri Jan 18, 2013 4:31 pm

Linux Mint is funded by ads and donations.
 

Return to Newbie Questions

Who is online

Users browsing this forum: Google [Bot] and 48 guests