Unable to dl rsync package.

New to Debian (Or Linux in general)? Ask your questions here!

Unable to dl rsync package.

Postby FeedMeAStrayCat » 2015-01-01 21:43

I am having an issue using apt-get install to grab rsync.

Here's my output,

Reading package lists... Done
Building dependency tree
Reading state information... Done
E: Unable to locate package rsync

As you can see from my sources list I have tried throwing quite a few sources at it, but still nothing. I have also tried apt-get update and apt-get upgrade.

What am I screwing up?


# deb cdrom:[Debian GNU/Linux 7.6.0 _Wheezy_ - Official amd64 CD Binary-1 201407$

#deb cdrom:[Debian GNU/Linux 7.6.0 _Wheezy_ - Official amd64 CD Binary-1 2014071$

deb http://ftp.us.debian.org/debian/ wheezy main
deb-src http://ftp.us.debian.org/debian/ wheezy main

deb http://security.debian.org/ wheezy/updates main
deb-src http://security.debian.org/ wheezy/updates main

# wheezy-updates, previously known as 'volatile'
deb http://ftp.us.debian.org/debian/ wheezy-updates main
deb-src http://ftp.us.debian.org/debian/ wheezy-updates main

#VB dep
deb http://download.virtualbox.org/virtualbox/debian wheezy contrib

#Plex Dep
deb http://shell.ninthgate.se/packages/debian wheezy main
deb http://plex.originet.eu/ stable main

#Testing this repo to see if i can dl rsync, https://www.debian.org/releases/sta$
deb http://security.debian.org/ wheezy/updates main contrib non-free

#http://blog.netflowdevelopments.com/2012/01/05/cant-install-rsync-on-new-debian$
deb http://http.us.debian.org/debian/ squeeze contrib non-free main

deb http://ftp.us.debian.org/debian stable main contrib non-free

deb http://ftp.debian.org/debian/ wheezy-updates main contrib non-free

deb http://security.debian.org/ wheezy/updates main contrib non-free
FeedMeAStrayCat
 
Posts: 79
Joined: 2014-09-05 15:28

Re: Unable to dl rsync package.

Postby Head_on_a_Stick » 2015-01-01 21:54

It is definitely there:
https://packages.debian.org/wheezy/rsync

If you have run `apt-get upgrade` with those sources (especially squeeze), you may have borked your system...

Put your sources.list back to stock, run these commands and post the output of the last 2 commands:
Code: Select all
# apt-get update
aptitude search rsync
aptitude -s full-upgrade
Black Lives Matter

Debian buster-backports ISO image: for new hardware support
User avatar
Head_on_a_Stick
 
Posts: 13450
Joined: 2014-06-01 17:46
Location: /dev/chair

Re: Unable to dl rsync package.

Postby FeedMeAStrayCat » 2015-01-02 18:34

Thanks for the reply, will run this when I get home today.

When you say bring your sources list back to stock do you mean these three dep's?

deb http://ftp.us.debian.org/debian/ wheezy main
deb-src http://ftp.us.debian.org/debian/ wheezy main

deb http://security.debian.org/ wheezy/updates main
deb-src http://security.debian.org/ wheezy/updates main

# wheezy-updates, previously known as 'volatile'
deb http://ftp.us.debian.org/debian/ wheezy-updates main
deb-src http://ftp.us.debian.org/debian/ wheezy-updates main
FeedMeAStrayCat
 
Posts: 79
Joined: 2014-09-05 15:28

Re: Unable to dl rsync package.

Postby Head_on_a_Stick » 2015-01-02 18:43

Black Lives Matter

Debian buster-backports ISO image: for new hardware support
User avatar
Head_on_a_Stick
 
Posts: 13450
Joined: 2014-06-01 17:46
Location: /dev/chair

Re: Unable to dl rsync package.

Postby stevepusser » 2015-01-02 20:06

How about if you run

Code: Select all
apt-cache policy rsync


The output should be something like (except you don't have it installed)

Code: Select all
rsync:
  Installed: 3.0.9-4
  Candidate: 3.0.9-4
  Version table:
 *** 3.0.9-4 0
        800 http://ftp.us.debian.org/debian/ wheezy/main amd64 Packages
        100 /var/lib/dpkg/status


If you don't see it as available, do you see any errors when running

Code: Select all
su -c 'apt-get update'
MX Linux packager and developer
User avatar
stevepusser
 
Posts: 12284
Joined: 2009-10-06 05:53

Re: Unable to dl rsync package.

Postby FeedMeAStrayCat » 2015-01-02 22:40

Head_on_a_Stick wrote:It is definitely there:
https://packages.debian.org/wheezy/rsync

If you have run `apt-get upgrade` with those sources (especially squeeze), you may have borked your system...

Put your sources.list back to stock, run these commands and post the output of the last 2 commands:
Code: Select all
# apt-get update
aptitude search rsync
aptitude -s full-upgrade


Output of the first command,

aptitude search rsync
W: Duplicate sources.list entry http://shell.ninthgate.se/packages/debian/ squeeze/main amd64 Packages (/var/lib/apt/lists/shell.ninthgate.se_packages_debian_dists_squeeze_main_binary-amd64_Packages)
W: You may want to update the package lists to correct these missing files

These seems very strange to me since I updated the the sources list with the three deps. Not sure where this duplicate sources list is coming from?

And the second command,

aptitude -s full-upgrade
The following packages will be upgraded:
plexmediaserver
1 packages upgraded, 0 newly installed, 0 to remove and 0 not upgraded.
Need to get 120 MB of archives. After unpacking 0 B will be used.

stevepusser wrote:How about if you run

Code: Select all
apt-cache policy rsync


The output should be something like (except you don't have it installed)

Code: Select all
rsync:
  Installed: 3.0.9-4
  Candidate: 3.0.9-4
  Version table:
 *** 3.0.9-4 0
        800 http://ftp.us.debian.org/debian/ wheezy/main amd64 Packages
        100 /var/lib/dpkg/status


If you don't see it as available, do you see any errors when running

Code: Select all
su -c 'apt-get update'


Here is the output from the command,

apt-cache policy rsync
N: Unable to locate package rsync

And the other command, I am being asked to input a pw for the user.

su -c 'apt-get update'
Password:
su: Authentication failure
FeedMeAStrayCat
 
Posts: 79
Joined: 2014-09-05 15:28

Re: Unable to dl rsync package.

Postby Head_on_a_Stick » 2015-01-02 22:48

You probably have extra sources in /etc/apt/sources.list.d/ -- delete these as well.

When you ran the `apt-get update` command, did you get any error messages?

Did you run that command with root privileges?
Code: Select all
su -c 'apt-get update'

Run it again (as above) after you have purged all the extra sources from your system.

When you use `su -c` you need to give the root password (not the password you login with) -- this would have been set by yourself during the installation process.
Black Lives Matter

Debian buster-backports ISO image: for new hardware support
User avatar
Head_on_a_Stick
 
Posts: 13450
Joined: 2014-06-01 17:46
Location: /dev/chair

Re: Unable to dl rsync package.

Postby schnuller » 2015-01-02 22:57

As a rule of thumb you will want to put as many entries in your sources.list as you can find.
Mainly if you are a beginner.
schnuller
 
Posts: 386
Joined: 2014-11-25 05:05

Re: Unable to dl rsync package.

Postby Head_on_a_Stick » 2015-01-02 23:15

@OP: Just ignore @scnuller, that's his idea of a joke.

Please read the bottom link in my signature if you are in any doubts.
Black Lives Matter

Debian buster-backports ISO image: for new hardware support
User avatar
Head_on_a_Stick
 
Posts: 13450
Joined: 2014-06-01 17:46
Location: /dev/chair

Re: Unable to dl rsync package.

Postby FeedMeAStrayCat » 2015-01-02 23:20

Head_on_a_Stick wrote:You probably have extra sources in /etc/apt/sources.list.d/ -- delete these as well.

When you ran the `apt-get update` command, did you get any error messages?

Did you run that command with root privileges?
Code: Select all
su -c 'apt-get update'

Run it again (as above) after you have purged all the extra sources from your system.

When you use `su -c` you need to give the root password (not the password you login with) -- this would have been set by yourself during the installation process.


Here is the output of the command, I ran the command with sudo because I never created a root user so to speak. After I ran the command with sudo I got this.

sudo su -c 'apt-get update'
Hit http://security.debian.org wheezy/updates Release.gpg
Hit http://security.debian.org wheezy/updates Release
Ign http://security.debian.org wheezy/updates/main Translation-en
Err http://security.debian.org wheezy/updates/main Sources
404 Not Found [IP: 128.31.0.36 80]
Hit http://http.debian.net wheezy Release.gpg
Err http://security.debian.org wheezy/updates/main amd64 Packages
404 Not Found [IP: 128.31.0.36 80]
Hit http://http.debian.net wheezy-updates Release.gpg
Hit http://http.debian.net wheezy Release
Hit http://http.debian.net wheezy-updates Release
Hit http://http.debian.net wheezy/main Sources
Get:1 http://http.debian.net wheezy/main amd64 Packages [5,841 kB]
Get:2 http://http.debian.net wheezy/main Translation-en [3,846 kB]
Get:3 http://http.debian.net wheezy-updates/main Sources [1,805 B]
Get:4 http://http.debian.net wheezy-updates/main amd64 Packages [3,381 B]
Get:5 http://http.debian.net wheezy-updates/main Translation-en [2,429 B]
Err http://http.debian.net wheezy/main Translation-en
Bad header line
Err http://http.debian.net wheezy/main amd64 Packages
Bad header line
Err http://http.debian.net wheezy-updates/main Sources
Bad header line
Err http://http.debian.net wheezy-updates/main amd64 Packages
404 Not Found
Err http://http.debian.net wheezy-updates/main Translation-en
404 Not Found
Fetched 3,764 kB in 2min 12s (28.4 kB/s)
W: Failed to fetch http://security.debian.org/dists/wheezy ... ce/Sources 404 Not Found [IP: 128.31.0.36 80]

W: Failed to fetch http://security.debian.org/dists/wheezy ... 4/Packages 404 Not Found [IP: 128.31.0.36 80]

W: Failed to fetch http://http.debian.net/debian/dists/whe ... 4/Packages Bad header line

W: Failed to fetch http://http.debian.net/debian/dists/whe ... slation-en Bad header line

W: Failed to fetch http://http.debian.net/debian/dists/whe ... ce/Sources Bad header line

W: Failed to fetch http://http.debian.net/debian/dists/whe ... 4/Packages 404 Not Found

W: Failed to fetch http://http.debian.net/debian/dists/whe ... slation-en 404 Not Found

E: Some index files failed to download. They have been ignored, or old ones used instead.
FeedMeAStrayCat
 
Posts: 79
Joined: 2014-09-05 15:28

Re: Unable to dl rsync package.

Postby kiyop » 2015-01-02 23:46

Execute the following and post the results
Code: Select all
sudo apt-get autoclean
sudo apt-get update
apt-cache search rsync
sudo apt-get -s -f dist-upgrade


FeedMeAStrayCat wrote:I ran the command with sudo because I never created a root user so to speak.

How did you install debian? Usual debian installer asks for root password.
Openbox, JWM: Jessie, Sid, Arch / Win XP (on VirtualBox), 10
http://kiyoandkei.bbs.fc2.com/
User avatar
kiyop
 
Posts: 3984
Joined: 2011-05-05 15:16
Location: Where persons without desire to improve themselves fear to tread, in Japan

Re: Unable to dl rsync package.

Postby stevepusser » 2015-01-03 00:14

I believe it is related to that http://debian.net site. I don't think it's doing what it's supposed to, which is to find your fastest mirror.

Let's assume your software sources are in your /etc/apt/sources.list file, the most common location. You will have to launch a text editor with sudo and change the http://debian.net parts of the addresses so they appear like this:
Code: Select all
deb http://ftp.debian.org/debian/ wheezy main

deb http://security.debian.org/ wheezy/updates main

deb http://ftp.debian.org/debian/ wheezy-updates main


These three lines should be enough to get started with Debian. The contrib and non-free sections can be added to the end of each of the lines if you need anything from them, such as Adobe Flash, as in

Code: Select all
deb http://ftp.us.debian.org/debian/ wheezy main contrib non-free


For now, comment out any other line in that file with a # at the start of the line, save, and

Code: Select all
sudo apt-get update
Last edited by stevepusser on 2015-01-03 00:16, edited 1 time in total.
MX Linux packager and developer
User avatar
stevepusser
 
Posts: 12284
Joined: 2009-10-06 05:53

Re: Unable to dl rsync package.

Postby Head_on_a_Stick » 2015-01-03 00:15

Post the output of:
Code: Select all
ls /etc/apt/sources.list.d/

Just in case ©
Black Lives Matter

Debian buster-backports ISO image: for new hardware support
User avatar
Head_on_a_Stick
 
Posts: 13450
Joined: 2014-06-01 17:46
Location: /dev/chair

Re: Unable to dl rsync package.

Postby schnuller » 2015-01-03 02:42

kiyop wrote:
FeedMeAStrayCat wrote:I ran the command with sudo because I never created a root user so to speak.

How did you install debian? Usual debian installer asks for root password.

I'm pretty sure you can create sudo during installation (probably have to say "No" when it comes to the root password, or something like that, say leave the pw blank. Was rather intuitive, as far it's me, but i can't remember the details).
schnuller
 
Posts: 386
Joined: 2014-11-25 05:05

Re: Unable to dl rsync package.

Postby FeedMeAStrayCat » 2015-01-03 14:14

kiyop wrote:Execute the following and post the results
Code: Select all
sudo apt-get autoclean
sudo apt-get update
apt-cache search rsync
sudo apt-get -s -f dist-upgrade


FeedMeAStrayCat wrote:I ran the command with sudo because I never created a root user so to speak.

How did you install debian? Usual debian installer asks for root password.


Ok ran the following commands here is the output. As for sudo, when you install you are given the option to leave the root pw blank. So there isn't a root pw.

john@debian:~$ sudo apt-get autoclean
[sudo] password for john:
Reading package lists... Error!
E: Write error - write (28: No space left on device)
E: Can't mmap an empty file
E: Failed to truncate file - ftruncate (9: Bad file descriptor)
E: The package lists or status file could not be parsed or opened.
john@debian:~$ sudo apt-get update
Hit http://security.debian.org wheezy/updates Release.gpg
Hit http://security.debian.org wheezy/updates Release
Hit http://http.debian.net wheezy Release.gpg
Get:1 http://http.debian.net wheezy-updates Release.gpg [836 B]
Err http://http.debian.net wheezy-updates Release.gpg
Error writing to output file - write (28: No space left on device)
Hit http://http.debian.net wheezy Release
Ign http://http.debian.net wheezy-updates Release
Ign http://security.debian.org wheezy/updates/main Translation-en
Err http://security.debian.org wheezy/updates/main Sources
404 Not Found [IP: 149.20.20.6 80]
Err http://security.debian.org wheezy/updates/main amd64 Packages
404 Not Found [IP: 149.20.20.6 80]
Get:2 http://http.debian.net wheezy-updates/main amd64 Packages [3,381 B]
Hit http://http.debian.net wheezy/main Sources
Ign http://http.debian.net wheezy-updates/main Translation-en_US
Hit http://http.debian.net wheezy/main amd64 Packages
Get:3 http://http.debian.net wheezy-updates/main Sources [1,805 B]
Get:4 http://http.debian.net wheezy-updates/main Translation-en [2,429 B]
Ign http://http.debian.net wheezy/main Translation-en
Err http://http.debian.net wheezy-updates/main amd64 Packages
404 Not Found
Err http://http.debian.net wheezy/main amd64 Packages
rename failed, No such file or directory (/var/lib/apt/lists/http.debian.net_debian_dists_wheezy_main_binary-amd64_Packages -> /var/lib/apt/lists/partial/http.debian.net_debian_dists_wheezy_main_binary-amd64_Packages).
Err http://http.debian.net wheezy/main amd64 Packages
Bad header line
Fetched 7,615 B in 2min 2s (62 B/s)
W: Failed to fetch http://http.debian.net/debian/dists/whe ... elease.gpg Error writing to output file - write (28: No space left on device)

W: Failed to fetch http://security.debian.org/dists/wheezy ... ce/Sources 404 Not Found [IP: 149.20.20.6 80]

W: Failed to fetch http://security.debian.org/dists/wheezy ... 4/Packages 404 Not Found [IP: 149.20.20.6 80]

W: Failed to fetch http://http.debian.net/debian/dists/whe ... 4/Packages Bad header line

W: Failed to fetch http://http.debian.net/debian/dists/whe ... 4/Packages 404 Not Found

E: Some index files failed to download. They have been ignored, or old ones used instead.
john@debian:~$ apt-cache search rsync
john@debian:~$ sudo apt-cache search rsync
E: Write error - write (28: No space left on device)
E: IO Error saving source cache
E: The package lists or status file could not be parsed or opened.
john@debian:~$ sudo apt-get -s -f dist-upgrade
Reading package lists... Error!
E: Write error - write (28: No space left on device)
E: IO Error saving source cache
E: The package lists or status file could not be parsed or opened.
john@debian:~$
FeedMeAStrayCat
 
Posts: 79
Joined: 2014-09-05 15:28

Next

Return to Beginners Questions

Who is online

Users browsing this forum: No registered users and 12 guests

fashionable