$ sudo apt-get install sumo sumo-tools sumo-doc
[sudo] password for my:
Reading package lists... Done
Building dependency tree
Reading state information... Done
sumo is already the newest version (0.27.1+dfsg1-1).
sumo-doc is already the newest version (0.27.1+dfsg1-1).
sumo-tools is already the newest version (0.27.1+dfsg1-1).
0 upgraded, 0 newly installed, 0 to remove and 190 not upgraded.
my@my-HP-15-Notebook-PC:~$ cd'/home/my/Downloads/sumo-0.30.0'
bash: cd/home/my/Downloads/sumo-0.30.0: No such file or directory
答案1
APT 不会下载到您的Downloads
目录中。它将其缓存文件存储在其中,/var/cache/apt
但您通常不需要直接访问这些文件。
您的命令还有一个问题cd
:命令和路径之间缺少一个空格。
但是,您不必访问Downloads
文件夹即可运行sumo
。使用 APT 安装请求的包后sumo
(您有根据已经安装好它),您可以在终端中sumo is already the newest version
简单地运行命令sumo
等。sumo-gui
(我对命令名称的猜测基于https://packages.ubuntu.com/xenial/amd64/sumo/filelist,自己没有安装sumo
。)
答案2
您在命令中遗漏了一个空格:
cd'/home/my/Downloads/sumo-0.30.0'
改成:
cd '/home/my/Downloads/sumo-0.30.0'