- 首页/【英译中】GPL-2.0
【英译中】GPL-2.0
2026-04-09 16:45:03


Preamble 序言
TERMS AND CONDITIONS FOR COPYING,
DISTRIBUTION AND MODIFICATION
0. This License applies to any program or other work which contains a notice placed by the copyright holder saying it may be distributed under the terms of this General Public License. The “Program”, below, refers to any such program or work, and a “work based on the Program” means either the Program or any derivative work under copyright law: that is to say, a work containing the Program or a portion of it, either verbatim or with modifications and/or translated into another language. (Hereinafter, translation is included without limitation in the term “modification”.) Each licensee is addressed as “you”.
本许可证可适用于任何程序或其他形式的作品,只要其包含其版权所有者放置的声明,称其可根据本通用公共许可证的条款进行分发。在下文中,“本程序”指任何前述程序或作品,“基于本程序的作品”可以指本程序自身,或其在版权法下的由本程序衍生的任何作品:即该作品包含本程序或其一部分的逐字副本、经过修改后的副本,和/或被翻译成其他语言的副本。(下文中,“修改”一词的含义包括但不限于翻译。)每个被许可人均被称为“你”。
Activities other than copying, distribution and modification are not covered by this License; they are outside its scope. The act of running the Program is not restricted, and the output from the Program is covered only if its contents constitute a work based on the Program (independent of having been made by running the Program). Whether that is true depends on what the Program does.
复制、分发和修改以外的行为不在本许可证的范围内;这些行为超出了本许可证的范围。运行本程序的行为不受限制;仅当本程序的输出内容构成基于本程序的作品时(区别于通过运行本程序而完成的作品),该内容才落入本许可证范围内。这是否成立取决于本程序的用途。
1. You may copy and distribute verbatim copies of the Program's source code as you receive it, in any medium, provided that you conspicuously and appropriately publish on each copy an appropriate copyright notice and disclaimer of warranty; keep intact all the notices that refer to this License and to the absence of any warranty; and give any other recipients of the Program a copy of this License along with the Program.
你可以通过任何介质复制和分发你所收到的本程序源代码的逐字副本,只要你在每份副本上以醒目且适当的方式发布合适的版权声明和无保证声明;完整保留所有涉及本许可证的声明和涉及无任何保证的声明;并随同本程序一起将本许可证副本交给所有接收者。
You may charge a fee for the physical act of transferring a copy, and you may at your option offer warranty protection in exchange for a fee.
你可以就传输某一副本的实际行为收取费用,你也可以自行选择有偿提供保证。
2. You may modify your copy or copies of the Program or any portion of it, thus forming a work based on the Program, and copy and distribute such modifications or work under the terms of Section 1 above, provided that you also meet all of these conditions:
你可以修改你收到的本程序或其任何部分的副本,从而形成基于本程序的作品,并根据前述第1条的要求复制和分发前述修改或作品,只要你还同时满足以下所有条件:
a) You must cause the modified files to carry prominent notices stating that you changed the files and the date of any change.
你必须在修改后的文件附上显著的声明,说明你修改了该文件,并给出任何修改的日期。
b) You must cause any work that you distribute or publish, that in whole or in part contains or is derived from the Program or any part thereof, to be licensed as a whole at no charge to all third parties under the terms of this License.
你必须将你分发或发布的、全部或部分地包含或衍生自本程序或其部分的任何作品作为一个整体,根据本许可证的条款免费授权给所有第三方。
c) If the modified program normally reads commands interactively when run, you must cause it, when started running for such interactive use in the most ordinary way, to print or display an announcement including an appropriate copyright notice and a notice that there is no warranty (or else, saying that you provide a warranty) and that users may redistribute the program under these conditions, and telling the user how to view a copy of this License. (Exception: if the Program itself is interactive but does not normally print such an announcement, your work based on the Program is not required to print an announcement.)
如果你修改后的程序在运行时通常通过交互方式读取命令,则你必须使其在以最通常的方式启动运行该交互式使用时,打印或显示包含以下内容的公告:适当的版权声明,无任何保证(或声称由你提供保证)以及用户可以在这些条件下再分发程序的声明,同时告知用户如何查看本许可证的副本。(例外:如果本程序自身虽有交互但通常不会打印此种公告,则你基于本程序的作品无须打印公告。)
These requirements apply to the modified work as a whole. If identifiable sections of that work are not derived from the Program, and can be reasonably considered independent and separate works in themselves, then this License, and its terms, do not apply to those sections when you distribute them as separate works. But when you distribute the same sections as part of a whole which is a work based on the Program, the distribution of the whole must be on the terms of this License, whose permissions for other licensees extend to the entire whole, and thus to each and every part regardless of who wrote it.
这些要求适用于修改后的整个作品。如果该作品中可识别的部分并非衍生自本程序,并且其自身可以被合理地认为是独立、可分的作品,那么当你将其作为单独的作品进行分发时,这些部分则并不落入本许可证及其条款的范围内。但当你将这些部分作为基于本程序作品整体的一部分进行分发时,该整个作品的分发则必须遵循本许可证条款,本许可证对其他被许可人的许可扩展到该作品整体,也因此扩展到该作品的每一部分,不论该部分由谁编写。
Thus, it is not the intent of this section to claim rights or contest your rights to work written entirely by you; rather, the intent is to exercise the right to control the distribution of derivative or collective works based on the Program.
因此,本条款的目的并非主张或挑战完全由你所编写的作品的权利;而是旨在行使对基于本程序的衍生作品或集合作品进行分发的控制权。
In addition, mere aggregation of another work not based on the Program with the Program (or with a work based on the Program) on a volume of a storage or distribution medium does not bring the other work under the scope of this License.
此外,仅是将不基于本程序的其他作品与本程序(或与基于本程序的作品)聚合于同一存储区或分发介质之中,并不会使得该其他作品落入本许可证范围内。
3. You may copy and distribute the Program (or a work based on it, under Section 2) in object code or executable form under the terms of Sections 1 and 2 above provided that you also do one of the following:
你可以根据前述第1条和第2条的要求将本程序(或根据第2条,将基于它的作品)以目标代码或可执行的形式进行复制和分发,前提是你还做到以下条件之一:
a)Accompany it with the complete corresponding machine-readable source code, which must be distributed under the terms of Sections 1 and 2 above on a medium customarily used for software interchange; or,
随附提供完整的机器可读的“对应源代码”,该源代码必须根据前述第1条和第2条的要求并通过通常用于软件交换的介质上分发;或
b) Accompany it with a written offer, valid for at least three years, to give any third party, for a charge no more than your cost of physically performing source distribution, a complete machine-readable copy of the corresponding source code, to be distributed under the terms of Sections 1 and 2 above on a medium customarily used for software interchange; or,
随附提供一个有效期至少为三年的书面要约,以向任何第三方提供一个完整的机器可读的“对应源代码”副本,收取的费用不得超过你对源代码进行实际分发的成本,该源代码将根据前述第1条和第2条的要求并通过通常用于软件交换的介质分发;或
c) Accompany it with the information you received as to the offer to distribute corresponding source code. (This alternative is allowed only for noncommercial distribution and only if you received the program in object code or executable form with such an offer, in accord with Subsection b above.)
随附提供你所收到的有关分发“对应源代码”的要约信息。(此替代方案仅适用于非商业分发,且仅在你根据前述b款收到附带此要约的目标代码形式或可执行形式的程序的情况下允许。)
The source code for a work means the preferred form of the work for making modifications to it. For an executable work, complete source code means all the source code for all modules it contains, plus any associated interface definition files, plus the scripts used to control compilation and installation of the executable. However, as a special exception, the source code distributed need not include anything that is normally distributed (in either source or binary form) with the major components (compiler, kernel, and so on) of the operating system on which the executable runs, unless that component itself accompanies the executable.
作品的源代码是指对作品进行修改的首选形式。对于一个可执行文件,完整的源代码是指它包含的所有模块的所有源代码,加上任何相关的接口定义文件,以及用于控制该可执行文件的编译和安装的脚本。但作为一个特别例外,分发的源代码无需包含通常与该可执行文件所运行的操作系统中的主要组件(编译器、内核等)一起分发(不论以源代码或二进制形式)的任何部分,除非该组件自身随该可执行文件一起分发。
If distribution of executable or object code is made by offering access to copy from a designated place, then offering equivalent access to copy the source code from the same place counts as distribution of the source code, even though third parties are not compelled to copy the source along with the object code.
如果对可执行文件或目标代码的分发是通过提供从一个指定位置进行复制的途径来实现的,则提供从同一位置复制其源代码的同等途径可视为已分发源代码,即使第三方并未被强制要求在复制目标代码的同时复制源代码。
4. You may not copy, modify, sublicense, or distribute the Program except as expressly provided under this License. Any attempt otherwise to copy, modify, sublicense or distribute the Program is void, and will automatically terminate your rights under this License. However, parties who have received copies, or rights, from you under this License will not have their licenses terminated so long as such parties remain in full compliance.
除非本许可证明确许可,你不得复制、修改、分许可或分发本程序。任何试图以其他方式复制、修改、分许可或分发本程序的行为均为无效,并将自动终止你在本许可证项下的权利。但是,对于那些根据本许可证从你处获得副本或权利的各方,只要他们完全遵守本许可证要求,他们的许可不会被终止。
5. You are not required to accept this License, since you have not signed it. However, nothing else grants you permission to modify or distribute the Program or its derivative works. These actions are prohibited by law if you do not accept this License. Therefore, by modifying or distributing the Program (or any work based on the Program), you indicate your acceptance of this License to do so, and all its terms and conditions for copying, distributing or modifying the Program or works based on it.
你并非必须接受本许可证,因为你并未签署它。然而,没有任何其他文件授权你修改或分发本程序或其衍生作品。如果你不接受本许可证,则这些行为将为法律所禁止。因此,如果你修改或分发本程序(或任何基于本程序的作品),就表示你接受了本许可证项下许可,并已接受了其所有关于复制、分发或修改本程序或基于本程序的作品的条款和条件。
6. Each time you redistribute the Program (or any work based on the Program), the recipient automatically receives a license from the original licensor to copy, distribute or modify the Program subject to these terms and conditions. You may not impose any further restrictions on the recipients' exercise of the rights granted herein. You are not responsible for enforcing compliance by third parties to this License.
每当你再分发本程序(或任何基于本程序的作品),接收者都会自动从原始许可人处获得一个许可,以根据(本许可证的)这些条款和条件复制、分发或修改本程序。你不得对接收者行使本许可证授予的权利施加任何进一步限制。你没有义务要求第三方遵守本许可证。
7. If, as a consequence of a court judgment or allegation of patent infringement or for any other reason (not limited to patent issues), conditions are imposed on you (whether by court order, agreement or otherwise) that contradict the conditions of this License, they do not excuse you from the conditions of this License. If you cannot distribute so as to satisfy simultaneously your obligations under this License and any other pertinent obligations, then as a consequence you may not distribute the Program at all. For example, if a patent license would not permit royalty-free redistribution of the Program by all those who receive copies directly or indirectly through you, then the only way you could satisfy both it and this License would be to refrain entirely from distribution of the Program.
如因专利侵权相关的法院判决或指控或任何其他原因(不限于专利争议),你被要求(无论因为法院命令、协议或其他方式)接受与本许可证要求相矛盾的条件,这也不会使你豁免于本许可证要求。如果你不能同时满足本许可证下的义务和任何其他相关义务,那么你不得分发本程序。例如,如果某一专利许可不允许所有直接或间接通过你接收副本的接收者免费再分发本程序,那么你能够同时满足该许可和本许可证的唯一方法是完全避免分发本程序。
If any portion of this section is held invalid or unenforceable under any particular circumstance, the balance of the section is intended to apply and the section as a whole is intended to apply in other circumstances.
如本条的任何部分在任何特定情况下被视为无效或不可执行,则本条其余部分仍将适用,且本条作为一个整体在其他情况下均适用。
It is not the purpose of this section to induce you to infringe any patents or other property right claims or to contest validity of any such claims; this section has the sole purpose of protecting the integrity of the free software distribution system, which is implemented by public license practices. Many people have made generous contributions to the wide range of software distributed through that system in reliance on consistent application of that system; it is up to the author/donor to decide if he or she is willing to distribute software through any other system and a licensee cannot impose that choice.
本条的目的不是诱导你侵犯任何专利或其他产权主张,或对任何此类主张的有效性提出挑战;本条的唯一目的是保护由公共许可证实践所构建的自由软件分发体系的完整性。许多人出于对该体系始终如一地适用的信赖,对通过该体系分发的大量软件作出了慷慨的贡献;仅作者/捐赠者有权决定他或她是否愿意通过其他体系分发其软件,而不是由被许可人强加这种选择。
This section is intended to make thoroughly clear what is believed to be a consequence of the rest of this License.
本条旨在彻底澄清何为适用本许可证其他条款的后果。
8. If the distribution and/or use of the Program is restricted in certain countries either by patents or by copyrighted interfaces, the original copyright holder who places the Program under this License may add an explicit geographical distribution limitation excluding those countries, so that distribution is permitted only in or among countries not thus excluded. In such case, this License incorporates the limitation as if written in the body of this License.
如果本程序的分发和/或使用在特定国家因专利或受到版权保护的接口而受到限制,则将本程序置于本许可证下的原始版权持有者,可以添加明确的地理范围分发限制,以排除这些国家,因而分发行为仅限于未被排除的国家内或国家之间进行。在这种情况下,本许可证包含该范围限制,视同已写入本许可证正文。
9. The Free Software Foundation may publish revised and/or new versions of the General Public License from time to time. Such new versions will be similar in spirit to the present version, but may differ in detail to address new problems or concerns.
自由软件基金会可能会不时发布本通用公共许可证的修订版和/或新版本。这些新版本将体现与当前版本相似的精神,但在细节上可能有所不同,以解决新的问题或关注点。
Each version is given a distinguishing version number. If the Program specifies a version number of this License which applies to it and “any later version”, you have the option of following the terms and conditions either of that version or of any later version published by the Free Software Foundation. If the Program does not specify a version number of this License, you may choose any version ever published by the Free Software Foundation.
每个版本都有一个可区分的版本号。如果本程序指定了其适用的本许可证的版本号和“任何后续版本”,你可以选择遵循该编号版本或由自由软件基金会发布的任何后续版本的条款和条件。如果本程序没有指定本许可证的版本号,则你可以选择自由软件基金会曾经发布过的任何版本。
10. If you wish to incorporate parts of the Program into other free programs whose distribution conditions are different, write to the author to ask for permission. For software which is copyrighted by the Free Software Foundation, write to the Free Software Foundation; we sometimes make exceptions for this. Our decision will be guided by the two goals of preserving the free status of all derivatives of our free software and of promoting the sharing and reuse of software generally.
如果你希望将本程序的部分内容合并到适用不同分发条件的其他自由程序中,请向作者请求许可。对于自由软件基金会拥有版权的软件,请向自由软件基金会请求许可;我们有时会为此做出例外。我们的决定将由两个目标牵引,即:保护我们的自由软件所有衍生作品的自由状态,和在整体上促进软件的分享和复用。
NO WARRANTY 无保证
END OF TERMS AND CONDITIONS
How to Apply These Terms to Your New Programs 如何在你的新程序中应用本条款





