好的,这是我在 sudo apt-get update 或任何 sudo apt-get 操作期间遇到的所有错误
离开前请阅读!(谢谢 ^^)
(写完文才想起补充一句:顺便说一下,我用的是ubuntu 13.04!)
我不知道如何创建 sploiler,所以代码或整个终端将在最后提供。我只会解释我的情况。所以我尝试使用 Ubuntu(因为我很绝望,我尝试了任何可用的发行版(debian))或只是使用 linux,最终我让 Ubuntu 工作,那真是一个辉煌的时刻!但辉煌的时刻很快就消失了,因为最实际的用途也逐渐消失,是的,我说的是命令Sudo apt-get
或操作。
我的 Android 手机是三星 Galaxy s4,以下是一些规格:
Model : "APQ8064T"
Cores : "4"
Architecture : "Krait 300"
Revision : "r1p0"
Process : "28nm"
Clock Speed : "384 MHZ - 1.89 GHz" #Pretty much a fast phone!
GPU Vendor : "Qualcomm"
GPU Renderer : "Adreno (TM) 320 @ 450 MHz"
Scaling Governor : Currently set to "ondemand"
所以我的意思是手机可以轻松地同时运行 Android 和 Ubuntu。
现在,我按照以下教程进行操作:这里
我按照步骤操作,我使用了“vnc”方法,基本上是在 ADB SHELL 或 TERMINAL EMULATOR 上以文本模式运行 Ubuntu,并允许 vnc 连接到它。我几乎不使用它,因为连接速度很慢,但它无论如何都坏了。您需要一个 .img 文件才能使用它。它使用 busybox 来安装循环设备或类似的东西,就像魔术一样,它运行完美!... 或者我是这么想的,无论如何,从我所看到的来看,它使用 armhf 运行,我的手机正在使用
Kernel Architecture : "armv7l"
所以我猜这意味着它使用的是什么架构。它确实有点过热(47c),但它只使用两个内核,处于中高使用率(分别为 918 MHz 和 1350!)
下面是部分文本,我已经尝试编辑 sources.list 但没有成功,我删除了“port.ubuntu”,将其改为“release.ubuntu”并且将“old-release.ubuntu”也改为,但似乎没有任何作用。
现在这些是 404 错误:
root@jflte:/ # sh /sdcard/ubuntu.sh
Making mount points and mounting to them...
Connecting to /sdcard...
Putting in some settings...
net.ipv4.ip_forward = 1
ubuntu is configured with SSH and VNC servers that can be accessed from the IP:
(You will see an error about wlan0 if your WiFi is disabled. Safe to ignore.)
----------------- OKAY, starting Ubuntu! -----------------
Start VNC server? (y/n)
y
Start SSH server? (y/n)
y
Now enter the screen size you want in pixels (e.g. 800x480), followed by [ENTER]:
1920x1080
New 'X' desktop is localhost:0
Starting applications specified in /home/ubuntu/.vnc/xstartup
Log file is /home/ubuntu/.vnc/localhost:0.log
If you see the message 'New 'X' Desktop is localhost:0' then you are ready to VNC into your ubuntu OS..
If connection from a different machine on the same network as the android device use the address below:
192.168.0.87
If using androidVNC, change the 'Color Format' setting to 24-bit colour, and once you've VNC'd in, change the 'input mode' to touchpad (in settings)
* Starting OpenBSD Secure Shell server sshd [ OK ]
Save settings as defaults? (y/n) (You can always change it later in the app)
n
To shut down the Linux environment, just enter 'exit' at this terminal - and WAIT for all shutdown routines to finish!
root@localhost:/# sudo apt-get update
Ign http://releases.ubuntu.com raring Release.gpg
Ign http://releases.ubuntu.com raring Release
Err http://releases.ubuntu.com raring/main Sources
404 Not Found [IP: 91.189.88.148 80]
Err http://releases.ubuntu.com raring/restricted Sources
404 Not Found [IP: 91.189.88.148 80]
Err http://releases.ubuntu.com raring/universe Sources
404 Not Found [IP: 91.189.88.148 80]
Err http://releases.ubuntu.com raring/main armhf Packages
404 Not Found [IP: 91.189.88.148 80]
Err http://releases.ubuntu.com raring/restricted armhf Packages
404 Not Found [IP: 91.189.88.148 80]
Err http://releases.ubuntu.com raring/universe armhf Packages
404 Not Found [IP: 91.189.88.148 80]
Ign http://releases.ubuntu.com raring/main Translation-en
Ign http://releases.ubuntu.com raring/restricted Translation-en
Ign http://releases.ubuntu.com raring/universe Translation-en
W: Failed to fetch http://releases.ubuntu.com/dists/raring/main/source/Sources 404 Not Found [IP: 91.189.88.148 80]
W: Failed to fetch http://releases.ubuntu.com/dists/raring/restricted/source/Sources 404 Not Found [IP: 91.189.88.148 80]
W: Failed to fetch http://releases.ubuntu.com/dists/raring/universe/source/Sources 404 Not Found [IP: 91.189.88.148 80]
W: Failed to fetch http://releases.ubuntu.com/dists/raring/main/binary-armhf/Packages 404 Not Found [IP: 91.189.88.148 80]
W: Failed to fetch http://releases.ubuntu.com/dists/raring/restricted/binary-armhf/Packages 404 Not Found [IP: 91.189.88.148 80]
W: Failed to fetch http://releases.ubuntu.com/dists/raring/universe/binary-armhf/Packages 404 Not Found [IP: 91.189.88.148 80]
E: Some index files failed to download. They have been ignored, or old ones used instead.
root@localhost:/#
所以这是 sources.list 文件,请帮忙!我迫不及待地想让它工作 :) 我已经走了这么远了...
答案1
无论如何,经过深入挖掘后我找到了解决办法......
我找到了这个网站EOL升级
这对我有帮助。我刚刚做了,sudo apt-get update
只收到一个 404,因为我添加了一个可选源
这是我的来源列表
deb http://old-releases.ubuntu.com/ubuntu/ raring main restricted universe multiverse
deb http://old-releases.ubuntu.com/ubuntu/ raring-updates main restricted universe multiverse
deb http://old-releases.ubuntu.com/ubuntu/ raring-security main restricted universe multiverse
deb http://old-releases.ubuntu.com/ubuntu/ raring-backports main restricted universe multivers
最后一个将被删除。升级仍在进行中,正在安装...
对于收到此信息的人,只需添加 sources.list 并删除最后一行即可获得
deb http://old-releases.ubuntu.com/ubuntu/ raring main restricted universe multiverse
deb http://old-releases.ubuntu.com/ubuntu/ raring-updates main restricted universe multiverse
deb http://old-releases.ubuntu.com/ubuntu/ raring-security main restricted universe multiverse
更新完成。正在安装 Java。
所以我现在就结束这篇文章了。谢谢你,muru,因为你鼓励我更深入地挖掘。:D