Reinstall sudo apt-get?


 
Thread Tools Search this Thread
Top Forums UNIX for Dummies Questions & Answers Reinstall sudo apt-get?
# 1  
Old 06-18-2012
Reinstall sudo apt-get?

I am using ubuntu11.10 and i was trying to do the update to 12.04, i found a post suggesting to use to solve part of the problem:
sudo apt-get remove ubuntu-keyring sudo apt-get --yes -q --allow-unauthenticated install ubuntu-keyringI ran the first command but not able to run the second or any sudo or apt-get command.

How can i reinstall them?

thnx
 
Login or Register to Ask a Question

Previous Thread | Next Thread

10 More Discussions You Might Find Interesting

1. UNIX for Dummies Questions & Answers

Sudo apt-get update fail: Malformed line 59

I am trying to update/add a repository. Whenever I try to do a sudo apt-get update I get the message: E: Malformed line 59 in source list /etc/apt/sources.list (dist parse) E: The list of sources could not be read. and when I do: gksudo gedit /etc/apt/sources.list I see... (1 Reply)
Discussion started by: kayak
1 Replies

2. Solaris

Reinstall Hardware sentry

Hi Guys, I need to reinstall hardware sentry for BMC patrol manager in solariws server. I am trying to find the patrol version. please help me with the version number and reinstallation as i am new. Uname -a:SunOS 5.10 Generic_142901-06 i86pc i386 i86pc Thanks in advance!!! (0 Replies)
Discussion started by: Rockyc3400
0 Replies

3. UNIX for Dummies Questions & Answers

Error message of sudo apt-get

Hi, I am using ubuntu 12.04 and every time I installed new program or do: sudo apt-get install -f I get the following mesage: Download done. sha256sum mismatch jdk-7u3-linux-x64.tar.gz Oracle JDK 7 is NOT installed. dpkg: error processing oracle-java7-installer (--configure): subprocess... (2 Replies)
Discussion started by: programAngel
2 Replies

4. Shell Programming and Scripting

ssh foo.com sudo command - Prompts for sudo password as visible text. Help?

I am writing a BASH script to update a webserver and then restart Apache. It looks basically like this: #!/bin/bash rsync /path/on/local/machine/ foo.com:path/on/remote/machine/ ssh foo.com sudo /etc/init.d/apache2 reloadrsync and ssh don't prompt for a password, because I have DSA encryption... (9 Replies)
Discussion started by: fluoborate
9 Replies

5. UNIX for Dummies Questions & Answers

Reinstall Solaris?

Hey! I'm new here, and excuse my complete lack of knowledge as a total newbie. I've recently started a new job managing a nightclub, and we have 3 sun terminals installed that customers are able to use in the lounge area. However, we can't seem to log onto them as the old tech guy left on bad... (5 Replies)
Discussion started by: snogthefrog
5 Replies

6. UNIX for Dummies Questions & Answers

Reinstall recommendations?

I'm currently running 32-bit Xubuntu 8.10 and I'm thinking of changing over to 64-bit Ubuntu 9.04. Any recommendations on how to make this go more smoothly? -----Post Update----- Can I shuffle around the partitions and install it as a second OS? Is there a good way to do that? (2 Replies)
Discussion started by: CRGreathouse
2 Replies

7. UNIX for Dummies Questions & Answers

sudo apt-get install build-essential not working

it asks for password and then following is displayed Reading package lists... Done Building dependency tree Reading state information... Done E: Couldn't find package build-essential what should i do to install g++ compiler? (4 Replies)
Discussion started by: sparkle
4 Replies

8. Windows & DOS: Issues & Discussions

Reinstall

As a pet project we are trying to install Windows 95 on an OLD Laptop PC (Toshiba Satallite 110CS) Well Our first Debacle was Dos Died due to us Formatting the system (Well duh) How ever we have failed to beable to Get a Base install of dos to start Installing 95. We have No CD-ROM (Quaint we... (3 Replies)
Discussion started by: Alexodia
3 Replies

9. UNIX for Dummies Questions & Answers

bash reinstall

Is there any way how to reinstall bash without reinstaling the whole unix? Thanks (1 Reply)
Discussion started by: Foxgard
1 Replies

10. Linux

reinstall Linux

I am trying to reinstall Linux on a machine which already has Linux. It's an Intel Machine (DELL). I want to boot it from the CD but for some reason, I don't get the F2 or F12 for setup. It directly takes me to the welcome thing. What do I need to do (1 Reply)
Discussion started by: bandaru
1 Replies
Login or Register to Ask a Question
add-apt-repository(1)					      General Commands Manual					     add-apt-repository(1)

NAME
add-apt-repository - Adds a repository into the /etc/apt/sources.list or /etc/apt/sources.list.d or removes an existing one SYNOPSIS
add-apt-repository [OPTIONS] REPOSITORY DESCRIPTION
add-apt-repository is a script which adds an external APT repository to either /etc/apt/sources.list or a file in /etc/apt/sources.list.d/ or removes an already existing repository. The options supported by add-apt-repository are: -h, --help Show help message and exit -r, --remove Remove the specified repository -y, --yes Assume yes to all queries -k, --keyserver Use a custom keyserver URL instead of the default REPOSITORY STRING
REPOSITORY can be either a line that can be added directly to sources.list(5), or in the form ppa:<user>/<ppa-name> for adding Personal Package Archives. In the first form, REPOSITORY will just be appended to /etc/apt/sources.list. In the second form, ppa:<user>/<ppa-name> will be expanded to the full deb line of the PPA and added into a new file in the /etc/apt/sources.list.d/ directory. The GPG public key of the newly added PPA will also be downloaded and added to apt's keyring. SEE ALSO
sources.list(5) COPYRIGHT
This manual page was written by Chow Loong Jin <hyperair@gmail.com> for the Debian system (but may be used by others). Permission is granted to copy, distribute and/or modify this document under the terms of the GNU General Public License, Version 2 or any later version published by the Free Software Foundation. On Debian systems, the complete text of the GNU General Public License can be found in /usr/share/common-licenses. add-apt-repository(1)