如何在 Debian 6 Synaptic/apt-get 上更新 TexWorks

如何在 Debian 6 Synaptic/apt-get 上更新 TexWorks

Synaptic 仅列出了 2.3 版本。

我想要最新版本的4.0。

我想避免手动编译、依赖地狱等等。

如何更新至 4.0 版本?

谢谢。

peter@debian-peter:~$ sudo apt-get install texworks
[sudo] password for peter: 
Reading package lists... Done
Building dependency tree       
Reading state information... Done
texworks is already the newest version.
The following packages were automatically installed and are no longer required:
  liburiparser1 libcurl3 libssh2-1
Use 'apt-get autoremove' to remove them.
0 upgraded, 0 newly installed, 0 to remove and 0 not upgraded.
N: Ignoring file 'apt-build' in directory '/etc/apt/sources.list.d/' as it has no filename extension
peter@debian-peter:~$ apt-build install texworks
Package texworks already in repository.
-----> Updating package lists <-----
N: Ignoring file 'apt-build' in directory '/etc/apt/sources.list.d/' as it has no filename extension
E: Could not open lock file /var/lib/apt/lists/lock - open (13: Permission denied)
E: Unable to lock directory /var/lib/apt/lists/
E: Could not open lock file /var/lib/dpkg/lock - open (13: Permission denied)
E: Unable to lock the administration directory (/var/lib/dpkg/), are you root?
E: Could not open lock file /var/lib/dpkg/lock - open (13: Permission denied)
E: Unable to lock the administration directory (/var/lib/dpkg/), are you root?
peter@debian-peter:~$ sudo apt-build install texworks
Package texworks already in repository.
-----> Updating package lists <-----
Ign cdrom://[Debian GNU/Linux 6.0.0 _Squeeze_ - Official i386 CD Binary-1 20110205-17:27] squeeze Release.gpg
Ign file: apt-build Release.gpg
Ign file:/var/cache/apt-build/repository/ apt-build/main Translation-en        
Ign file:/var/cache/apt-build/repository/ apt-build/main Translation-en_AU     
Get:1 file: apt-build Release [89 B]                                           
Ign file: apt-build/main i386 Packages                                         
Ign file: apt-build/main i386 Packages                                         
Hit http://security.debian.org squeeze/updates Release.gpg                     
Ign http://security.debian.org/ squeeze/updates/main Translation-en            
Ign http://security.debian.org/ squeeze/updates/main Translation-en_AU         
Hit http://ftp.au.debian.org squeeze Release.gpg                               
Ign http://ftp.au.debian.org/debian/ squeeze/main Translation-en               
Ign http://ftp.au.debian.org/debian/ squeeze/main Translation-en_AU      
Hit http://security.debian.org squeeze/updates Release                   
Hit http://ftp.au.debian.org squeeze-updates Release.gpg                       
Ign http://ftp.au.debian.org/debian/ squeeze-updates/main Translation-en       
Ign http://ftp.au.debian.org/debian/ squeeze-updates/main Translation-en_AU
Hit http://ftp.au.debian.org squeeze Release                                   
Hit http://ftp.au.debian.org squeeze-updates Release                           
Hit http://security.debian.org squeeze/updates/main Sources                    
Hit http://security.debian.org squeeze/updates/main i386 Packages              
Hit http://ftp.au.debian.org squeeze/main Sources                              
Hit http://ftp.au.debian.org squeeze/main i386 Packages                  
Hit http://ftp.au.debian.org squeeze-updates/main Sources/DiffIndex
Hit http://ftp.au.debian.org squeeze-updates/main i386 Packages/DiffIndex
Hit http://ftp.au.debian.org squeeze-updates/main i386 Packages
Hit http://ftp.debian.org sid Release.gpg          
Hit http://ftp.debian.org sid Release              
Hit http://ftp.debian.org sid/main Sources/DiffIndex
Ign cdrom://[Debian GNU/Linux 6.0.0 _Squeeze_ - Official i386 CD Binary-1 20110205-17:27]/ squeeze/main Translation-en
Ign cdrom://[Debian GNU/Linux 6.0.0 _Squeeze_ - Official i386 CD Binary-1 20110205-17:27]/ squeeze/main Translation-en_AU
Ign cdrom://[Debian GNU/Linux 6.0.0 _Squeeze_ - Official i386 CD Binary-1 20110205-17:27] squeeze Release
Ign cdrom://[Debian GNU/Linux 6.0.0 _Squeeze_ - Official i386 CD Binary-1 20110205-17:27] squeeze/main i386 Packages/DiffIndex
Reading package lists... Done
N: Ignoring file 'apt-build' in directory '/etc/apt/sources.list.d/' as it has no filename extension
Reading package lists... Done
Building dependency tree       
Reading state information... Done
texworks is already the newest version.
The following packages were automatically installed and are no longer required:
  liburiparser1 libcurl3 libssh2-1
Use 'apt-get autoremove' to remove them.
0 upgraded, 0 newly installed, 0 to remove and 0 not upgraded.
N: Ignoring file 'apt-build' in directory '/etc/apt/sources.list.d/' as it has no filename extension

答案1

您可以执行以下操作:

Debian sid 有版本0.5~svn808-1。您可以像这样构建和安装它:

将 sid 包的源添加到您的 sources.list 中:

# echo "deb-src http://ftp.debian.org/debian sid main" >> /etc/apt/sources.list

安装 apt-build:

# apt-get install apt-build

构建和安装 texworks:

# apt-build install texworks

否则,您也可以下载源代码并使用它checkinstall生成 Debian 软件包。apt-build如果可行,该方法会更简洁,因为它使用的是官方 Debian 软件包。

答案2

你也可以尝试安装来自发射台。它们没有任何 Ubuntu 特定文件,所以我认为它们可以正常工作。

如果您使用的是较旧的 Qt 版本,则可以尝试一些适用于较旧 Ubuntu 版本的软件包(需要nattyQt 4.7,而最低版本仅为 Qt 4.3.4 hardy)。其余依赖项(libc、、、、)应该很容易满足,并且您可能已经安装了它们。gcchunspellpopplerzlib

相关内容