-
Notifications
You must be signed in to change notification settings - Fork 58
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Update instructions on https://typora.io/#linux #706
Comments
@abnerlee can you please respond to the general state of Typora for Linux? How are users supposed to receive the latest version if the repository is broken? |
Ref #331 Before the fix, please just ignore the Warning |
Warning still showing on Ubuntu 17.04 following instructions from typora.io.
|
Is this ever going to be fixed?
|
Should be |
I've done as you said before
|
@Y-Taras What's your Linux/Ubuntu version? |
my Linux/Ubuntu version is Ubuntu 14.04.5 LTS |
Ubuntu 17.04 (x64) Official Gnome flavor sudo add-apt-repository 'deb https://typora.io linux/' and then: sudo apt-get update
...
W: Conflicting distribution: https://typora.io linux/ InRelease (expected linux/ but got ) |
Same thing here on Debian testing. Tried both |
ubuntu17.04 also error: |
@gguoss That doesn't really have anything to do with Typora. Yarn changed their key (or the NSA took over).
|
Like @thnee said, the repo is not set up quite right. On Ubuntu 17.04, apt can install Typora with either but there's a warning with every Confusing for those unfamiliar with apt, and irritating for anyone who keeps an eye on apt logs. |
I'm proxy user. |
The command should probably be |
@timschroedernet That repo line
The package does install from deb https://typora.io ./linux/ or deb https://typora.io linux/ , but apt gives a warning. |
How about |
@abnerlee I get: |
~~ Removed to avoid confusion ~~ |
@koesherbacon Your instructions will work, but most users should not need to manually download and install the package with dpkg. The correct installation instructions under normal circumstances are given at https://typora.io/#linux or, using sources.list.d for neatness:
The 'problem' - let's call it a minor irritation - is that apt gives a warning for this repo (not an error) - which blemishes logs and confuses newbies. It does this because the typora repo is not set up quite correctly. The repo still works, but it causes apt to give an unnecessary warning message. Your instructions remove the Typora repo after installation with |
You're completely correct. I already knew it was more of a cosmetc "fix" rather than something that would completely solve the irritation as you put it. I'll therefor remove my "solution" so nobody gets tricked by it. (Sorry if this sounds snarky, I don't mean it that way, sometimes tone can't quite be understood over the internet. I genuinely want to remove it so others are not confused by it) |
after typora was installed on ubuntu17.10 in a VMware: |
On Debian Stretch I got same error message. I tested this command to see what are URLs for the repositories:
then I checked every URL by using curl and found there is not https://typora.io/linux/Packages.xz so I omitted ".xz" and the file was there. Can be this source of error message? |
i just followed the instructions on: https://typora.io/#linux and got exactly the same Error:
I am using Ubuntu 17.10 and have not changed anything on the standard installation, so i assume that theres still a Issue? |
Same here. Ubuntu 17.10 I also tried manually adding the repository to my sources.list file. Add received the following errors. Using the doc's provided
Using the above 'deb https://typora.io ./linux/', I get
|
On a whim, I ran install after receiving the Typora installed and runs with no issues. I haven't dug into the repository to see if this is the actual problem. However, the last time I experienced a similar error, the repository was missing Release, InRelease, and Release.gpg. In other words, there was missed step when creating the authentication. Don't know if that will help... |
I cannot see warnings on my two Linux VMs anymore after some day. So I cannot validate the correct So I hope someone can post the repo line that will not cause warning in step |
@abnerlee |
@abnerlee
is caused by incorrect directory structure of your repository and Packages file contents.
To be able to fix this you have to rebuild your repository. |
Reasoned Thoughts
Please, update the website instructions to use a syntax that does not emmit a warning:
Ranting Thoughts(Feel free to ignore this section unless you have some extra time you are looking to kill and are interested in the habbits of an OCD admin.)
Saying (multiple times) that this issue only "confuse newbies" and "blemishes logs" minimizes a real issue. If an entry in my sources is emmitting a warning, something is wrong. The warning is there to tell admins that something is incorrect/improper/dangerous or otherwise noteworthy with the repository; many of the warnings Allowing this warning to always exist (throughout the entire past year, in fact) desensitizes the user/admin to warnings from apt; now that the user has come to expect a warning due to this repository, it makes it all the more likely other important warning will be ignored because the user is no longer scrutinizing the same warning message they've seen for the past year. You expect a warning will be shown, so you stop paying attention to what it says. This can be dangerous. I do not allow any warnings from apt unless it is the direct result of an upstream bug in the core distribution packages that is outside my control. I strictly follow the below detailed workflow:
This issue breaks my above workflow, and I don't much appreciate it. :-) I want the warning gone after dealing with it for 12 months. Upstream Warning HistoryThe reason the error inconsistently shows up (depending on the distribution version/release) is because the |
Will change to |
Yeah you're right. That works fine with that little change. |
changed to |
I can't update Typora by using new address! Such a mess
I think this means, no one can't install Typora by using above address, may you should bring it back. |
@GreatBahram This is so weird. Earlier, it installed for me without issue, but now I can confirm the same issue you have described. The Why do you have such an odd package repository setup, to begin with? It seems odd to not have a distribution name. It seems odd that I cannot browse the repository by visiting |
@GreatBahram @robfrawley You can download the package from And you could try the less odd package repo |
@abnerlee
I end up with:
If I use this one, instead:
then I end up with this:
, but I'm getting repository meta info (PoC with apt-get --fix-missing update issued):
Here is a neat trick which I use to install typora via package manager (I'm using Ubuntu 18.04):
PoC:
Basically, malformed URL (https://typora.io/linux/./linux/typora_0.9.51_amd64.deb) comes from:
Such path traversal (single or double dots are interpreted as a path traversal by both web servers and web clients (browsers) is not necessary. Possible solutions:
|
@arruor I update the |
@abnerlee |
@abnerlee @GreatBahram @abnerlee Thanks for taking the time to work through this everyone. The new alterations that have been made over the last few days have now resulted in a completely unnoticeable experience as it pertains to Updates, upgrades, installs perfectly now. Thanks again all! Good work. |
this command is no longer working |
@marcosfede Would you like to provide more detailed output, e.g. result of curl -I https://typora.io/linux/Packages. If you're using proxy to access Internet you should pass --E to sudo to honour environment variables like http(s)_proxy. |
I am also receiving this error.
This is what I get when I |
I have the same error as marcosfede and Tynael @arruor Package: typora Package: typora Package: typora Package: typora Package: typora Package: typora Package: typora Package: typora Package: typora Package: typora Package: typora Package: typora |
@ai-aksoyoglu Following instructions listed at https://typora.io/#linux I am getting
I am using Kubuntu 21.10 standard installation. YMMV in your case. |
Linux Mint 20 Ulyana \n \l |
I need to rephrase my issue. gives me: BUT the update manager gives me: W: Conflicting distribution: https://typora.io linux/ InRelease (expected linux/ but got ) I apologize for the confusion |
@arruor you can ignore the warning, or see "Alternative for apt-key" in https://support.typora.io/Typora-on-Linux/ |
You could also try |
Thank you, @abnerlee ! |
Dear @abnerlee,
Could you please update the installation instructions for Linux?
This command is no longer working:
Thank you!
The text was updated successfully, but these errors were encountered: