Scheduled Maintenance: We are aware of an issue with Google, AOL, and Yahoo services as email providers which are blocking new registrations. We are trying to fix the issue and we have several internal and external support tickets in process to resolve the issue. Please see: viewtopic.php?t=158230

 

 

 

Unable to dl rsync package.

New to Debian (Or Linux in general)? Ask your questions here!
Message
Author
User avatar
Head_on_a_Stick
Posts: 14114
Joined: 2014-06-01 17:46
Location: London, England
Has thanked: 81 times
Been thanked: 132 times

Re: Unable to dl rsync package.

#31 Post by Head_on_a_Stick »

You can check how full your filesystem is after you've cleared the APT cache and removed any orphans by running:

Code: Select all

df -h
EDIT: Ninja'd...

Visit http://speedof.me/ and check your download speed, then run `apt-get update` and check the download speed given by APT.

If APT is getting much slower download speeds I think you have to ask your ISP or check your router settings for anything to do with it's firewall.
deadbang

FeedMeAStrayCat
Posts: 79
Joined: 2014-09-05 15:28

Re: Unable to dl rsync package.

#32 Post by FeedMeAStrayCat »

OK so the problem persists. I cleared the cache but I'm still stuck.

Going back to a prior post from DilbertsLeftNut, /var/ is indeed full. So it looks like I need to expand /var, the problem is I don't know how to do this saftley.

Of course there are lots of articles out there but I'm not sure what to follow.

User avatar
Head_on_a_Stick
Posts: 14114
Joined: 2014-06-01 17:46
Location: London, England
Has thanked: 81 times
Been thanked: 132 times

Re: Unable to dl rsync package.

#33 Post by Head_on_a_Stick »

Post the output requested by @sunrat plz.

Rather than just expand /var you should instead try to find out why it is full otherwise you will soon run into the same problem.

How big is /var now?

I've recently run `aptitude clean` on my Debian box & /var occupies ~0.5GiB; on my Arch box I haven't cleared the cache in a while and it's still only ~1.5GiB

Did you try to measure your download speeds as I suggested?

You claim you have a fast connection but APT says 4B/s -- that would certainly explain the "404" messages.
deadbang

FeedMeAStrayCat
Posts: 79
Joined: 2014-09-05 15:28

Re: Unable to dl rsync package.

#34 Post by FeedMeAStrayCat »

sunrat wrote:Post the output of

Code: Select all

df -h

Code: Select all

Filesystem                                              Size  Used Avail Use% Mounted on
rootfs                                                  322M  173M  133M  57% /
udev                                                     10M     0   10M   0% /dev
tmpfs                                                   798M  3.0M  795M   1% /run
/dev/disk/by-uuid/8b3bcdcd-3004-46bc-9efe-d5f47b783d21  322M  173M  133M  57% /
tmpfs                                                   5.0M     0  5.0M   0% /run/lock
tmpfs                                                   3.1G  268K  3.1G   1% /run/shm
/dev/sdh9                                               276G  113G  149G  44% /home
/dev/sdh8                                               368M   11M  338M   3% /tmp
/dev/sdh5                                               8.3G  3.8G  4.2G  48% /usr
/dev/sdh6                                               2.8G  2.8G     0 100% /var
/dev/mapper/media-media                                 6.2T  4.0T  2.0T  67% /var/media
/dev/mapper/media-SecurityCams                          296G  445M  280G   1% /var/SecurityCams
Downspeed of my connnection via speedtest.net 30.69 Mbps

schnuller
Posts: 386
Joined: 2014-11-25 05:05

Re: Unable to dl rsync package.

#35 Post by schnuller »

du -sh /var/*
too.
and so forth. Perhaps grep for M or G, to only get the big ones.
Then delete what can be deleted. *tar.gz in /var/log for sure. Round the lines of
find /var/log -name '*tar.gz* | xargs rm
(not sure, and there are find arguments to do it more smart. Don't copy and paste).

For what it's worth:
gentoo-laptop log # du -sh /var
703M /var
crap knows what you got there. 2.8 Gigs sound like a lot.

User avatar
Head_on_a_Stick
Posts: 14114
Joined: 2014-06-01 17:46
Location: London, England
Has thanked: 81 times
Been thanked: 132 times

Re: Unable to dl rsync package.

#36 Post by Head_on_a_Stick »

FeedMeAStrayCat wrote:Downspeed of my connnection via speedtest.net 30.69 Mbps
So why is APT only reporting 4bytes a second if your browser is getting almost 4MiB a second?

Are you sure you ran `apt-get clean`?

What is the output of:

Code: Select all

ls /var/cache/apt/archives/
deadbang

FeedMeAStrayCat
Posts: 79
Joined: 2014-09-05 15:28

Re: Unable to dl rsync package.

#37 Post by FeedMeAStrayCat »

schnuller wrote:du -sh /var/*
too.
and so forth. Perhaps grep for M or G, to only get the big ones.
Then delete what can be deleted. *tar.gz in /var/log for sure. Round the lines of
find /var/log -name '*tar.gz* | xargs rm
(not sure, and there are find arguments to do it more smart. Don't copy and paste).

For what it's worth:
gentoo-laptop log # du -sh /var
703M /var
crap knows what you got there. 2.8 Gigs sound like a lot.
Output of du -sh /var/*

Code: Select all

4.5M    /var/backups
135M    /var/cache
4.0K    /var/games
2.1G    /var/lib
4.0K    /var/local
0       /var/lock
67M     /var/log
16K     /var/lost+found
8.0K    /var/mail
4.0T    /var/media
4.0K    /var/opt
0       /var/run
254M    /var/SecurityCams
95M     /var/spool
319M    /var/subsonic
4.0K    /var/tmp

FeedMeAStrayCat
Posts: 79
Joined: 2014-09-05 15:28

Re: Unable to dl rsync package.

#38 Post by FeedMeAStrayCat »

Head_on_a_Stick wrote:
FeedMeAStrayCat wrote:Downspeed of my connnection via speedtest.net 30.69 Mbps
So why is APT only reporting 4bytes a second if your browser is getting almost 4MiB a second?

Are you sure you ran `apt-get clean`?

What is the output of:

Code: Select all

ls /var/cache/apt/archives/
Def did run apt-get clean, ran it again just in case..I am confused as you in regards the internet speed.


Code: Select all

ls /var/cache/apt/archives/
lock  partial

User avatar
Head_on_a_Stick
Posts: 14114
Joined: 2014-06-01 17:46
Location: London, England
Has thanked: 81 times
Been thanked: 132 times

Re: Unable to dl rsync package.

#39 Post by Head_on_a_Stick »

So you need to look at /var/lib and find out what is filling up your partition.

I really don't have a clue why APT is so slow but it seems likely that the 404's are due to your signal dropping out.

At your own risk you could have a look at something like apt-fast -- this manages APT downloads from multiple sources, a bit like a torrent download:
http://xmodulo.com/speed-slow-apt-get-i ... buntu.html
However, it looks to be designed for Ubuntu -- make sure you do not use the PPA method to install it.
deadbang

schnuller
Posts: 386
Joined: 2014-11-25 05:05

Re: Unable to dl rsync package.

#40 Post by schnuller »

I am shooting in the dark. I would try:
deborphan
and or
deborphan --guess-all
then
deborphan | xargs apt-get remove --purge -y

aptitude purge ~c

apt-get autoremove

After that i would check /var/lib again (my main hope is aptitude purge ~c)
Doing ls -ahl /var/lib/* too, and so forth, until you found it, won't hurt.
Again: I never ran into something like this. It seems weird, as if you would have done something ... well: odd. Hence none of that is a "solution". It is a proposal to go on with troubleshooting, the problem lays somewhere else ("someone" has done something)

Take care with deborphan and mainly deborphan --guess all. It might remove stuff you don't want removed (you can install it again, but still).

-
I think i would reinstall the OS, btw. This looks like a mess. If you got the time and consider it fun, then go on.

User avatar
Head_on_a_Stick
Posts: 14114
Joined: 2014-06-01 17:46
Location: London, England
Has thanked: 81 times
Been thanked: 132 times

Re: Unable to dl rsync package.

#41 Post by Head_on_a_Stick »

schnuller wrote:I think i would reinstall the OS, btw. This looks like a mess.
+1.
I can't make any sense of this.
deadbang

User avatar
aicardi
Posts: 388
Joined: 2009-11-18 01:30
Location: Chicago

Re: Unable to dl rsync package.

#42 Post by aicardi »

Head_on_a_Stick wrote:
schnuller wrote:I think i would reinstall the OS, btw. This looks like a mess.
+1.
I can't make any sense of this.
+1
Just another shot in the dark...
Unless you have a very specific reason for the way it is, I would consider rethinking the partitioning scheme where /var is concerned.
Jessie/Xfce

reinob
Posts: 1189
Joined: 2014-06-30 11:42
Has thanked: 97 times
Been thanked: 47 times

Re: Unable to dl rsync package.

#43 Post by reinob »

FeedMeAStrayCat wrote: E: Write error - write (28: No space left on device)
Your disk is full. Check with "df -h" (post here if needed). Fix that and then start again. You might have a corrupted package database though (dpkg is not known for its reliability).

Edit: this is what happens when you leave a tab open for a long time. Sorry for redundant reply.
Last edited by reinob on 2015-01-07 11:56, edited 1 time in total.

schnuller
Posts: 386
Joined: 2014-11-25 05:05

Re: Unable to dl rsync package.

#44 Post by schnuller »

He posted the output of dh -h already here:
http://forums.debian.net/viewtopic.php? ... 30#p565427
it revealed that /var/lib is filling /var (well, the further investigation via du -sh), and that is what we were discussing before your post.

FeedMeAStrayCat
Posts: 79
Joined: 2014-09-05 15:28

Re: Unable to dl rsync package.

#45 Post by FeedMeAStrayCat »

To All,

I want to thank everyone so much for their effort for helping me to solve this issue! Turns out as best I can tell /var/lib/plexmediaserver was taking up a butt load of space, 1.1 Gb to be exact.

For those unfamilar with Plex, it's a media server software. Basically what appeared to be happening is Plex was placing all info (metadata, logs etc.) into /var/lib/plexmediaserver. So after a bit of research I found that you can set where Plex places this information in the config file /etc/default/plexmediaserver. I changed the location to a directory in one of my logical volumes and restarted the service. I then rm -r the old directory /var/lib/plexmediaserver.

After this I ran apt-get install rsync and received some promising info,

Code: Select all

sudo apt-get install rsync
Reading package lists... Done
Building dependency tree
Reading state information... Done
The following NEW packages will be installed:
  rsync
0 upgraded, 1 newly installed, 0 to remove and 0 not upgraded.
Need to get 369 kB of archives.
After this operation, 653 kB of additional disk space will be used.
WARNING: The following packages cannot be authenticated!
  rsync
Install these packages without verification [y/N]?
Now the question is, what is this message about authentication about?
Last edited by FeedMeAStrayCat on 2015-01-06 00:55, edited 1 time in total.

FeedMeAStrayCat
Posts: 79
Joined: 2014-09-05 15:28

Re: Unable to dl rsync package.

#46 Post by FeedMeAStrayCat »

Head_on_a_Stick wrote:
FeedMeAStrayCat wrote:Downspeed of my connnection via speedtest.net 30.69 Mbps
So why is APT only reporting 4bytes a second if your browser is getting almost 4MiB a second?

Are you sure you ran `apt-get clean`?

What is the output of:

Code: Select all

ls /var/cache/apt/archives/
I notice in your sig you have a lot of links to the wiki. I have tried reading the Debian reference document and at times it's quite dry, but quite thorough. I am wondering if the wiki is a bit more adjusted to someone who is very new to linux? Thoughts?

schnuller
Posts: 386
Joined: 2014-11-25 05:05

Re: Unable to dl rsync package.

#47 Post by schnuller »

regarding the message from apt:
you probably miss the keyring.
Do apt-cache search keyring
perhaps apt-cache search keyring --names-only
and dpkg -l | grep keyring
You probably miss debian-keyring, or a similar name. Install it, ignore the warning, run apt-get update again and when installing rsync the error warning should be gone.

regarding documentation: i would read what i got problems with, no matter if wiki, reference, manpage. In general i prefer to ask in a forum or IRC channel, usually someone there knows a) what is the solution or b) where to find the according documentation online.
You might try the Ubuntu wiki (for someone rather new to linux). If i got a quick question, i usually use it (i go to the German one, which is good for my purpose, hence i don't know the English one well). For most, but not all subjects, of course.

User avatar
Head_on_a_Stick
Posts: 14114
Joined: 2014-06-01 17:46
Location: London, England
Has thanked: 81 times
Been thanked: 132 times

Re: Unable to dl rsync package.

#48 Post by Head_on_a_Stick »

FeedMeAStrayCat wrote:I notice in your sig you have a lot of links to the wiki. I have tried reading the Debian reference document and at times it's quite dry, but quite thorough. I am wondering if the wiki is a bit more adjusted to someone who is very new to linux? Thoughts?
I find the Debian Reference to be one of the finest pieces of documentation I have ever come accross -- the trick is to read the parts that are applicable to your problem rather than trying to plough through it all in one sitting.

It is definately worth the effort.

For your authentication problem: you need to add the current secure key to APT -- guide here:
https://wiki.debian.org/SecureApt#How_t ... _add_a_key

Key here:
https://ftp-master.debian.org/keys.html
deadbang

Post Reply