LinuxQuestions.org
Latest LQ Deal: Linux Power User Bundle
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 05-01-2014, 12:42 AM   #1
Don Graham
Member
 
Registered: Apr 2014
Location: Bangsaen Beach, Thailand
Distribution: Ubuntu 15.04 & Mint 17.1
Posts: 124

Rep: Reputation: Disabled
How do I delete programs using terminel


I just got my Ubuntu 14.04 running just the way I want it, when I decided to install Opera browser. I tried 3 different times and failed each time. I need some one to tell me what to type in the terminal to remove any and all files related to Opera.
 
Old 05-01-2014, 01:01 AM   #2
eklavya
Member
 
Registered: Mar 2013
Posts: 619

Rep: Reputation: 136Reputation: 136
Quote:
sudo apt-get --purge remove opera
if that doesn't work:
Quote:
sudo dpkg -r opera
Quote:
sudo rm -rf ~/.opera
If you still find opera, use your menu editor to find out how opera is called, and delete it from there if that is worth it to you.
 
Old 05-01-2014, 02:31 AM   #3
Don Graham
Member
 
Registered: Apr 2014
Location: Bangsaen Beach, Thailand
Distribution: Ubuntu 15.04 & Mint 17.1
Posts: 124

Original Poster
Rep: Reputation: Disabled
Quote:
Originally Posted by eklavya View Post
if that doesn't work:


If you still find opera, use your menu editor to find out how opera is called, and delete it from there if that is worth it to you.
here is what happened:

don@don-500-101l:~$ sudo apt-get --purge remove opera
[sudo] password for don:
Reading package lists... Done
Building dependency tree
Reading state information... Done
N: Ignoring file 'opera.listsudo' in directory '/etc/apt/sources.list.d/' as it has an invalid filename extension
N: Ignoring file 'opera.listsudo' in directory '/etc/apt/sources.list.d/' as it has an invalid filename extension
E: Unable to locate package opera
don@don-500-101l:~$ sudo dpkg -r opera
dpkg: warning: ignoring request to remove opera which isn't installed
don@don-500-101l:~$ sudo rm -rf ~/.opera
don@don-500-101l:~$

As for using the menu editor I am a NEW-BEE I have no idea what that is or how to open one or use one.
 
Old 05-01-2014, 03:10 AM   #4
eklavya
Member
 
Registered: Mar 2013
Posts: 619

Rep: Reputation: 136Reputation: 136
The filename should be opera.list & opera.list.save instead of opera.listsudo that's why it is giving error and you are not able to install opera
To remove first command error, run
Quote:
# sudo rm -rf /etc/apt/sources.list.d/opera*
Now run
Quote:
sudo apt-get --purge remove opera
To install opera
Run
Quote:
sudo sh -c 'echo "deb http://deb.opera.com/opera/ stable non-free" >> /etc/apt/sources.list.d/opera.list'
Quote:
sudo sh -c 'wget -O - http://deb.opera.com/archive.key | apt-key add -'
Quote:
sudo apt-get update
Quote:
sudo apt-get install opera

Method - II for installation
You can install it from ubuntu software center, if you are not able to find opera there

Method - III for installation
There is another easier method.
Download opera deb file from here
Now run following command
# sudo apt-get install gdebi
Now right click on downloaded deb file and open with Gdebi package installer.
Now opera should be installed.

Last edited by eklavya; 05-01-2014 at 03:25 AM.
 
Old 05-01-2014, 03:35 AM   #5
Don Graham
Member
 
Registered: Apr 2014
Location: Bangsaen Beach, Thailand
Distribution: Ubuntu 15.04 & Mint 17.1
Posts: 124

Original Poster
Rep: Reputation: Disabled
Quote:
Originally Posted by eklavya View Post
The filename should be opera.list & opera.list.save instead of opera.listsudo that's why it is giving error and you are not able to install opera
To remove first command error, run

Now run


To install opera
Run






Method - II for installation
You can install it from ubuntu software center, if you are not able to find opera there

Method - III for installation
There is another easier method.
Download opera deb file from here
Now run following command
# sudo apt-get install gdebi
Now right click on downloaded deb file and open with Gdebi package installer.
Now opera should be installed.
As you can see, nothing happened. After line of type I pushed enter.

don@don-500-101l:~$ # sudo rm -rf /etc/apt/sources.list.d/opera*
don@don-500-101l:~$ open
Couldn't get a file descriptor referring to the console
don@don-500-101l:~$ sudo apt-get --purge remove opera
[sudo] password for don:
Reading package lists... Done
Building dependency tree
Reading state information... Done
N: Ignoring file 'opera.listsudo' in directory '/etc/apt/sources.list.d/' as it has an invalid filename extension
N: Ignoring file 'opera.listsudo' in directory '/etc/apt/sources.list.d/' as it has an invalid filename extension
E: Unable to locate package opera
don@don-500-101l:~$ sudo sh -c 'echo "deb http://deb.opera.com/opera/ stable non-free" >> /etc/apt/sources.list.d/opera.list
> sudo sh -c 'wget -O - http://deb.opera.com/archive.key | apt-key add -'
> sudo apt-get update
> sudo apt-get install opera
>
 
Old 05-01-2014, 03:48 AM   #6
eklavya
Member
 
Registered: Mar 2013
Posts: 619

Rep: Reputation: 136Reputation: 136
Do not add hash before the command. The command should be
Quote:
sudo rm -rf /etc/apt/sources.list.d/opera*
same for method III
Quote:
sudo apt-get install gdebi
 
Old 05-01-2014, 04:16 AM   #7
Don Graham
Member
 
Registered: Apr 2014
Location: Bangsaen Beach, Thailand
Distribution: Ubuntu 15.04 & Mint 17.1
Posts: 124

Original Poster
Rep: Reputation: Disabled
Quote:
Originally Posted by eklavya View Post
Do not add hash before the command. The command should be


same for method III
On the last go around I copy/past the whole thing. Lets start over from the beginning.
 
Old 05-01-2014, 09:21 PM   #8
Don Graham
Member
 
Registered: Apr 2014
Location: Bangsaen Beach, Thailand
Distribution: Ubuntu 15.04 & Mint 17.1
Posts: 124

Original Poster
Rep: Reputation: Disabled
Quote:
Originally Posted by eklavya View Post
The filename should be opera.list & opera.list.save instead of opera.listsudo that's why it is giving error and you are not able to install opera
To remove first command error, run

Now run


To install opera
Run








Method - II for installation
You can install it from ubuntu software center, if you are not able to find opera there

Method - III for installation
There is another easier method.
Download opera deb file from here
Now run following command
# sudo apt-get install gdebi
Now right click on downloaded deb file and open with Gdebi package installer.
Now opera should be installed.
I did as you suggested and now Opera is installed. Thanks for your help.
 
  


Reply

Tags
delete, programs, removepkg


Thread Tools Search this Thread
Search this Thread:

Advanced Search

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
[SOLVED] can we run gnome-terminel plus some commans like cat through c program rohaanembedded Programming 8 05-10-2013 07:44 AM
I dont want to delete programs though format the system rhklinux Linux - Newbie 4 05-04-2010 08:23 AM
why does installing or upgrading delete unrelated programs? newbiesforever Debian 6 09-16-2009 08:08 AM
My terminel Linux~Powered Linux - Software 9 01-24-2004 07:06 AM
Can't view or delete installed programs in mandrake Ulrik_Uppkastar Linux - Software 1 11-30-2003 02:08 PM


All times are GMT -5. The time now is 03:49 PM.

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
Facebook: linuxquestions Google+: linuxquestions
Open Source Consulting | Domain Registration