Server :: Modify Sources.list To Improve Security?
May 30, 2011
I've got an amazon EC2 instance running Natty 11.04. I want to harden this server and make sure it's very secure as I ultimately will be handling sensitive data. I'm wondering what should be in /etc/apt/sources.list. Can anyone comment on these contents? Or, better yet, recommend a good secure sources.list file?
Code:
## Note, this file is written by cloud-init on first boot of an instance
## modifications made here will not survive a re-bundle.
## if you wish to make changes you can:
I am running Jolicloud on my netbook (which I believe is an Ubuntu derivative) and I am tried to enter the getdeb.net sources in so I can install apps from the website through APT but
1) When I entered the sources into sources.list and then the key into Terminal and then went to the site and tried to install an app it didn't work.
2) I deleted the line of code in the sources.list file and when I opened terminal and entered "sudo apt-get update" it showed the list of sources, but on the list were Getdeb.net sources.
My question is how do I delete sources that aren't in /etc/apt/sources.list ?
I am installing a hp officejet pro 8500 all in one printer to knoppix 6.0.1. install hangs saying i need to disable cd sources in etc/apt/source.list. How do i do this?
I tried to change the basic toolbar to cairo dock,a tutorial that i found told me to write in terminal gksu gedit /etc/apt/sources.list.d/winehq.listso i write it and a window opened,i couled not find the text that told me(the tutorial i mean)so i closed the window,after that i keep taiking the same error
E: Type �sudo� is not known on line 55 in source list /etc/apt/sources.list E: The list of sources could not be read. Go to the repository dialogue to correct the problem. E: _cache->open() failed, please report.
now whene i got in the winehq.list the text has gone and i take this error in update manager,my software center doesn't work and my terminal whenever i type sudo commands says
E: Type �sudo� is not known on line 55 in source list /etc/apt/sources.list
There is a problem with my source list (apparently) I'm running 11.04 if that helps.When I try to use apt-get install update for example, I get: "Malformed line 59 in source list etc/apt/sources.list"The same error occurs when trying to access synaptic package manager, it tells me there is a malformed line and the list of sources cannot be read.This error prevents me from apt-getting anything, updating and i suspect it is affecting the software center too.
I've been studying air crack so that i can learn ways to improve my home wireless network and using air crack on ubuntu isn't as easy as i thought it would be.
In a typical sources.list in a Debian-based distro, I see a line that begins with "deb," and right below it, the same repo preceded by "deb-src." I can figure out that that means "Debian source," but what's the difference between a "deb" and a "deb-src"?
My current sources.list has almost all the deb-src lines removed; I believe I did that at some point because Synaptic was giving me error messages over there being too many entries in my sources.list, and I must have thought the deb-src lines were redundant. I assume I was wrong, eh? The deb-src lines must be there for a reason. I might not have been certain the error messages were due to having too many sources, either; maybe that was only my guess.
I just upgraded from Debian 8.1 stable to testing and finally to unstable, looking for latest software.However, I cannot find sources for security or software updates, the only repository that works from me is
today i finished my first debian lenny install. x86 version. i ran into problem with sources.list # deb cdrom:[Debian GNU/Linux 5.0.4 _Lenny_ - Official i386 CD Binary-1 20100131-18:53]/ lenny main deb cdrom:[Debian GNU/Linux 5.0.4 _Lenny_ - Official i386 CD Binary-1 20100131-18:53]/ lenny main
# Line commented out by installer because it failed to verify: #deb http://security.debian.org/ lenny/updates main # Line commented out by installer because it failed to verify: #deb-src http://security.debian.org/ lenny/updates main # Line commented out by installer because it failed to verify: #deb http://volatile.debian.org/debian-volatile lenny/volatile main # Line commented out by installer because it failed to verify: #deb-src http://volatile.debian.org/debian-volatile lenny/volatile main
I only started using it about two weeks ago now though I've had fun this morning I tried to update with update manager but I got this message: Could not initialize the package information An unresolvable problem occurred while initializing the package information. Please report this bug against the 'update-manager' package and include the following error message: 'E:Type 'main' is not known on line 2 in source list /etc/apt/sources.list, E:The list of sources could not be read.'
I have installed and uninstalled Ubuntu four times now due to various errors. Right now I am getting error messages anytime I try to use the update or package manager and I get the same message from both:
E: Malformed line 54 in source list/etc/apt/sources.list (URI parse) E: The list of sources could not be read. Go to the repository dialog to correct the problem. E:_cache->open () failed, please report.
Having a bugger of a time trying to update after adding a ppa.?
E: Type [URL] is not known on line 2 in source list /etc/apt/sources.list
E: Type 'src' is not known on line 2 in source list /etc/apt/sources.list.d/tiheum-equinox-maverick.list
E: The list of sources could not be read.
# deb cdrom:[Ubuntu 10.04 LTS _Lucid Lynx_ - Release i386 (20100429)]/ lucid main restricted http://help.ubuntu.com/community/UpgradeNotes for how to upgrade to # newer versions of the distribution. deb http://archive.ubuntu.com/ubuntu maverick main restricted
I tried using sarge release for debian and I don't know what sources.list to use because in all the generators I can only choose Lenny, Sid, Squeeze or Etch release. What release should I use with Sarge? Or where do I get sources.list especially for it?
I have created a custom debian netinst USB stick. It has the default UK repositories in the sources list, but people in the US also need to use the stick from time-to-time.
Would it be a bad idea to mix US and UK repositories in the sources.list? Would Debian be clever enough to pick up the best repo depending on where the user is using the OS from? Or would I need to be a bit clever and create some sort of script to deal with this. (I am avoiding non-free/experimental software).
I'm running Ubuntu 9.10. I would like to specify that the computer get's put to sleep, after being inactive for 4 hours. The choices on the drop down are 10 minutes, 30 minutes, 1 hour, 2 hours and never.Is there an easy way to modify or add additional choices to the list? This would allow me to easily switch between them, if necessary.If not, what would I need to modify behind the scenes, to set this value to 4 hours?
Whenever I run $aptitude update I get this error :-
W: Duplicate sources.list entry http://ftp.us.debian.org/debian/ stable/non-free amd64 Packages (/var/lib/apt/lists/ftp.us.debian.org_debian_dists_stable_non-free_binary-amd64_Packages) W: You may want to run apt-get update to correct these problems