rsync on Windows 10/Debian: Unable to locate package

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

rsync on Windows 10/Debian: Unable to locate package

Postby bbiney1 » 2020-01-18 16:38

I need to backup a large amount of files and I wanted to use rsync on my personal windows 10 machine, like I've been doing so on my mac OS at work. I found that the only way you can do that is by getting the windows subsytem for linux set up.

I followed instructions here on setting up a Windows Subsystem for Linux - https://docs.microsoft.com/en-us/window ... tall-win10

I followed the instructions here to manually install Debian (I think it's version 9 stretch) on my windows 10 machine. https://docs.microsoft.com/en-us/window ... all-manual

to initialize the distribution, I used the following command
Code: Select all
sudo apt update && sudo apt upgrade


I was following this tutorial on how to get rsync going on windows 10 https://thedatafrog.com/en/backup-rsync-windows-wsl/

The tutorial asks you to use the following command
Code: Select all
sudo apt install rsync openssh-client


However, that leads to the following print statements

Code: Select all
Reading package lists... Done
Building dependency tree
Reading state information... Done
E: Unable to locate package rysnc


And I've really been stuck with this. My question is essentially the same as the one in this thread, however this user had Debian version 7 and they have a lot of modifications to their sources.list file that I don't have and I don't think I quite need to make them, I'm not sure which ones to do. - viewtopic.php?f=30&t=119779

I assume I'm not the only windows 10 user that will need to use rsync, and the thread I linked just now is pretty old so I hope a solution can get posted here that can be of use for everyone. I just haven't found a solution yet.
Granted I have not restarted my computer since intializing the distribution (though none of the links I included prompted me to do so)
bbiney1
 
Posts: 2
Joined: 2020-01-18 16:10

Re: rsync on Windows 10/Debian: Unable to locate package

Postby Head_on_a_Stick » 2020-01-18 17:26

Did you install this version?

Try
Code: Select all
sudo apt edit-sources

Then add some sources, update the package database and apt install rsync again.

I've used WSL with Debian briefly and it all seemed to work but I've long since broken that Win10 system so I can't really help directly.
User avatar
Head_on_a_Stick
 
Posts: 11159
Joined: 2014-06-01 17:46
Location: /dev/chair

Re: rsync on Windows 10/Debian: Unable to locate package

Postby bbiney1 » 2020-01-19 04:18

Head_on_a_Stick wrote:Did you install this version?

Try
Code: Select all
sudo apt edit-sources

Then add some sources, update the package database and apt install rsync again.

I've used WSL with Debian briefly and it all seemed to work but I've long since broken that Win10 system so I can't really help directly.


I followed instructions her, albeit the command you gave me just takes me to the /etc/source.list file like shown here. - https://www.tecmint.com/fix-unable-to-l ... -debian-9/
Currently these are the contents of my source.list file

Code: Select all
deb https://deb.debian.org/debian  stretch main
]deb https://deb.debian.org/debian  stretch-updates main
]deb https://security.debian.org/debian-security stretch/updates main
deb-src https://deb.debian.org/debian stretch main


I ran apt update but still I get the error shown in the original post
bbiney1
 
Posts: 2
Joined: 2020-01-18 16:10

Re: rsync on Windows 10/Debian: Unable to locate package

Postby Head_on_a_Stick » 2020-01-19 11:17

bbiney1 wrote:I ran apt update

Please post the full output from that command.

EDIT: I am presuming that your sources.list doesn't have square close brackets at the start of the second and third lines.

EDIT2: is the apt-transport-https package installed? If not then change "https" to "http".

EDIT3: and your posted output in the OP says that you asked for "rysnc" instead "rsync".
User avatar
Head_on_a_Stick
 
Posts: 11159
Joined: 2014-06-01 17:46
Location: /dev/chair


Return to Beginners Questions

Who is online

Users browsing this forum: No registered users and 6 guests

fashionable